[This is preliminary documentation and is subject to change.]
A filter delegate that gets called within PostItem before adding work to this queue.
This is useful for re-routing work to some other queue/s when needed.
Return null if work item is going to be processed by some other queue that this delegate should post into.
Keep in mind that this delegate is invoked by posters thread
Namespace: NFX.ServiceModelAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public delegate IWorkItem<TContext> PostItemFilter<TContext>(
IWorkItem<TContext> work
)
where TContext : class
public delegate IWorkItem<TContext> PostItemFilter<TContext>(
IWorkItem<TContext> work
)
where TContext : class
Public Delegate Function PostItemFilter(Of TContext As Class) (
work As IWorkItem(Of TContext)
) As IWorkItem(Of TContext)
Public Delegate Function PostItemFilter(Of TContext As Class) (
work As IWorkItem(Of TContext)
) As IWorkItem(Of TContext)
generic<typename TContext>
where TContext : ref class
public delegate IWorkItem<TContext>^ PostItemFilter(
IWorkItem<TContext>^ work
)
generic<typename TContext>
where TContext : ref class
public delegate IWorkItem<TContext>^ PostItemFilter(
IWorkItem<TContext>^ work
)
type PostItemFilter =
delegate of
work : IWorkItem<'TContext> -> IWorkItem<'TContext>
type PostItemFilter =
delegate of
work : IWorkItem<'TContext> -> IWorkItem<'TContext>
- TContext
Return Value
Type:
IWorkItem TContext