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 SourceAppId
Gets the application identifier.
Declaration
string AppId { get; }
Property Value
Type | Description |
---|---|
System.String |
AppName
Gets the name of the application.
Declaration
string AppName { get; }
Property Value
Type | Description |
---|---|
System.String |
AuthenticationProvider
Gets the authentication provider.
Declaration
IRequestAuthenticationProvider AuthenticationProvider { get; }
Property Value
Type | Description |
---|---|
IRequestAuthenticationProvider |
BaseUrl
Gets the base URL.
Declaration
string BaseUrl { get; }
Property Value
Type | Description |
---|---|
System.String |
GraphClient
Gets the graph client.
Declaration
IGraphClient GraphClient { get; }
Property Value
Type | Description |
---|---|
Microsoft.Graph.Core.Transport.IGraphClient |
GraphLogger
Gets the graph logger.
Declaration
IGraphLogger GraphLogger { get; }
Property Value
Type | Description |
---|---|
Microsoft.Graph.Core.Telemetry.IGraphLogger |
Id
Gets the client identifier.
Declaration
Guid Id { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
View SourceProcessNotifications(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. |
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 SourceOnNotificationException
Occurs when exceptions are raised on notification callbacks.
Declaration
event Action<FailedNotificationEventArgs> OnNotificationException
Event Type
Type | Description |
---|---|
System.Action<FailedNotificationEventArgs> |
OnNotificationProcessed
Occurs when the said notification has been processed by all callbacks.
Declaration
event Action<NotificationEventArgs> OnNotificationProcessed
Event Type
Type | Description |
---|---|
System.Action<NotificationEventArgs> |