Skip to content

Instantly share code, notes, and snippets.

@rcurlette
Created January 20, 2015 08:36
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 rcurlette/ef435d1b1c4648cd6cd9 to your computer and use it in GitHub Desktop.
Save rcurlette/ef435d1b1c4648cd6cd9 to your computer and use it in GitHub Desktop.
CoreServiceImpersonation
string endpointName = "netTcp_2013";
SessionAwareCoreServiceClient client = new SessionAwareCoreServiceClient(endpointName);
client.Impersonate(System.Web.HttpContext.Current.User.Identity.Name);
// Actions- Publish a page, create Component, etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment