Interface IBindingOnSyntax<T>
Used to add additional actions to be performed during activation or deactivation of instances via a binding.
Inherited Members
Namespace: Telerik.JustMock.AutoMock.Ninject.Syntax
Assembly: Telerik.JustMock.dll
Syntax
public interface IBindingOnSyntax<T> : IBindingSyntax, IHaveBindingConfiguration, IHaveKernel, IFluentSyntax
Type Parameters
T
The service being bound. |
Methods
OnActivation(Action<T>)
Indicates that the specified callback should be invoked when instances are activated.
Declaration
IBindingOnSyntax<T> OnActivation(Action<T> action)
Parameters
System.Action<T>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
OnActivation(Action<IContext, T>)
Indicates that the specified callback should be invoked when instances are activated.
Declaration
IBindingOnSyntax<T> OnActivation(Action<IContext, T> action)
Parameters
System.Action<IContext, T>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
OnActivation<TImplementation>(Action<TImplementation>)
Indicates that the specified callback should be invoked when instances are activated.
Declaration
IBindingOnSyntax<T> OnActivation<TImplementation>(Action<TImplementation> action)
Parameters
System.Action<TImplementation>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
Type Parameters
TImplementation
The type of the implementation. |
OnActivation<TImplementation>(Action<IContext, TImplementation>)
Indicates that the specified callback should be invoked when instances are activated.
Declaration
IBindingOnSyntax<T> OnActivation<TImplementation>(Action<IContext, TImplementation> action)
Parameters
System.Action<IContext, TImplementation>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
Type Parameters
TImplementation
The type of the implementation. |
OnDeactivation(Action<T>)
Indicates that the specified callback should be invoked when instances are deactivated.
Declaration
IBindingOnSyntax<T> OnDeactivation(Action<T> action)
Parameters
System.Action<T>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
OnDeactivation(Action<IContext, T>)
Indicates that the specified callback should be invoked when instances are deactivated.
Declaration
IBindingOnSyntax<T> OnDeactivation(Action<IContext, T> action)
Parameters
System.Action<IContext, T>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
OnDeactivation<TImplementation>(Action<TImplementation>)
Indicates that the specified callback should be invoked when instances are deactivated.
Declaration
IBindingOnSyntax<T> OnDeactivation<TImplementation>(Action<TImplementation> action)
Parameters
System.Action<TImplementation>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
Type Parameters
TImplementation
The type of the implementation. |
OnDeactivation<TImplementation>(Action<IContext, TImplementation>)
Indicates that the specified callback should be invoked when instances are deactivated.
Declaration
IBindingOnSyntax<T> OnDeactivation<TImplementation>(Action<IContext, TImplementation> action)
Parameters
System.Action<IContext, TImplementation>
action
The action callback. |
Returns
IBindingOnSyntax<T>
The fluent syntax. |
Type Parameters
TImplementation
The type of the implementation. |