Export (0) Print
Expand All

Subject.Create<TSource, TResult> Method

Creates a subject from the specified observer and observable.

Namespace:  System.Reactive.Subjects
Assembly:  System.Reactive (in System.Reactive.dll)

public static ISubject<TSource, TResult> Create<TSource, TResult>(
	IObserver<TSource> observer,
	IObservable<TResult> observable
)

Type Parameters

TSource

The type source.

TResult

The type of result.

Parameters

observer
Type: System.IObserver<TSource>
The observer used to publish messages to the subject.
observable
Type: System.IObservable<TResult>
The observable used to subscribe to messages sent from the subject.

Return Value

Type: System.Reactive.Subjects.ISubject<TSource, TResult>
Subject implemented using the given observer and observable.
Show:
© 2014 Microsoft