Example #1
0
 public void Connect(string username, SecureString password, string url)
 {
     _requestHandler = new RequestHandler(username, password, url);
     string sId = _requestHandler.Login();
     var cInfo = new SessionInformation(sId, url, username);
     SessionState.PSVariable.Set(SessionInfoVariableName, cInfo);
 }
Example #2
0
        public void Connect(string username, SecureString password, string url)
        {
            _requestHandler = new RequestHandler(username, password, url);
            string sId   = _requestHandler.Login();
            var    cInfo = new SessionInformation(sId, url, username);

            SessionState.PSVariable.Set(SessionInfoVariableName, cInfo);
        }