private async Task <string> AddInterceptorAsync(IDictionaryInterceptor interceptor, CancellationToken cancellationToken) { var interceptorData = ToSafeData(interceptor); var requestMessage = MapAddInterceptorCodec.EncodeRequest(Name, interceptorData); var responseMessage = await Cluster.Messaging.SendAsync(requestMessage, cancellationToken).CAF(); var response = MapAddInterceptorCodec.DecodeResponse(responseMessage).Response; return(response); }
/// <inheritdoc /> public Task <string> AddInterceptorAsync(IDictionaryInterceptor interceptor) => AddInterceptorAsync(interceptor, CancellationToken.None);