public void SetProperties(MessageProperties properties) { Properties = properties; }
protected virtual void Publish(RoutedEventMessage message, RaiseScope raiseScope = null) { using (IPublishChannel channel = MessageBus.OpenPublishChannel()) { var messageProperties = new MessageProperties() { DeliveryMode = 2 }; var body = Serializer.MessageToBytes(message); channel.Publish(RoutedEventExchange, GetRoutingKey(raiseScope), messageProperties, body); } }
public Message(T body) { Properties = new MessageProperties(); Body = body; }