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
stringThe 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
This delegate is used by CreateParameterizedTokenHandler(ParameterizedFormatterFactory<T>).
Constructors
ParameterizedFormatterFactory(object, nint)
public ParameterizedFormatterFactory(object @object, nint method)
Parameters
Methods
BeginInvoke(string, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(string parameter, AsyncCallback callback, object @object)
Parameters
parameter
stringcallback
AsyncCallbackobject
object
Returns
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>