Source/NFX.Wave/WorkDispatcher.cs
/// <summary>
/// Finds appropriate handler and invokes it. Returns the appropriate handler or null if work was aborted or already handled.
/// Throws if appropriate handler was not found
/// </summary>
Finds appropriate handler and invokes it. Returns the appropriate handler or null if work was aborted or already handled.
Throws if appropriate handler was not found
Finds appropriate handler and invokes it . Returns the appropriate handler or null if work was aborted or already handled . Throws if appropriate handler was not found
public virtual void InvokeHandler(WorkContext work, out WorkHandler handler)
        {
          if (!work.Aborted && !work.Handled)
          {
             handler = GetWorkHandler(work);
             if (handler==null)
              throw HTTPStatusException.NotFound_404(StringConsts.NO_HANDLER_FOR_WORK_ERROR.Args(work.About));
             handler.FilterAndHandleWork(work);
             return;
          }
          handler = null;
        }
public virtual void InvokeHandler ( WorkContext work , out WorkHandler handler ) { if ( ! work . Aborted && ! work . Handled ) { handler = GetWorkHandler ( work ) ; if ( handler == null ) throw HTTPStatusException . NotFound_404 ( StringConsts . NO_HANDLER_FOR_WORK_ERROR . Args ( work . About ) ) ; handler . FilterAndHandleWork ( work ) ; return ; } handler = null ; }
Finds appropriate handler and invokes it.
Finds appropriate handler and invokes it .
work
WorkContext
WorkHandler
out