Guest User

Untitled

a guest
Jul 18th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
  2.  
  3. ClientCredentials credentials = new ClientCredentials();
  4. credentials.UserName.UserName = "************";
  5. credentials.UserName.Password = "*******";
  6. Uri serviceUri = new Uri("");
  7. OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, null, credentials, null);
  8. proxy.EnableProxyTypes();
  9. var _service = (IOrganizationService)proxy;
Add Comment
Please, Sign In to add comment