コード例 #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
ファイル: PSObjects.cs プロジェクト: Azure/azure-powershell
 /// <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;
 }
コード例 #3
0
 /// <summary>
 /// Write Server.
 /// </summary>
 /// <param name="server">Server object</param>
 private void WriteServer(Server server)
 {
     this.WriteObject(new ASRServer(server));
 }