static void SendMessageTooLargePayload(IBus bus) { var message = new AnotherMessageWithLargePayload { LargeBlob = new byte[1024 * 1024 * 5] //5MB }; bus.Send("Sample.DataBus.Receiver", message); }
static void SendMessageTooLargePayload(IBus bus) { #region SendMessageTooLargePayload AnotherMessageWithLargePayload message = new AnotherMessageWithLargePayload { LargeBlob = new byte[1024 * 1024 * 5] //5MB }; bus.Send("Samples.DataBus.Receiver", message); #endregion }
static async Task SendMessageTooLargePayload(IBusSession busSession) { #region SendMessageTooLargePayload AnotherMessageWithLargePayload message = new AnotherMessageWithLargePayload { LargeBlob = new byte[1024 * 1024 * 5] //5MB }; await busSession.Send("Samples.DataBus.Receiver", message); #endregion }
static async Task SendMessageTooLargePayload(IBusSession busSession) { #region SendMessageTooLargePayload AnotherMessageWithLargePayload message = new AnotherMessageWithLargePayload { LargeBlob = new byte[1024*1024*5] //5MB }; await busSession.Send("Samples.DataBus.Receiver", message); #endregion }
static async Task SendMessageTooLargePayload(IEndpointInstance endpointInstance) { #region SendMessageTooLargePayload AnotherMessageWithLargePayload message = new AnotherMessageWithLargePayload { LargeBlob = new byte[1024 * 1024 * 5] //5MB }; await endpointInstance.Send("Samples.DataBus.Receiver", message); #endregion }
static async Task SendMessageTooLargePayload(IEndpointInstance endpointInstance) { #region SendMessageTooLargePayload AnotherMessageWithLargePayload message = new AnotherMessageWithLargePayload { LargeBlob = new byte[1024*1024*5] //5MB }; await endpointInstance.Send("Samples.DataBus.Receiver", message); #endregion }