Show / Hide Table of Contents

    Class NotificationProcessorExtensions

    Extensions for container client.

    Inheritance
    Object
    NotificationProcessorExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph.Communications.Core.Notifications
    Assembly: Microsoft.Graph.Communications.Core.dll
    Syntax
    public static class NotificationProcessorExtensions

    Methods

    ExtractResouceData(CommsNotification)

    Extracts the resource data from the specified notification.

    Declaration
    public static object ExtractResouceData(this CommsNotification notification)
    Parameters
    Type Name Description
    CommsNotification notification

    The notification.

    Returns
    Type Description
    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.

    HttpRequestMessage request

    The request.

    Returns
    Type Description
    Task<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
    String resource

    The resource.

    String baseUrl

    The base URL.

    Returns
    Type Description
    String

    The model uri string.

    Exceptions
    Type Condition
    ArgumentNullException

    If the resource string is null or whitespace.

    TryGetGuid(HttpHeaders, String, out Guid)

    Tries to get the GUID value for the specifed header.

    Declaration
    public static bool TryGetGuid(this HttpHeaders headers, string header, out Guid guid)
    Parameters
    Type Name Description
    HttpHeaders headers

    The headers collection.

    String header

    The header to look at.

    Guid guid

    The found guid

    Returns
    Type Description
    Boolean

    True if the specified header is a valid guid, false otherwise.

    Back to top Copyright (c) Microsoft Corporation. All rights reserved.