// 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); }
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); }