Show / Hide Table of Contents

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 Source

Id

Gets the client id.

Declaration
Guid Id { get; }
Property Value
Type Description
System.Guid

Methods

View Source

Build(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.

View Source

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

The IStatefulClientBuilder.

View Source

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

The IStatefulClientBuilder.

View Source

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

The IStatefulClientBuilder.

View Source

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

The IStatefulClientBuilder.

Exceptions
Type Condition
System.ArgumentNullException

serviceBaseUrl is null

System.ArgumentException

uri must be https

Extension Methods

GraphModelExtensions.SetInAdditionalData(Object, String, Object)
  • View Source
Back to top Generated by DocFX