protected OperationInternalBase(ClientDiagnostics clientDiagnostics, string operationTypeName, IEnumerable <KeyValuePair <string, string> >?scopeAttributes = null, DelayStrategy?fallbackStrategy = null) { _diagnostics = clientDiagnostics; _updateStatusScopeName = $"{operationTypeName}.UpdateStatus"; _scopeAttributes = scopeAttributes?.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); _fallbackStrategy = fallbackStrategy; _responseLock = new AsyncLockWithValue <Response>(); }
protected OperationInternalBase(Response rawResponse) { _diagnostics = new ClientDiagnostics(ClientOptions.Default); _updateStatusScopeName = string.Empty; _scopeAttributes = default; _fallbackStrategy = default; _responseLock = new AsyncLockWithValue <Response>(rawResponse); }