Using(TSource, TResource) Method
TOC
Collapse the table of content
Expand the table of content

Observable.Using(TSource, TResource) Method

Constructs an observable sequence that depends on a resource object.

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

JScript does not support generic types and methods.

Type Parameters

TSource

The type of source.

TResource

The type of resource.

Parameters

resourceFactory
Type: System.Func(TResource)
The factory function to obtain a resource object.
observableFactory
Type: System.Func(TResource, IObservable(TSource))
The factory function to obtain an observable sequence that depends on the obtained resource.

Return Value

Type: System.IObservable(TSource)
The observable sequence whose lifetime controls the lifetime of the dependent resource object.
Show:
© 2016 Microsoft