ICustomRequestsService.

SendRequestToOtherDcAsync<TResult>(int, IRequest<TResult>, CancellationToken) Method

Summary

Send custom requests to the other DC

Syntax

Task<TResult> SendRequestToOtherDcAsync<TResult>(int dcId, IRequest<TResult> request, CancellationToken cancellationToken = default(CancellationToken))

Type Parameters

Name Description
TResult Request result type

Parameters

Name Type Description
dcId int DC id
request IRequest<TResult> Request
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<TResult> Result