Skip to content

Instantly share code, notes, and snippets.

@andrewconnell
Created November 27, 2014 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewconnell/b5d2a2ede3b087c8401e to your computer and use it in GitHub Desktop.
Save andrewconnell/b5d2a2ede3b087c8401e to your computer and use it in GitHub Desktop.
This a hypothetical signature for a Office 365 / SharePoint deployment service for my AAD+H concept outlined here http://aconn.me/1y3klra
public interface IAppDeploymentServiceReceiver {
public AppDeploymentServiceResult DeployApp(AppDeploymentManifest manifest,
AppProperties props) {
var result = new AppDeploymentServiceResult();
// set result
return result;
}
}
public class AppDeploymentServiceResult {
public System.Net.HttpStatusCode StatusCode { get; set; }
public string StatusMessage { get; set; }
public Uri RemoteWebUrl { get; set; }
}
public class AppDeploymentManifest {
public Uri RemoteWebPackageUrl { get; set; }
public Uri RemoteDbPackageUrl { get; set; }
public System.Collections.Dictionary DeploymentProperties { get; set; }
}
public class AppProperties {
public System.Uri HostWebUrl { get; set; }
public System.Uri AppWebUrl { get; set; }
public Guid InstanceId { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment