Skip to content

Commit ae53f5c

Browse files
committed
ran dotnet format
1 parent 6f34e7f commit ae53f5c

24 files changed

Lines changed: 282 additions & 279 deletions

benchmarks/Foundatio.Mediator.Benchmarks/CoreBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using BenchmarkDotNet.Attributes;
2-
using Foundatio.Mediator.Benchmarks.Messages;
32
using Foundatio.Mediator.Benchmarks.Handlers.Foundatio;
43
using Foundatio.Mediator.Benchmarks.Handlers.MediatorNet;
4+
using Foundatio.Mediator.Benchmarks.Messages;
55
using Foundatio.Mediator.Benchmarks.Services;
6+
using MassTransit;
67
using Microsoft.Extensions.DependencyInjection;
78
using Microsoft.Extensions.Hosting;
89
using Microsoft.Extensions.Logging;
9-
using MassTransit;
1010
using Wolverine;
1111
using MediatorLib = Mediator;
1212

benchmarks/Foundatio.Mediator.Benchmarks/Messages/BenchmarkMessages.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using MediatR;
21
using Foundatio.Mediator.Benchmarks.Services;
2+
using MediatR;
33

44
namespace Foundatio.Mediator.Benchmarks.Messages;
55

benchmarks/Foundatio.Mediator.Benchmarks/Middleware/BenchmarkMiddleware.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
using Foundatio.Mediator;
1+
using System.Diagnostics;
22
using Foundatio.Mediator.Benchmarks.Messages;
33
using Foundatio.Mediator.Benchmarks.Services;
4-
using System.Diagnostics;
54

65
namespace Foundatio.Mediator.Benchmarks.Middleware;
76

samples/ConsoleSample/Middleware/LoggingMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
using System.Diagnostics;
12
using Foundatio.Mediator;
23
using Microsoft.Extensions.Logging;
3-
using System.Diagnostics;
44

55
namespace ConsoleSample.Middleware;
66

samples/ModularMonolithSample/src/Orders.Module/Api/OrdersApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using Common.Module;
2+
using Common.Module.Extensions;
23
using Foundatio.Mediator;
34
using Microsoft.AspNetCore.Builder;
45
using Microsoft.AspNetCore.Http;
56
using Microsoft.AspNetCore.Routing;
6-
using Common.Module.Extensions;
77
using Orders.Module.Messages;
88

99
namespace Orders.Module.Api;

samples/ModularMonolithSample/src/Products.Module/Api/ProductApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using Common.Module;
2+
using Common.Module.Extensions;
23
using Foundatio.Mediator;
34
using Microsoft.AspNetCore.Builder;
45
using Microsoft.AspNetCore.Http;
56
using Microsoft.AspNetCore.Routing;
6-
using Common.Module.Extensions;
77
using Products.Module.Messages;
88

99
namespace Products.Module.Api;

src/Foundatio.Mediator.Abstractions/MediatorActivitySource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ namespace Foundatio.Mediator;
55
public static class MediatorActivitySource
66
{
77
public static readonly ActivitySource Instance = new("Foundatio.Mediator");
8-
}
8+
}

src/Foundatio.Mediator/HandlerAnalyzer.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public static bool IsMatch(SyntaxNode node)
3434
.SelectMany(al => al.Attributes)
3535
.Any(a => a.Name is IdentifierNameSyntax { Identifier.ValueText: "Handler" }
3636
or QualifiedNameSyntax
37-
{
38-
Right.Identifier.ValueText: "Handler"
39-
}))
37+
{
38+
Right.Identifier.ValueText: "Handler"
39+
}))
4040
{
4141
return true;
4242
}
@@ -49,9 +49,9 @@ or QualifiedNameSyntax
4949
if (m.AttributeLists.SelectMany(al => al.Attributes)
5050
.Any(a => a.Name is IdentifierNameSyntax { Identifier.ValueText: "Handler" }
5151
or QualifiedNameSyntax
52-
{
53-
Right.Identifier.ValueText: "Handler"
54-
}))
52+
{
53+
Right.Identifier.ValueText: "Handler"
54+
}))
5555
{
5656
return true;
5757
}

src/Foundatio.Mediator/MiddlewareAnalyzer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private static bool IsExceptionType(ITypeSymbol type, INamedTypeSymbol exception
336336
return false;
337337
}
338338

339-
private static readonly string[] MiddlewareBeforeMethodNames = [ "Before", "BeforeAsync" ];
340-
private static readonly string[] MiddlewareAfterMethodNames = [ "After", "AfterAsync" ];
341-
private static readonly string[] MiddlewareFinallyMethodNames = [ "Finally", "FinallyAsync" ];
339+
private static readonly string[] MiddlewareBeforeMethodNames = ["Before", "BeforeAsync"];
340+
private static readonly string[] MiddlewareAfterMethodNames = ["After", "AfterAsync"];
341+
private static readonly string[] MiddlewareFinallyMethodNames = ["Finally", "FinallyAsync"];
342342
}

src/Foundatio.Mediator/Utility/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static string ToIdentifier(this string name)
6060
return String.Empty;
6161

6262
var identifier = new string(name.Select(c => Char.IsLetterOrDigit(c) || c == '_' ? c : '_').ToArray());
63-
63+
6464
// C# identifiers cannot start with a digit, so prefix with underscore if needed
6565
if (identifier.Length > 0 && Char.IsDigit(identifier[0]))
6666
return "_" + identifier;

0 commit comments

Comments
 (0)