예제 #1
0
        protected virtual async Task UndefineObservables(ReactiveClientContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            await TryUndefine(() => context.UndefineObservableAsync(Platform.Constants.Identifiers.Observable.FireHose.Uri, CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(Platform.Constants.Identifiers.Observable.GarbageCollector.Uri, CancellationToken.None)).ConfigureAwait(false);
        }
예제 #2
0
        protected override async Task DefineObservables(ReactiveClientContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            await base.DefineObservables(context).ConfigureAwait(false);

            await context.UndefineObservableAsync(Platform.Constants.Identifiers.Observable.FireHose.Uri, CancellationToken.None).ConfigureAwait(false);

            await context.DefineObservableAsync <Uri, T>(
                Platform.Constants.Identifiers.Observable.FireHose.Uri,
                topic => new TestFirehoseObservable <T>(topic).AsQbservable(),
                null,
                CancellationToken.None).ConfigureAwait(false);

            await context.DefineObservableAsync <Uri, T>(
                Constants.Test.HotTimelineObservable.Uri,
                uri => new TimelineObservable <T>(uri, false).AsQbservable(),
                null,
                CancellationToken.None).ConfigureAwait(false);

            await context.DefineObservableAsync <Uri, T>(
                Constants.Test.ColdTimelineObservable.Uri,
                uri => new TimelineObservable <T>(uri, true).AsQbservable(),
                null,
                CancellationToken.None).ConfigureAwait(false);
        }
예제 #3
0
        protected virtual async Task UndefineOperators(ReactiveClientContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Aggregate.Accumulate), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Aggregate.Seed), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Aggregate.SeedResult), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.All.Predicate), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Any.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Any.Predicate), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Buffer.TimeDuration), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Buffer.TimeDurationShift), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Buffer.Count), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Buffer.CountSkip), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Buffer.TimeCount), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.CombineLatest.ObservableFunc), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Count.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Count.Predicate), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.DelaySubscription.DateTimeOffset), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.DelaySubscription.TimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.DelaySubscription.V1.DateTimeOffset), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.DelaySubscription.V1.TimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.DistinctUntilChanged.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.DistinctUntilChanged.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Do.OnNext), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Do.OnNextOnError), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Do.OnNextOnCompleted), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Do.AllActions), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Do.Observer), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Do.ObserverSelector), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Empty.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Finally.Action), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.FirstAsync.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.FirstAsync.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.FirstOrDefaultAsync.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.FirstOrDefaultAsync.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.GroupBy.Key), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.GroupBy.KeyElement), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.IsEmpty.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.LongCount.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.LongCount.Predicate), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Merge.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Merge.Binary), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Merge.N), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Never.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Return.Value), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Retry.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Retry.Count), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sample.TimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sample.Observable), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Scan.Accumulate), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Scan.Seed), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Select.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Select.IndexedFunc), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.SelectMany.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.SelectMany.FuncFunc), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.SequenceEqual.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Skip.Count), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Skip.TimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.SkipUntil.DateTimeOffset), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.SkipUntil.Observable), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.SkipWhile.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.SkipWhile.IndexedFunc), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.StartWith.Array), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Switch.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Take.Count), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Take.TimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.TakeUntil.DateTimeOffset), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.TakeUntil.Observable), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.TakeWhile.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.TakeWhile.IndexedFunc), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Throttle.TimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Timer.DateTimeOffset), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Timer.DateTimeOffsetTimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Timer.TimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Timer.TimeSpanTimeSpan), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.ToList.NoArgument), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Where.Func), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Where.IndexedFunc), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Window.TimeDuration), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Window.TimeDurationShift), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Window.Count), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Window.CountSkip), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Window.TimeCount), CancellationToken.None)).ConfigureAwait(false);

            await UndefineOperatorsExtension(context).ConfigureAwait(false);
        }
        public static async Task UndefineOperatorsExtension(ReactiveClientContext context)
        {
            #region Aggregates

            #region Average
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.NoSelector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Average.Selector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);

            #endregion

            #region Min
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.NoSelector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Min.Selector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);

            #endregion

            #region Max
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.NoSelector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Max.Selector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);

            #endregion

            #region Sum
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.Int32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.Int64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.Single), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.Double), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.Decimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.NullableInt32), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.NullableInt64), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.NullableSingle), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.NullableDouble), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.NoSelector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);
            await TryUndefine(() => context.UndefineObservableAsync(new Uri(Client.Constants.Observable.Sum.Selector.NullableDecimal), CancellationToken.None)).ConfigureAwait(false);

            #endregion

            #endregion
        }
예제 #5
0
 protected virtual async Task UndefineObservables(ReactiveClientContext context)
 {
     await TryUndefine(() => context.UndefineObservableAsync(Constants.Identifiers.Observable.Person.Uri, CancellationToken.None));
     await TryUndefine(() => context.UndefineObservableAsync(Constants.Identifiers.Observable.Range.Uri, CancellationToken.None));
 }