Show / Hide Table of Contents

Class NotificationProcessor

The notification processor class.

Inheritance
System.Object
NotificationProcessor
Implements
INotificationProcessor
System.IDisposable
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.CoreSDK.Notifications
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public class NotificationProcessor : INotificationProcessor, IDisposable

Constructors

View Source

NotificationProcessor(IAuthenticationProvider)

Initializes a new instance of the NotificationProcessor class.

Declaration
public NotificationProcessor(IAuthenticationProvider authenticationProvider)
Parameters
Type Name Description
IAuthenticationProvider authenticationProvider

The authentication provider.

Exceptions
Type Condition
System.ArgumentNullException

If the authentication provider is null.

Properties

View Source

AuthenticationProvider

Gets the authentication provider. TODO: This should probably not be a part of the INotificationProcessor. Ideally the request is already validated prior to making it in here. This means that 1) Already sanitized by authentication provider and 2) The tenant/correlation id parameters extracted into the IGraphRequest.

Declaration
public IAuthenticationProvider AuthenticationProvider { get; }
Property Value
Type Description
IAuthenticationProvider

The authentication provider.

Methods

View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
View Source

ExtractNotifications(String, JsonSerializerSettings)

Extracts the notifications from the specified content string.

Declaration
public static Notifications ExtractNotifications(string content, JsonSerializerSettings serializerSettings)
Parameters
Type Name Description
System.String content

The content.

Newtonsoft.Json.JsonSerializerSettings serializerSettings

The serializer settings.

Returns
Type Description
Notifications

The deserialized Notifications.

Exceptions
Type Condition
ServiceException

If the specified content is invalid.

View Source

ProcessNotification(IGraphRequest)

Process the incoming notification

Declaration
public IGraphResponse ProcessNotification(IGraphRequest request)
Parameters
Type Name Description
IGraphRequest request

The request that contains the notification

Returns
Type Description
IGraphResponse

The http response to the inbound request.

Events

View Source

OnCollectionNotificationReceived

Occurs when a collection notification is received.

Declaration
public event Action<CollectionNotificationEventArgs> OnCollectionNotificationReceived
Event Type
Type Description
System.Action<CollectionNotificationEventArgs>
View Source

OnNotificationReceived

Occurs when a notification is received. This is a global hook for all notifications.

Declaration
public event Action<NotificationEventArgs> OnNotificationReceived
Event Type
Type Description
System.Action<NotificationEventArgs>
View Source

OnResourceNotificationReceived

Occurs when a single resource notification is received.

Declaration
public event Action<NotificationEventArgs> OnResourceNotificationReceived
Event Type
Type Description
System.Action<NotificationEventArgs>

Implements

INotificationProcessor
System.IDisposable

Extension Methods

NotificationProcessorExtensions.ProcessNotificationAsync(INotificationProcessor, HttpRequestMessage)

See Also

INotificationProcessor
  • View Source
Back to top Generated by DocFX