protected virtual async Task UndefineObservers(ReactiveClientContext context) { await TryUndefine(() => context.UndefineObserverAsync(Reactor.Constants.Identifiers.Observer.Http.Uri, CancellationToken.None)); await TryUndefine(() => context.UndefineObserverAsync(Reactor.Constants.Identifiers.Observer.HttpPost.Action.Uri, CancellationToken.None)); await TryUndefine(() => context.UndefineObserverAsync(Reactor.Constants.Identifiers.Observer.Http.Action.Uri, CancellationToken.None)); await TryUndefine(() => context.UndefineObserverAsync(Reactor.Constants.Identifiers.Observer.Http.Final.Uri, CancellationToken.None)); await TryUndefine(() => context.UndefineObserverAsync(new Uri(Reactor.Constants.Identifiers.Observer.HttpPost.Final.WithHeaders), CancellationToken.None)); await TryUndefine(() => context.UndefineObserverAsync(new Uri(Reactor.Constants.Identifiers.Observer.HttpPost.Final.NoHeaders), CancellationToken.None)); }
protected virtual async Task UndefineObservers(ReactiveClientContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } await TryUndefine(() => context.UndefineObserverAsync(Platform.Constants.Identifiers.Observer.ConsoleObserver.Uri, CancellationToken.None)).ConfigureAwait(false); await TryUndefine(() => context.UndefineObserverAsync(Platform.Constants.Identifiers.Observer.ConsoleObserverParam.Uri, CancellationToken.None)).ConfigureAwait(false); await TryUndefine(() => context.UndefineObserverAsync(Platform.Constants.Identifiers.Observer.TraceObserver.Uri, CancellationToken.None)).ConfigureAwait(false); await TryUndefine(() => context.UndefineObserverAsync(Platform.Constants.Identifiers.Observer.TraceObserverParam.Uri, CancellationToken.None)).ConfigureAwait(false); await TryUndefine(() => context.UndefineObserverAsync(Platform.Constants.Identifiers.Observer.FireHose.Uri, CancellationToken.None)).ConfigureAwait(false); await TryUndefine(() => context.UndefineObserverAsync(Platform.Constants.Identifiers.Observer.Throughput.Uri, CancellationToken.None)).ConfigureAwait(false); await TryUndefine(() => context.UndefineObserverAsync(new Uri(Client.Constants.Observer.Nop), CancellationToken.None)).ConfigureAwait(false); }