Interface IBinderFactory
A factory for creating or obtaining binders.
Namespace: Steeltoe.Stream.Binder
Assembly: Steeltoe.Stream.Abstractions.dll
Syntax
public interface IBinderFactory
Methods
| Edit this page View SourceGetBinder(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.
Declaration
IBinder GetBinder(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the name of the binder in configuration |
Returns
Type | Description |
---|---|
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.
Declaration
IBinder GetBinder(string name, Type bindableType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the name of the binder in configuration |
Type | bindableType | the binding target type |
Returns
Type | Description |
---|---|
IBinder | the binder |