Пример #1
0
        public static RemoteSession CreateSession(RemoteAccount remoteAccount)
        {
            var unifiAccount = remoteAccount as UnifiAccount;

            if (unifiAccount != null)
            {
                return(new UnifiSession(unifiAccount));
            }
            throw new ArgumentException();
        }
Пример #2
0
 protected bool Equals(RemoteAccount other)
 {
     return(string.Equals(ServerUrl, other.ServerUrl) && string.Equals(Username, other.Username) && string.Equals(Password, other.Password));
 }
Пример #3
0
 protected RemoteSession(RemoteAccount account)
 {
     Account = account;
 }