UsingExtensionMethods UsingAsync T  Method (T, Func T, Task )Isonas .NET Client API Documentation

Namespace: Bsw.Isonas.Dotnet.Client.Utility
Assembly: Bsw.Isonas.Dotnet.Client (in Bsw.Isonas.Dotnet.Client.dll) Version: 1.2.1.0 (1.2.1)
Syntax

public static Task UsingAsync<T>(
	this T obj,
	Func<T, Task> code
)
where T : IAsyncDisposable

Parameters

obj
Type: T
code
Type: OnlineSystem Func T, OnlineTask 
Type Parameters

T

Return Value

Type: OnlineTask

Usage Note

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