public IHandlerBuilder <TContent, THandler> ForMessage <TContent>() { _channelbuilder?.Invoke(this); var value = new Route <TContent, THandler>(_name) { Channels = _channels }; var builder = new HandlerBuilder <TContent, THandler>(value); _routes.Add(value); return(builder); }
public IHandlerBuilder <TContent, THandler, TData> ForMessage <TContent>() { _channelbuilder?.Invoke(this); var value = new Route <TContent, THandler>(_name) { Channels = _channels }; var builder = new HandlerBuilder <TContent, THandler, TData>(value); _saga.LastRoute = value; return(builder); }
public IHandlerBuilder <TContent, THandler, TData> ForMessage <TContent>() { var value = new Route <TContent, THandler>(_name) { ToPath = _topath, ToSubscription = _tosubscription, ConnectionStringExtractorType = _connectionstringextractortype, ToConnectionStringExtractor = _toconnectionstringextractor }; var builder = new HandlerBuilder <TContent, THandler, TData>(value); _saga.NextRoutes.Add(value); return(builder); }