AuthExtensionsExecuteAuthRestTC, TR Method |
Executes Protobuf authenticated request.
Namespace: KeeperSecurity.AuthenticationAssembly: KeeperSdk (in KeeperSdk.dll) Version: 1.0.5
Syntax public static Task<TR> ExecuteAuthRest<TC, TR>(
this IAuthentication auth,
string endpoint,
TC request,
int apiVersion = 0
)
where TC : IMessage
where TR : IMessage
Parameters
- auth IAuthentication
- The authenticated connection.
- endpoint String
- URL path for request.
- request TC
[Missing <param name="request"/> documentation for "M:KeeperSecurity.Authentication.AuthExtensions.ExecuteAuthRest``2(KeeperSecurity.Authentication.IAuthentication,System.String,``0,System.Int32)"]
- apiVersion Int32 (Optional)
- request version
Type Parameters
- TC
- Protobuf authenticated request type.
- TR
- Protobuf response type.
Return Value
TaskTRTask returning Protobuf 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).
See Also