Click or drag to resize
AsyncDatabaseConnectionUseT Method (IAsyncDatabaseConnection, FuncIDatabaseConnection, IEnumerableT)
Returns a cold IObservable which schedules the function f on the database operation queue each time it is is subscribed to. The published values are generated by enumerating the IEnumerable returned by f.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static IObservable<T> Use<T>(
	this IAsyncDatabaseConnection This,
	Func<IDatabaseConnection, IEnumerable<T>> f
)

Parameters

This
Type: SQLitePCL.prettyIAsyncDatabaseConnection
The asynchronous database connection.
f
Type: SystemFuncIDatabaseConnection, IEnumerableT
A function that may synchronously use the provided IDatabaseConnection and returns an IEnumerable of produced values that are published to the subscribed IObserver. The returned IEnumerable may block. This allows the IEnumerable to provide the results of enumerating a SQLite prepared statement for instance.

Type Parameters

T
The result type.

Return Value

Type: IObservableT
A cold observable of the values produced by the function f.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncDatabaseConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also