Class DelegateAuthenticationProvider
Interface for authenticating requests.
Inheritance
System.Object
DelegateAuthenticationProvider
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public class DelegateAuthenticationProvider : IAuthenticationProvider
Constructors
View SourceDelegateAuthenticationProvider(AuthenticateRequestAsyncDelegate)
Initializes a new instance of the DelegateAuthenticationProvider class.
Declaration
public DelegateAuthenticationProvider(AuthenticateRequestAsyncDelegate authenticateRequestAsyncDelegate)
Parameters
Type | Name | Description |
---|---|---|
AuthenticateRequestAsyncDelegate | authenticateRequestAsyncDelegate | The authentication request delegate. |
Properties
View SourceAuthenticateRequestAsyncDelegate
Gets or sets the delegate for authenticating requests.
Declaration
public AuthenticateRequestAsyncDelegate AuthenticateRequestAsyncDelegate { get; set; }
Property Value
Type | Description |
---|---|
AuthenticateRequestAsyncDelegate | The authenticate request asynchronous delegate. |
Methods
View SourceAuthenticateRequestAsync(HttpRequestMessage)
Authenticates the specified request message. This method will be called any time there is an outbound request.
Declaration
public Task AuthenticateRequestAsync(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpRequestMessage | request | The System.Net.Http.HttpRequestMessage to authenticate. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The System.Threading.Tasks.Task to await. |