Пример #1
0
        [ObleakSubscription] // This attribute is irrelevant as it's on the class
        public ComplexClass(string s) : base(s)
        {
            SerialDisposable = new SerialDisposable();
            MethodModel      = new ThreeMethodsWithMultipleSubscribesModel();
            Subject          = new Subject <string>();

            // NO CALLS TO SUBSCRIBE HERE
        }
Пример #2
0
        public ComplexClass()
        {
            SerialDisposable = new SerialDisposable();
            MethodModel      = new ThreeMethodsWithMultipleSubscribesModel();
            Subject          = new Subject <string>();

            DisposableTestContainer.Add(
                this.WhenAnyValue(x => x.StringProperty).Subscribe());
        }