Table of Contents

Delegate ParameterizedFormatterFactory<T>

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.Formatters
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Creates a Formatter<T> based on a parameter.

public delegate Formatter<T> ParameterizedFormatterFactory<T>(string parameter)

Parameters

parameter string

The parameter to use when creating a formatter, extracted from the token on a template.

Returns

Formatter<T>

The Formatter<T> based on the parameter.

Type Parameters

T

The type to format.

Remarks

Constructors

ParameterizedFormatterFactory(object, nint)

public ParameterizedFormatterFactory(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(string, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(string parameter, AsyncCallback callback, object @object)

Parameters

parameter string
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Formatter<T> EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Formatter<T>

Invoke(string)

public virtual Formatter<T> Invoke(string parameter)

Parameters

parameter string

Returns

Formatter<T>