Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 /// <inheritdoc />
 public Task <string> AddInterceptorAsync(IDictionaryInterceptor interceptor)
 => AddInterceptorAsync(interceptor, CancellationToken.None);