Show / Hide Table of Contents

    Class EventDispatchHandler

    The EventDispatch function receives a remote event from SharePoint as a WCF SOAP message and parses it using SharePointRemoteEventAdapter. Based on the event type, the received information may be augmented by reading additional information from SharePoint. EventDispatch sends the resulting QueuedSharePointProcessEvent to the client's service bus queue.
    The EventDispatch function receives a remote event from SharePoint as a WCF SOAP message, parses it into something that is easier to consume using SharePointRemoteEventAdapter. Based on the event type, the received information may be augmented by reading additional information from SharePoint. EventDispatch sends the resulting QueuedSharePointProcessEvent to the client's service bus queue as JSON.

    Inheritance
    System.Object
    FunctionBase
    EventDispatchHandler
    Inherited Members
    FunctionBase.Log(String)
    FunctionBase.FunctionNotify
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace:EventDispatch
    Assembly:EventDispatch.dll
    Syntax
    public class EventDispatchHandler : FunctionBase
    Remarks

    This class inherits FunctionBase for its simple logging notification event.

    Constructors

    | Improve this Doc

    EventDispatchHandler(HttpRequestMessage)

    Initializes the handler for a given HttpRequestMessage received from the function trigger and parses the incoming WCF message

    Declaration
    public EventDispatchHandler(HttpRequestMessage request)
    Parameters
    Type Name Description
    System.Net.Http.HttpRequestMessage request

    The current request

    Methods

    | Improve this Doc

    Execute(EventDispatchFunctionArgs)

    Processes the received event and sends the result to the client's service bus queue.

    SharePoint's remote event notification lacks the current item state for ItemDeleting and ItemUpdating events. For these event types, it attempts to fetch the current (unchanged) item and populate the ItemBeforeProperties. It is possible for the attempt to fail if the item is already deleted. If the attempt fails, the event is forwarded with the available information.

    Declaration
    public HttpResponseMessage Execute(EventDispatchFunctionArgs args)
    Parameters
    Type Name Description
    EventDispatchFunctionArgs args

    An EventDispatchFunctionArgs instance specifying the location of the client configuration in Azure storage.

    Returns
    Type Description
    System.Net.Http.HttpResponseMessage

    HttpStatusCode.OK if all is well or 500.

    Remarks

    The event is ignored if it is the result of an action taken by an app only identity

    • Improve this Doc
    Back to top Copyright © 2016 InstantQuick
    View project on Github