Class OAuthExtensions
Helper method for OAuth
Inheritance
System.Object
OAuthExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions.OAuth
Assembly: Dapplo.HttpExtensions.OAuth.dll
Syntax
public static class OAuthExtensions
Methods
| Improve this Doc View SourceHasToken(IOAuth1Token)
Test if the IOAuth1Token has a token set
Declaration
public static bool HasToken(this IOAuth1Token oAuth1Token)
Parameters
Type | Name | Description |
---|---|---|
IOAuth1Token | oAuth1Token | IOAuth1Token |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified IOAuth1Token has token information |
HasToken(IOAuth2Token)
Test if the IOAuth2Token has a token set
Declaration
public static bool HasToken(this IOAuth2Token oAuth2Token)
Parameters
Type | Name | Description |
---|---|---|
IOAuth2Token | oAuth2Token | IOAuth2Token |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified IOAuth2Token has token information |
IsAccessTokenExpired(IOAuth2Token)
Test if the access token is expired
Declaration
public static bool IsAccessTokenExpired(this IOAuth2Token oAuth2Token)
Parameters
Type | Name | Description |
---|---|---|
IOAuth2Token | oAuth2Token | IOAuth2Token |
Returns
Type | Description |
---|---|
System.Boolean | True if the token is expired |
ResetToken(IOAuth1Token)
Reset the oauth token information
Declaration
public static void ResetToken(this IOAuth1Token oAuth1Token)
Parameters
Type | Name | Description |
---|---|---|
IOAuth1Token | oAuth1Token | IOAuth1Token |
ResetToken(IOAuth2Token)
Reset the oauth token information
Declaration
public static void ResetToken(this IOAuth2Token oAuth2Token)
Parameters
Type | Name | Description |
---|---|---|
IOAuth2Token | oAuth2Token |