SendAsync() private method

private SendAsync ( Message message, CancellationToken ct ) : Task
message Message
ct System.Threading.CancellationToken
return Task
            public static async Task <CreateBlobRequest> CreateAsync(RHost host, CancellationToken cancellationToken)
            {
                var message = host.CreateRequestMessage("?CreateBlob", new JArray());
                var request = new CreateBlobRequest(host, message, cancellationToken);

                await host.SendAsync(message, cancellationToken);

                return(request);
            }
Beispiel #2
0
            public static async Task <GetBlobRequest> SendAsync(RHost host, ulong blobId, CancellationToken cancellationToken)
            {
                var message = host.CreateMessage("?GetBlob", ulong.MaxValue, new JArray {
                    blobId
                });
                var request = new GetBlobRequest(host, message, cancellationToken);
                await host.SendAsync(message, cancellationToken);

                return(request);
            }