Exemplo n.º 1
0
 /// <inheritdoc/>
 Backend IDeepCloneable <Backend> .DeepClone()
 {
     return(new Backend
     {
         CircuitBreakerOptions = CircuitBreakerOptions?.DeepClone(),
         QuotaOptions = QuotaOptions?.DeepClone(),
         PartitioningOptions = PartitioningOptions?.DeepClone(),
         LoadBalancing = LoadBalancing?.DeepClone(),
         HealthCheckOptions = HealthCheckOptions?.DeepClone(),
         Endpoints = Endpoints.DeepClone(StringComparer.Ordinal),
         Metadata = Metadata?.DeepClone(StringComparer.Ordinal),
     });
 }
Exemplo n.º 2
0
 /// <inheritdoc/>
 Cluster IDeepCloneable <Cluster> .DeepClone()
 {
     return(new Cluster
     {
         Id = Id,
         LoadBalancing = LoadBalancing?.DeepClone(),
         SessionAffinity = SessionAffinity?.DeepClone(),
         HealthCheck = HealthCheck?.DeepClone(),
         HttpClient = HttpClient?.DeepClone(),
         HttpRequest = HttpRequest?.DeepClone(),
         Destinations = Destinations.DeepClone(StringComparer.OrdinalIgnoreCase),
         Metadata = Metadata?.DeepClone(StringComparer.OrdinalIgnoreCase),
     });
 }
Exemplo n.º 3
0
 /// <inheritdoc/>
 Cluster IDeepCloneable <Cluster> .DeepClone()
 {
     return(new Cluster
     {
         Id = Id,
         CircuitBreakerOptions = CircuitBreakerOptions?.DeepClone(),
         QuotaOptions = QuotaOptions?.DeepClone(),
         PartitioningOptions = PartitioningOptions?.DeepClone(),
         LoadBalancing = LoadBalancing?.DeepClone(),
         SessionAffinity = SessionAffinity?.DeepClone(),
         HealthCheckOptions = HealthCheckOptions?.DeepClone(),
         Destinations = Destinations.DeepClone(StringComparer.Ordinal),
         Metadata = Metadata?.DeepClone(StringComparer.Ordinal),
     });
 }
Exemplo n.º 4
0
 /// <inheritdoc/>
 Cluster IDeepCloneable <Cluster> .DeepClone()
 {
     return(new Cluster
     {
         Id = Id,
         CircuitBreaker = CircuitBreaker?.DeepClone(),
         Quota = Quota?.DeepClone(),
         Partitioning = Partitioning?.DeepClone(),
         LoadBalancing = LoadBalancing?.DeepClone(),
         SessionAffinity = SessionAffinity?.DeepClone(),
         HealthCheck = HealthCheck?.DeepClone(),
         HttpClient = HttpClient?.DeepClone(),
         Destinations = Destinations.DeepClone(StringComparer.OrdinalIgnoreCase),
         Metadata = Metadata?.DeepClone(StringComparer.OrdinalIgnoreCase),
     });
 }