コード例 #1
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),
     });
 }
コード例 #2
0
 /// <inheritdoc/>
 Backend IDeepCloneable <Backend> .DeepClone()
 {
     return(new Backend
     {
         Id = Id,
         CircuitBreakerOptions = CircuitBreakerOptions?.DeepClone(),
         QuotaOptions = QuotaOptions?.DeepClone(),
         PartitioningOptions = PartitioningOptions?.DeepClone(),
         LoadBalancing = LoadBalancing?.DeepClone(),
         HealthCheckOptions = HealthCheckOptions?.DeepClone(),
         Destinations = Destinations.DeepClone(StringComparer.Ordinal),
         Metadata = Metadata?.DeepClone(StringComparer.Ordinal),
     });
 }
コード例 #3
0
ファイル: Cluster.cs プロジェクト: wfurt/reverse-proxy
 /// <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),
     });
 }
コード例 #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),
     });
 }