Click or drag to resize

AuthExtensionsExecuteAuthCommandTC, TR(IAuthentication, TC, Boolean) Method

Executes JSON authenticated command.

Namespace: KeeperSecurity.Authentication
Assembly: KeeperSdk (in KeeperSdk.dll) Version: 1.0.5-beta11
Syntax
C#
public static Task<TR> ExecuteAuthCommand<TC, TR>(
	this IAuthentication auth,
	TC command,
	bool throwOnError = true
)
where TC : AuthenticatedCommand
where TR : KeeperApiResponse

Parameters

auth  IAuthentication
The authenticated connection.
command  TC
JSON authenticated command.
throwOnError  Boolean  (Optional)
if True throw exception on Keeper error.

Type Parameters

TC
JSON authenticated command type.
TR
JSON response type.

Return Value

TaskTR
A Task returning JSON response.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAuthentication. 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).
Exceptions
ExceptionCondition
KeeperApiExceptionKeeper API Exception.
See Also