Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the Endpoint class with required
 /// arguments.
 /// </summary>
 public Endpoint(EndpointProperties properties)
     : this()
 {
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     this.Properties = properties;
 }
 private static TrafficManagerEndpoint GetPowershellTrafficManagerEndpoint(string id, string resourceGroupName, string profileName, string endpointType, string endpointName, EndpointProperties mamlEndpointProperties)
 {
     return new TrafficManagerEndpoint
     {
         Id = id,
         ResourceGroupName = resourceGroupName,
         ProfileName = profileName,
         Name = endpointName,
         Type = endpointType,
         TargetResourceId = mamlEndpointProperties.TargetResourceId,
         Target = mamlEndpointProperties.Target,
         EndpointStatus = mamlEndpointProperties.EndpointStatus,
         Location = mamlEndpointProperties.EndpointLocation,
         Priority = mamlEndpointProperties.Priority,
         Weight = mamlEndpointProperties.Weight,
         EndpointMonitorStatus = mamlEndpointProperties.EndpointMonitorStatus
     };
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the Endpoint class with required
 /// arguments.
 /// </summary>
 public Endpoint(EndpointProperties properties)
     : this()
 {
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     this.Properties = properties;
 }