Beispiel #1
0
 public void Configure(OperationBase operation, IKeyValueOptions?options = null)
 {
     operation.Transcoder           = (options as ITranscoderOverrideOptions)?.Transcoder ?? _typeTranscoder;
     operation.OperationCompressor  = _operationCompressor;
     operation.OperationBuilderPool = _operationBuilderPool;
     operation.RetryStrategy        = options?.RetryStrategy ?? _retryStrategy;
 }
        public void Configure(OperationBase operation, IKeyValueOptions?options = null)
        {
            operation.Transcoder           = (options as ITranscoderOverrideOptions)?.Transcoder ?? _typeTranscoder;
            operation.OperationCompressor  = _operationCompressor;
            operation.OperationBuilderPool = _operationBuilderPool;
            operation.RetryStrategy        = options?.RetryStrategy ?? _retryStrategy;

            if (operation.Span.CanWrite && options is ITimeoutOptions options1)
            {
                operation.Span.SetAttribute(InnerRequestSpans.DispatchSpan.Attributes.TimeoutMilliseconds,
                                            options1.Timeout?.TotalMilliseconds.ToString(CultureInfo.InvariantCulture) !);
            }
        }
Beispiel #3
0
 public void Configure(OperationBase operation, IKeyValueOptions?options = null)
 {
     operation.Transcoder = (options as ITranscoderOverrideOptions)?.Transcoder ?? _typeTranscoder;
 }