Skip to content

Commit 2f77297

Browse files
committed
Apply formatting rules
1 parent 0bdaadc commit 2f77297

22 files changed

+30
-30
lines changed

App/Api/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
await app.RunAsync();
2424

25-
public partial class Program { } // Reference for tests
25+
public partial class Program { } // Reference for tests

App/Api/Setup/ApiEndpoints.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ private static void ConfigureEndpoint(RouteGroupBuilder group, string route, str
101101
return operation;
102102
});
103103
}
104-
}
104+
}

App/Api/Setup/ApiMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ public static void ConfigureMiddleware(this WebApplication app, IWebHostEnvironm
5050

5151
app.UseRateLimiter();
5252
}
53-
}
53+
}

App/Api/Setup/ApiServiceExtensions.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ public static void ConfigureServices(this IServiceCollection services)
7777
opt.GlobalLimiter = PartitionedRateLimiter.Create<HttpContext, string>(httpContext =>
7878
{
7979
return RateLimitPartition.GetFixedWindowLimiter(
80-
partitionKey: httpContext.Request.Path.ToString(),
81-
factory: _ => new FixedWindowRateLimiterOptions
82-
{
83-
PermitLimit = 10,
84-
Window = TimeSpan.FromMinutes(1),
85-
QueueProcessingOrder = QueueProcessingOrder.OldestFirst,
86-
QueueLimit = 2
87-
});
80+
partitionKey: httpContext.Request.Path.ToString(),
81+
factory: _ => new FixedWindowRateLimiterOptions
82+
{
83+
PermitLimit = 10,
84+
Window = TimeSpan.FromMinutes(1),
85+
QueueProcessingOrder = QueueProcessingOrder.OldestFirst,
86+
QueueLimit = 2
87+
});
8888
});
8989

9090
opt.OnRejected = async (context, cancellationToken) =>
@@ -97,4 +97,4 @@ public static void ConfigureServices(this IServiceCollection services)
9797
services.AddScoped<IMarketClient, MarketClient>();
9898
services.AddScoped<IMarketService, MarketService>();
9999
}
100-
}
100+
}

App/Api/Setup/SwaggerOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ private static OpenApiInfo CreateInfoForApiVersion(ApiVersionDescription descrip
3333

3434
return info;
3535
}
36-
}
36+
}

App/Services/Exceptions/MarketChartException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ public MarketChartException(string message, Exception innerException)
1515
: base(message, innerException)
1616
{
1717
}
18-
}
18+
}

App/Services/Extensions/DateExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ public static DateOnly FromUnixTimestamp(this long unixTimestamp)
2626
var offset = DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
2727
return new DateOnly(offset.Year, offset.Month, offset.Day);
2828
}
29-
}
29+
}

App/Services/Extensions/ListExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ public static bool IsOrderedDecreasing<T>(this IList<T>? list, IComparer<T>? com
4848
}
4949
return true;
5050
}
51-
}
51+
}

App/Services/IMarketClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ namespace Services;
55
public interface IMarketClient
66
{
77
Task<List<MarketChartPoint>?> GetMarketChartByDateRange(DateOnly fromDate, DateOnly toDate);
8-
}
8+
}

App/Services/IMarketService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ public interface IMarketService
55
Task<int?> GetLongestDownwardTrend(DateOnly fromDate, DateOnly toDate);
66
Task<(DateOnly Date, decimal Volume)?> GetHighestTradingVolume(DateOnly fromDate, DateOnly toDate);
77
Task<(DateOnly SellDate, DateOnly BuyDate)?> GetBestBuyAndSellDates(DateOnly fromDate, DateOnly toDate);
8-
}
8+
}

0 commit comments

Comments
 (0)