Interface IStatefulClientBuilder
The builder object that builds the stateful client.
Namespace: Microsoft.Graph.StatefulClient
Assembly: Microsoft.Graph.StatefulClient.dll
Syntax
public interface IStatefulClientBuilder
Properties
View SourceId
Gets the client id.
Declaration
Guid Id { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
View SourceBuild(GraphLogger)
Build and return the stateful client object.
Declaration
IStatefulClient Build(GraphLogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Graph.Core.Telemetry.GraphLogger | logger | The graph logger |
Returns
Type | Description |
---|---|
IStatefulClient | The IStatefulClient. |
SetAuthenticationProvider(IRequestAuthenticationProvider)
Sets the custom authentication provider.
Declaration
IStatefulClientBuilder SetAuthenticationProvider(IRequestAuthenticationProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IRequestAuthenticationProvider | provider | The authentication provider. |
Returns
Type | Description |
---|---|
IStatefulClientBuilder |
SetHttpClient(HttpClient, IEnumerable<KeyValuePair<String, String>>)
Sets the http client.
Declaration
IStatefulClientBuilder SetHttpClient(HttpClient httpClient, IEnumerable<KeyValuePair<string, string>> defaultHeaders = null)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpClient | httpClient | The place call endpoint URL. |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>> | defaultHeaders | The default headers. |
Returns
Type | Description |
---|---|
IStatefulClientBuilder |
SetNotificationUrl(Uri)
Set the notification uri for your bot.
Declaration
IStatefulClientBuilder SetNotificationUrl(Uri notificationUrl)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | notificationUrl | The callback Url. |
Returns
Type | Description |
---|---|
IStatefulClientBuilder |
SetServiceBaseUrl(Uri)
Sets the service base URL.
Declaration
IStatefulClientBuilder SetServiceBaseUrl(Uri serviceBaseUrl)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | serviceBaseUrl | The place call endpoint URL. |
Returns
Type | Description |
---|---|
IStatefulClientBuilder |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException | uri must be https |