Show / Hide Table of Contents

    Class AppLaunchHandler

    This function is called when SharePoint POSTs an ACS token for a SharePoint add-in. The SharePoint add-in's manifest XML must specify the function URL as the value of the StartPage element. A valid client configuration is required.

    Once connected to a SharePoint site, the function checks the add-in's install status and provisions as indicated by the bootstrapmanifest.json located in the client's configuration storage container. If provisioning occurs a message is sent to the service bus queue specified in the client configuration to notify the client for additional processing as desired. Finally, a message is sent to the service bus queue specified in the client configuration to notify the client of the add-in's launch.

    Inheritance
    System.Object
    FunctionBase
    AppLaunchHandler
    Inherited Members
    FunctionBase.FunctionNotify
    FunctionBase.Log(String)
    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:AzureFunctionsForSharePoint.Functions
    Assembly:AzureFunctionsForSharePoint.Functions.dll
    Syntax
    public class AppLaunchHandler : FunctionBase
    Remarks

    This class inherits FunctionBase for its simple logging notification event.

    Constructors

    | Improve this Doc View Source

    AppLaunchHandler(HttpRequestMessage)

    Initializes the handler for a given HttpRequestMessage received from the function trigger

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

    The current request

    Methods

    | Improve this Doc View Source

    Execute(AppLauncherFunctionArgs)

    Performs the app launch flow for the current request

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

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

    Returns
    Type Description
    System.Net.Http.HttpResponseMessage

    If launch succeeds the response is a 302 redirect back to the SharePoint site's home page.

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