DataflowBlock.AsObservable<TOutput>(ISourceBlock<TOutput>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>.
public:
generic <typename TOutput>
[System::Runtime::CompilerServices::Extension]
static IObservable<TOutput> ^ AsObservable(System::Threading::Tasks::Dataflow::ISourceBlock<TOutput> ^ source);
public static IObservable<TOutput> AsObservable<TOutput> (this System.Threading.Tasks.Dataflow.ISourceBlock<TOutput> source);
static member AsObservable : System.Threading.Tasks.Dataflow.ISourceBlock<'Output> -> IObservable<'Output>
<Extension()>
Public Function AsObservable(Of TOutput) (source As ISourceBlock(Of TOutput)) As IObservable(Of TOutput)
Type Parameters
- TOutput
Specifies the type of data contained in the source.
Parameters
- source
- ISourceBlock<TOutput>
The source to wrap.
Returns
IObservable<TOutput>
An IObservable<T> that enables observers to be subscribed to the source.
Exceptions
The source
is null
.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.