static void SendMessageTooLargePayload(IBus bus)
    {
        var message = new AnotherMessageWithLargePayload
        {
            LargeBlob = new byte[1024 * 1024 * 5] //5MB
        };

        bus.Send("Sample.DataBus.Receiver", message);
    }
Esempio n. 2
0
 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
    }
Esempio n. 4
0
    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
    }
Esempio n. 5
0
    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
    }
Esempio n. 6
0
    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
    }