示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ASRServer" /> class with required 
 /// parameters.
 /// </summary>
 /// <param name="server">Server object</param>
 public ASRServer(Server server)
 {
     this.ID = server.ID;
     this.Name = server.Name;
     this.LastHeartbeat = server.LastHeartbeat;
     this.ProviderVersion = server.ProviderVersion;
     this.ServerVersion = server.ServerVersion;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ASRServer" /> class with required 
 /// parameters.
 /// </summary>
 /// <param name="server">Server object</param>
 public ASRServer(Server server)
 {
     this.ID = server.ID;
     this.Name = server.Name;
     this.LastHeartbeat = server.LastHeartbeat;
     this.ProviderVersion = server.ProviderVersion;
     this.ServerVersion = server.ServerVersion;
     this.Connected = server.Connected;
     this.FabricObjectID = server.FabricObjectID;
     this.FabricType = server.FabricType;
     this.Type = server.Type;
 }
 /// <summary>
 /// Write Server.
 /// </summary>
 /// <param name="server">Server object</param>
 private void WriteServer(Server server)
 {
     this.WriteObject(new ASRServer(server));
 }