Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Dec 16, 2023
1 parent e9f6d9f commit 29ae7e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ocelot/Configuration/File/FileRoute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public FileRoute()
FileCacheOptions = new FileCacheOptions();
HttpHandlerOptions = new FileHttpHandlerOptions();
LoadBalancerOptions = new FileLoadBalancerOptions();
Metadata = new Dictionary<string, string>();
Priority = 1;
QoSOptions = new FileQoSOptions();
RateLimitOptions = new FileRateLimitRule();
RouteClaimsRequirement = new Dictionary<string, string>();
SecurityOptions = new FileSecurityOptions();
UpstreamHeaderTransform = new Dictionary<string, string>();
UpstreamHttpMethod = new List<string>();
Metadata = new Dictionary<string, string>();
}

public FileRoute(FileRoute from)
Expand All @@ -47,6 +47,7 @@ public FileRoute(FileRoute from)
public FileHttpHandlerOptions HttpHandlerOptions { get; set; }
public string Key { get; set; }
public FileLoadBalancerOptions LoadBalancerOptions { get; set; }
public IDictionary<string, string> Metadata { get; set; }
public int Priority { get; set; }
public FileQoSOptions QoSOptions { get; set; }
public FileRateLimitRule RateLimitOptions { get; set; }
Expand All @@ -61,7 +62,6 @@ public FileRoute(FileRoute from)
public string UpstreamHost { get; set; }
public List<string> UpstreamHttpMethod { get; set; }
public string UpstreamPathTemplate { get; set; }
public IDictionary<string, string> Metadata { get; set; }

/// <summary>
/// Clones this object by making a deep copy.
Expand Down Expand Up @@ -93,6 +93,7 @@ public static void DeepCopy(FileRoute from, FileRoute to)
to.HttpHandlerOptions = new(from.HttpHandlerOptions);
to.Key = from.Key;
to.LoadBalancerOptions = new(from.LoadBalancerOptions);
to.Metadata = new Dictionary<string, string>(from.Metadata);
to.Priority = from.Priority;
to.QoSOptions = new(from.QoSOptions);
to.RateLimitOptions = new(from.RateLimitOptions);
Expand All @@ -107,7 +108,6 @@ public static void DeepCopy(FileRoute from, FileRoute to)
to.UpstreamHost = from.UpstreamHost;
to.UpstreamHttpMethod = new(from.UpstreamHttpMethod);
to.UpstreamPathTemplate = from.UpstreamPathTemplate;
to.Metadata = new Dictionary<string, string>(from.Metadata);
}
}
}

0 comments on commit 29ae7e9

Please sign in to comment.