コード例 #1
0
 /// <summary>
 /// Write Server.
 /// </summary>
 /// <param name="server">Server object</param>
 private void WriteServer(Server server)
 {
     this.WriteObject(new ASRServer(server));
 }
コード例 #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.FriendlyName = server.Properties.FriendlyName;
     this.LastHeartbeat = server.Properties.LastHeartbeat;
     this.ProviderVersion = server.Properties.ProviderVersion;
     this.ServerVersion = server.Properties.ServerVersion;
     // this.Connected = server.Properties.Connected;
     this.FabricObjectID = server.Properties.FabricObjectID;
     this.FabricType = server.Properties.FabricType;
     this.Type = server.Type;
 }