-
-
Save gdyrrahitis/b85f1b8d0cd66491e9b80f756203d160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var properties = Channel.CreateBasicProperties(); | |
properties.AppId = AppId; | |
properties.ContentType = "application/json"; | |
properties.DeliveryMode = 1; // Doesn't persist to disk | |
properties.Timestamp = new AmqpTimestamp(DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()); | |
Channel.BasicPublish(exchange: ExchangeName, routingKey: RoutingKeyName, body: body, basicProperties: properties); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment