Debian Codegraph @

external/rx/Rx/NET/Source/Microsoft.Reactive.Testing/ITestObservable.cs

raw
1 // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
2
3 using System;
4 using System.Collections.Generic;
5 using System.Reactive;
6
7 namespace Microsoft.Reactive.Testing
8 {
9 /// <summary>
10 /// Observable sequence that records subscription lifetimes and timestamped notification messages sent to observers.
11 /// </summary>
12 /// <typeparam name="T">The type of the elements in the sequence.</typeparam>
13 public interface ITestableObservable<T> : IObservable<T>
14 {
15 /// <summary>
16 /// Gets a list of all the subscriptions to the observable sequence, including their lifetimes.
17 /// </summary>
18 IList<Subscription> Subscriptions { get; }
19
20 /// <summary>
21 /// Gets the recorded timestamped notification messages that were sent by the observable sequence to its observers.
22 /// </summary>
23 IList<Recorded<Notification<T>>> Messages { get; }
24 }
25 }