Show / Hide Table of Contents

Interface IStatefulClient

The StatefulClient interface.

Inherited Members
System.IDisposable.Dispose()
Namespace: Microsoft.Graph.StatefulClient
Assembly: Microsoft.Graph.StatefulClient.dll
Syntax
public interface IStatefulClient : IDisposable

Properties

View Source

AppId

Gets the application identifier.

Declaration
string AppId { get; }
Property Value
Type Description
System.String
View Source

AppName

Gets the name of the application.

Declaration
string AppName { get; }
Property Value
Type Description
System.String
View Source

AuthenticationProvider

Gets the authentication provider.

Declaration
IRequestAuthenticationProvider AuthenticationProvider { get; }
Property Value
Type Description
IRequestAuthenticationProvider
View Source

BaseUrl

Gets the base URL.

Declaration
string BaseUrl { get; }
Property Value
Type Description
System.String
View Source

GraphClient

Gets the graph client.

Declaration
IGraphClient GraphClient { get; }
Property Value
Type Description
Microsoft.Graph.Core.Transport.IGraphClient
View Source

GraphLogger

Gets the graph logger.

Declaration
IGraphLogger GraphLogger { get; }
Property Value
Type Description
Microsoft.Graph.Core.Telemetry.IGraphLogger
View Source

Id

Gets the client identifier.

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

Methods

View Source

ProcessNotifications(Uri, Notifications, String, Guid, Guid)

Processes the notifications.

Declaration
void ProcessNotifications(Uri callbackUri, Notifications notifications, string tenantId, Guid requestId, Guid correlationId)
Parameters
Type Name Description
System.Uri callbackUri

The callback URI.

Notifications notifications

The notifications.

System.String tenantId

The tenant identifier.

System.Guid requestId

The request identifier.

System.Guid correlationId

The correlation identifier.

View Source

TerminateAsync(TimeSpan)

Terminates this client asynchronously. This terminates all the calls, waits for dispose events, and disposes everything.

Declaration
Task<bool> TerminateAsync(TimeSpan timeout = default(TimeSpan))
Parameters
Type Name Description
System.TimeSpan timeout

The timeout.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if all instances terminated successfully, false otherwise.

Events

View Source

OnNotificationException

Occurs when exceptions are raised on notification callbacks.

Declaration
event Action<FailedNotificationEventArgs> OnNotificationException
Event Type
Type Description
System.Action<FailedNotificationEventArgs>
View Source

OnNotificationProcessed

Occurs when the said notification has been processed by all callbacks.

Declaration
event Action<NotificationEventArgs> OnNotificationProcessed
Event Type
Type Description
System.Action<NotificationEventArgs>

Extension Methods

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