Table of Contents

Interface IBinderFactory

Namespace
Steeltoe.Stream.Binder
Assembly
Steeltoe.Stream.Abstractions.dll

A factory for creating or obtaining binders.

public interface IBinderFactory

Methods

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.

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.

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