/////////////////////////////////////////////////////// public IInputHandler Construct() { _builder.Reset(); if (_parameters.touch) { _builder.AddNext <TouchInputHandler>(); } if (_parameters.mouse) { _builder.AddNext <MouseInputHandler>(); } return(_builder.Build()); }
public IHandlersModel Build() { builder. When <OrderCreated>(). HandleBy <OrderCreated1Handler>(). HandleBy <OrderCreated2Handler>(). When <OrderCreated>(). HandleBy <OrderCreated1Handler>(). HandleBy <OrderCreated2Handler>(); return(builder. Build()); }