Exemplo n.º 1
0
 public UsernamePasswordCrmConnection(string username, string password)
     : base(username)
 {
     _loginInfo = new BrowserLoginDetails
     {
         Username = username,
         Password = password.ToSecureString(),
         Url      = HelperMethods.GetAppSettingsValue("Url", false)
     };
 }
Exemplo n.º 2
0
 public OAuthCrmConnection(string username, string password, string appId, string redirectUrl)
     : base(username)
 {
     _loginInfo = new BrowserLoginDetails
     {
         Username = username,
         Password = password.ToSecureString(),
         Url      = HelperMethods.GetAppSettingsValue("Url", false)
     };
     _appId       = appId;
     _redirectUrl = redirectUrl;
 }
 public HybridCrmConnection(string clientId, string clientSecret, string browserUsername, string browserPassword)
     : base(browserUsername)
 {
     _clientId     = clientId;
     _clientSecret = clientSecret;
     _loginInfo    = new BrowserLoginDetails
     {
         Url      = HelperMethods.GetAppSettingsValue("Url", false),
         Username = browserUsername,
         Password = browserPassword.ToSecureString()
     };
 }