Skip to content

Instantly share code, notes, and snippets.

@rcurlette
Created January 20, 2015 08:36
Show Gist options
  • Select an option

  • Save rcurlette/ef435d1b1c4648cd6cd9 to your computer and use it in GitHub Desktop.

Select an option

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