Method Using
Using<T>(Func<T>)
Declaration
public static IObservable<T> Using<T>(Func<T> resourceFactory) where T : IDisposable
Parameters
Type | Name | Description |
---|---|---|
Func<T> | resourceFactory |
Returns
Type | Description |
---|---|
IObservable<T> |
Type Parameters
Name | Description |
---|---|
T |
Using<T>(Action<CompositeDisposable>)
Declaration
public static IObservable<T> Using<T>(Action<CompositeDisposable> resourceFactory) where T : IDisposable
Parameters
Type | Name | Description |
---|---|---|
Action<CompositeDisposable> | resourceFactory |
Returns
Type | Description |
---|---|
IObservable<T> |
Type Parameters
Name | Description |
---|---|
T |