예제 #1
0
        // fake credentials for tests
        public static SbbCredentials MakeDummyCredentials()
        {
            var res = new SbbCredentials();

            res.SalesforceUrl      = "https://test.salesforce.com/services/Soap/u/32.0";
            res.SalesforceLogin    = "******";
            res.SalesforcePassword = "******";
            return(res);
        }
예제 #2
0
        private SbbCredentials GetTargetCredentials()
        {
            var targetCred = new SbbCredentials();

            targetCred.SalesforceUrl      = "https://test.salesforce.com/services/Soap/u/32.0";
            targetCred.SalesforceLogin    = uxTargetUsername.Text;
            targetCred.SalesforcePassword = uxTargetPassword.Text;
            return(targetCred);
        }
예제 #3
0
        private SbbCredentials GetSourceCredentials()
        {
            var sourceCred = new SbbCredentials();

            sourceCred.SalesforceUrl = "https://test.salesforce.com/services/Soap/u/32.0";
            if (uxSourceUrl.SelectedItem != null && uxSourceUrl.SelectedItem.ToString().StartsWith("Live"))
            {
                sourceCred.SalesforceUrl = "https://login.salesforce.com/services/Soap/u/32.0";
            }
            sourceCred.SalesforceLogin    = uxSourceUsername.Text;
            sourceCred.SalesforcePassword = uxSourcePassword.Text;
            return(sourceCred);
        }
예제 #4
0
 public SalesforceTasks(SbbCredentials cred)
     : this(new SalesforceSession(cred))
 {
 }
예제 #5
0
 public SalesforceSession(SbbCredentials cred)
 {
     _credentials = cred;
     // set up for TLS1.2 or TLS1.1 but not TLS1.0
     System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;
 }