Beispiel #1
0
//        protected PaidHub(Uri remoteAddress, ICapabilities capabilities) : base(remoteAddress, capabilities)
//        {
//        }

        protected PaidHub(string hubUrl, string keyText, string secretText, ICapabilities capabilities) : base(
                new Uri(hubUrl), capabilities)
        {
            //ToDo auth from App.Config
            Api = new PaidHubApi(capabilities.GetCapability(keyText).ToString(),
                                 capabilities.GetCapability(secretText).ToString(), RestApiUri, SessionId.ToString(), HubType);
        }
Beispiel #2
0
 protected PaidHub(string hubUrl, string keyText, string user, string secretText, string key,
                   DesiredCapabilities capabilities) : base(new Uri(hubUrl),
                                                            Auth(keyText, user, secretText, key, capabilities))
 {
     Api = new PaidHubApi(user, key, RestApiUri, SessionId.ToString(), HubType);
 }