Beispiel #1
0
    static void Express(IBus bus)
    {
        Guid requestId = Guid.NewGuid();

        RequestExpress requestExpress = new RequestExpress
        {
            RequestId = requestId
        };

        bus.Send("Samples.Unobtrusive.Server", requestExpress);

        Console.WriteLine("Request sent id: " + requestId);
    }
Beispiel #2
0
    static async Task Express(IEndpointInstance endpointInstance)
    {
        var requestId = Guid.NewGuid();

        var requestExpress = new RequestExpress
        {
            RequestId = requestId
        };
        await endpointInstance.Send(requestExpress)
        .ConfigureAwait(false);

        Console.WriteLine("Request sent id: " + requestId);
    }
Beispiel #3
0
    static void Express(IBus bus)
    {
        var requestId = Guid.NewGuid();

        var requestExpress = new RequestExpress
        {
            RequestId = requestId
        };

        bus.Send(requestExpress);

        Console.WriteLine("Request sent id: " + requestId);
    }