private AwsServiceEndpointMetadata(string serviceId, string cliName, string endPointPattern, int port, AwsServiceEnum @enum)
 {
     ServiceId = serviceId;
     CliName = cliName;
     EndPointPattern = endPointPattern;
     Enum = @enum;
     Port = port;
 }
Esempio n. 2
0
 public AwsServiceEndpoint(string serviceId, string cliName, AwsServiceEnum @enum, int port, string host, string serviceUrl)
 {
     ServiceId      = serviceId;
     CliName        = cliName;
     AwsServiceEnum = @enum;
     Port           = port;
     Host           = host;
     ServiceUrl     = serviceUrl;
 }
 public static AwsServiceEndpointMetadata ByEnum(AwsServiceEnum @enum)
 {
     return All.SingleOrDefault(service => service.Enum == @enum);
 }
Esempio n. 4
0
 public AwsServiceEndpoint GetAwsServiceEndpoint(AwsServiceEnum awsServiceEnum)
 {
     return(_awsServiceEndpoints.SingleOrDefault(endpoint => endpoint.AwsServiceEnum == awsServiceEnum));
 }
 public int GetAwsServicePort(AwsServiceEnum awsServiceEnum)
 {
     return(_awsServiceEndpoints
            .First(endpoint => endpoint.AwsServiceEnum == awsServiceEnum)
            .Port);
 }