Table of Contents

Class IListenerExtensions

Namespace
JobFlow.Core.Infrastructure.Transports
Assembly
JobFlow.Core.dll

Extensions methods for IListener.

public static class IListenerExtensions
Inheritance
IListenerExtensions

Methods

SetJobWorkRequestHandler<TProc>(IListener)

public static void SetJobWorkRequestHandler<TProc>(this IListener listener) where TProc : IWorker

Parameters

listener IListener

Type Parameters

TProc

SetJobWorkRequestHandler<TMsg, TProc>(IListener)

Set the message handler for an IListener to an implementation of IWorker<T>.

public static void SetJobWorkRequestHandler<TMsg, TProc>(this IListener listener) where TProc : IWorker<TMsg>

Parameters

listener IListener

Type Parameters

TMsg
TProc

Remarks

An intermediary class will automatically be added which will place the WorkResponse return value of ProcessJob(WorkRequest<T>) on the appropriate job response transport.