C# Class QueuingMachine.Authentication

This class demonstrates how to get a valid O-auth token
Mostrar archivo Open project: Microsoft/ProjectOxford-ClientSDK

Public Properties

Property Type Description
AccessUri string

Public Methods

Method Description
Authentication ( string clientId, string clientSecret ) : System
GetAccessToken ( ) : AccessTokenInfo

Private Methods

Method Description
OnTokenExpiredCallback ( object stateInfo ) : void
PostHttp ( string accessUri, string requestDetails ) : AccessTokenInfo
RenewAccessToken ( ) : void

Method Details

Authentication() public method

public Authentication ( string clientId, string clientSecret ) : System
clientId string
clientSecret string
return System

GetAccessToken() public method

public GetAccessToken ( ) : AccessTokenInfo
return AccessTokenInfo

Property Details

AccessUri public_oe static_oe property

public static string AccessUri
return string