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.
Inherited Members
Namespace:AppLaunch
Assembly:AppLaunch.dll
Syntax
public class AppLaunchHandler : FunctionBase
Remarks
This class inherits FunctionBase for its simple logging notification event.
Constructors
| Improve this Doc View SourceAppLaunchHandler(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 SourceExecute(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. |