Table of Contents

Class DefaultBinderFactory

Namespace
Steeltoe.Stream.Binder
Assembly
Steeltoe.Stream.StreamBase.dll
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 IApplicationContext
optionsMonitor IOptionsMonitor<BindingServiceOptions>
binderConfigurations IBinderConfigurations
listeners 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 string

the 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

name string

the name of the binder in configuration

bindableType Type

the binding target type

Returns

IBinder

the binder