예제 #1
0
        public ListenerBuilder <TCommand> Dispatch <TCommand>(TCommand command, IEventSerializer <Event <TCommand> > serializer = null)
        {
            var settings = new PublishSettings <Event <TCommand> >
            {
                DestinationEndpointId = _commandEndpointId,
                Serializer            = serializer
            };

            return(_actionBuilder.Dispatch(command, settings));
        }