Example #1
0
 /// <summary>
 /// Initializes a new instance of the ProtectionEntity class with
 /// required arguments.
 /// </summary>
 public ProtectionEntity(ProtectionEntityProperties properties, string location)
     : this()
 {
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     if (location == null)
     {
         throw new ArgumentNullException("location");
     }
     this.Properties = properties;
     this.Location   = location;
 }
 /// <summary>
 /// Initializes a new instance of the ProtectionEntity class with
 /// required arguments.
 /// </summary>
 public ProtectionEntity(ProtectionEntityProperties properties, string location)
     : this()
 {
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     if (location == null)
     {
         throw new ArgumentNullException("location");
     }
     this.Properties = properties;
     this.Location = location;
 }
 /// <summary>
 /// Initializes a new instance of the VirtualMachine class with
 /// required arguments.
 /// </summary>
 public VirtualMachine(string replicationProviderSettings, ProtectionEntityProperties properties, string location)
     : this()
 {
     if (replicationProviderSettings == null)
     {
         throw new ArgumentNullException("replicationProviderSettings");
     }
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     if (location == null)
     {
         throw new ArgumentNullException("location");
     }
     this.ReplicationProviderSettings = replicationProviderSettings;
     this.Properties = properties;
     this.Location   = location;
 }
 /// <summary>
 /// Initializes a new instance of the VirtualMachine class with
 /// required arguments.
 /// </summary>
 public VirtualMachine(string replicationProviderSettings, ProtectionEntityProperties properties, string location)
     : this()
 {
     if (replicationProviderSettings == null)
     {
         throw new ArgumentNullException("replicationProviderSettings");
     }
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     if (location == null)
     {
         throw new ArgumentNullException("location");
     }
     this.ReplicationProviderSettings = replicationProviderSettings;
     this.Properties = properties;
     this.Location = location;
 }