Example #1
0
        public void Send(Envelope <ICommand> envelope)
        {
            var metadata = metadataProvider.GetMetadata(envelope.Message);

            sender.Send(BrokeredMessageFactory.Create(envelope, metadata, serializer));
        }
Example #2
0
        public void Publish(Envelope <IEvent> envelope)
        {
            var metadata = metadataProvider.GetMetadata(envelope.Message);

            sender.SendAsync(BrokeredMessageFactory.Create(envelope, metadata, serializer));
        }