Rename extensions to extensions
This commit is contained in:
parent
d086d278e8
commit
6b8992153a
@ -1,4 +1,4 @@
|
||||
public static class ServiceCollectionExtensions
|
||||
internal static class Extensions
|
||||
{
|
||||
public static IServiceCollection AddHealthChecks(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
@ -17,7 +17,6 @@
|
||||
services.AddTransient<HttpClientAuthorizationDelegatingHandler>();
|
||||
|
||||
// Register http services
|
||||
|
||||
services.AddHttpClient<IOrderApiClient, OrderApiClient>()
|
||||
.AddHttpMessageHandler<HttpClientAuthorizationDelegatingHandler>();
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
public static class CustomExtensionMethods
|
||||
public static class Extensions
|
||||
{
|
||||
public static IServiceCollection AddHealthChecks(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
public static class CustomExtensionMethods
|
||||
public static class Extensions
|
||||
{
|
||||
public static IServiceCollection AddHealthChecks(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
static class CustomExtensionsMethods
|
||||
internal static class Extensions
|
||||
{
|
||||
public static IServiceCollection AddHealthChecks(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
@ -1,12 +1,12 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
public static class CustomExtensionMethods
|
||||
internal static class Extensions
|
||||
{
|
||||
public static IServiceCollection AddSignalR(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
if (configuration.GetConnectionString("redis") is string redisConnection)
|
||||
{
|
||||
// Add a redis health check
|
||||
// TODO: Add a redis health check
|
||||
services.AddSignalR().AddStackExchangeRedis(redisConnection);
|
||||
}
|
||||
else
|
@ -1,4 +1,4 @@
|
||||
internal static class CustomExtensionMethods
|
||||
internal static class Extensions
|
||||
{
|
||||
public static IServiceCollection AddDbContexts(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user