Summary
Send custom requests to the other DC
- Namespace
- OpenTl
.ClientApi .Services .Interfaces - Containing Type
- I
Custom Requests Service
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 |
Request function |
cancellationToken | CancellationToken | Cancellation token |
Return Value
Type | Description |
---|---|
Task |
Result |