ICustomRequestsService.

SendRequestToOtherDcAsync<TResult>(int, Func<IClientApi, Task<TResult>>, CancellationToken) Method

Summary

Send custom requests to the other DC

Syntax

Task<TResult> SendRequestToOtherDcAsync<TResult>(int dcId, Func<IClientApi, Task<TResult>> requestFunc, CancellationToken cancellationToken = default(CancellationToken))

Type Parameters

Name Description
TResult Request result type

Parameters

Name Type Description
dcId int DC id
requestFunc Func<IClientApi, Task<TResult>> Request function
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<TResult> Result