Class DefaultBinderFactory
public class DefaultBinderFactory : IBinderFactory, IDisposable
- Inheritance
-
DefaultBinderFactory
- Implements
- Inherited Members
Constructors
DefaultBinderFactory(IApplicationContext, IOptionsMonitor<BindingServiceOptions>, IBinderConfigurations, IEnumerable<IBinderFactoryListener>)
public DefaultBinderFactory(IApplicationContext context, IOptionsMonitor<BindingServiceOptions> optionsMonitor, IBinderConfigurations binderConfigurations, IEnumerable<IBinderFactoryListener> listeners = null)
Parameters
context
IApplicationContextoptionsMonitor
IOptionsMonitor<BindingServiceOptions>binderConfigurations
IBinderConfigurationslisteners
IEnumerable<IBinderFactoryListener>
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetBinder(string)
Returns the binder instance associated with the given configuration name. Instance caching is a requirement, and implementations must return the same instance on subsequent invocations with the same arguments.
public IBinder GetBinder(string name)
Parameters
name
stringthe name of the binder in configuration
Returns
- IBinder
the binder
GetBinder(string, Type)
Returns the binder instance associated with the given configuration name. Instance caching is a requirement, and implementations must return the same instance on subsequent invocations with the same arguments.
public IBinder GetBinder(string name, Type bindableType)
Parameters
Returns
- IBinder
the binder