public RemoteConnectionGroupModel(RemoteConnectionModel host)
            : this()
        {
            this.Host = host;

            this.ID      = Guid.NewGuid();
            this.LastUse = DateTimeOffset.Now;
        }
 public RemoteConnectionAuthenticationTokenModel(RemoteConnectionModel connection, RemoteConnectionAuthenticationTokenModel hostConnection)
     : this(connection)
 {
     if (hostConnection != null)
     {
         this.GroupID  = hostConnection.GroupID;
         this.HostName = hostConnection.Name;
     }
     else
     {
         this.GroupID = Guid.NewGuid();
         this.IsHost  = true;
     }
 }
 public RemoteConnectionAuthenticationTokenModel(RemoteConnectionModel connection)
     : base(connection.Name)
 {
     this.ID       = connection.ID;
     this.HostName = connection.Name;
 }
示例#4
0
 public RemoteConnectionAuthenticationTokenModel(RemoteConnectionModel connection, Guid groupID)
     : this(connection)
 {
     this.GroupID = groupID;
 }