public Process ( Func |
||
next | Func |
|
operation | IOperationContext | |
return | Task |
public static IMessageProcessingPipeBuilder UseIdleDisconnect(this IMessageProcessingPipeBuilder builder, TimeSpan idleDisconnectTimeout, INetChannel channel) { var mp = new IdleDisconnectProcessor(idleDisconnectTimeout, channel); return(builder.Use(next => context => mp.Process(next, context))); }
public static IMessageProcessingPipeBuilder UseIdleDisconnect(this IMessageProcessingPipeBuilder builder, TimeSpan idleDisconnectTimeout, INetChannel channel) { var mp = new IdleDisconnectProcessor(idleDisconnectTimeout, channel); return builder.Use(next => context => mp.Process(next, context)); }