Class NotificationProcessorExtensions
Extensions for container client.
Inheritance
System.Object
NotificationProcessorExtensions
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 static class NotificationProcessorExtensions
Methods
View SourceExtractResouceData(Notification)
Extracts the resource data from the specified notification.
Declaration
public static object ExtractResouceData(this Notification notification)
Parameters
Type | Name | Description |
---|---|---|
Notification | notification | The notification. |
Returns
Type | Description |
---|---|
System.Object | The resource data notification content. |
Exceptions
Type | Condition |
---|---|
ServiceException | If the specified notification is invalid. |
ProcessNotificationAsync(INotificationProcessor, HttpRequestMessage)
Processes the notification sent from the server to the client. This overload accepts the type of HttpRequest.
Declaration
public static Task<HttpResponseMessage> ProcessNotificationAsync(this INotificationProcessor processor, HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
INotificationProcessor | processor | The processor. |
System.Net.Http.HttpRequestMessage | request | The request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> | Response to be sent back. |
SanitizeResource(String, String)
Gets the model URI.
Declaration
public static string SanitizeResource(this string resource, string baseUrl = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | resource | The resource. |
System.String | baseUrl | The base URL. |
Returns
Type | Description |
---|---|
System.String | The model uri string. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If the resource string is null or whitespace. |