Initial Version #70
Annotations
2 errors
Immediate.Handlers.Tests.GeneratorTests.MultipleBehaviorTest.MultipleBehaviors(assemblies: [Normal
VerifyException : Directory: /home/runner/work/Immediate.Handlers/Immediate.Handlers/tests/Immediate.Handlers.Tests/GeneratorTests
New:
- Received: MultipleBehaviorTest.MultipleBehaviors_assemblies=Normal_Msdi#Immediate.Handlers.ServiceCollectionExtensions.g.received.cs
Verified: MultipleBehaviorTest.MultipleBehaviors_assemblies=Normal_Msdi#Immediate.Handlers.ServiceCollectionExtensions.g.verified.cs
- Received: MultipleBehaviorTest.MultipleBehaviors_assemblies=Normal_Msdi#Immediate.Handlers.Templates.Dummy.GetUsersQuery.g.received.cs
Verified: MultipleBehaviorTest.MultipleBehaviors_assemblies=Normal_Msdi#Immediate.Handlers.Templates.Dummy.GetUsersQuery.g.verified.cs
FileContent:
New:
Received: MultipleBehaviorTest.MultipleBehaviors_assemblies=Normal_Msdi#Immediate.Handlers.ServiceCollectionExtensions.g.received.cs
//HintName: Immediate.Handlers.ServiceCollectionExtensions.g.cs
#pragma warning disable CS1591
namespace Microsoft.Extensions.DependencyInjection;
public static class HandlerServiceCollectionExtensions
{
public static global::Microsoft.Extensions.DependencyInjection.IServiceCollection AddHandlers(
this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services)
{
services.AddScoped(typeof(global::Dummy.LoggingBehavior<,>));
services.AddScoped(typeof(global::Dummy.SecondLoggingBehavior<,>));
global::Dummy.GetUsersQuery.AddHandlers(services);
return services;
}
}
Received: MultipleBehaviorTest.MultipleBehaviors_assemblies=Normal_Msdi#Immediate.Handlers.Templates.Dummy.GetUsersQuery.g.received.cs
//HintName: Immediate.Handlers.Templates.Dummy.GetUsersQuery.g.cs
using Microsoft.Extensions.DependencyInjection;
#pragma warning disable CS1591
namespace Dummy;
public static partial class GetUsersQuery
{
public sealed class Handler
{
private readonly global::Dummy.LoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> _behavior_1;
private readonly global::Dummy.SecondLoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> _behavior_2;
private readonly global::Dummy.GetUsersQuery.HandleBehavior _behavior_0;
public Handler(
global::Dummy.LoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> behavior_1,
global::Dummy.SecondLoggingBehavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>> behavior_2,
global::Dummy.GetUsersQuery.HandleBehavior handleBehavior)
{
_behavior_1 = behavior_1;
_behavior_2 = behavior_2;
_behavior_0 = handleBehavior;
}
public async global::System.Threading.Tasks.Task<IEnumerable<global::Dummy.User>> HandleAsync(global::Dummy.GetUsersQuery.Query request, global::System.Threading.CancellationToken cancellationToken = default)
{
_behavior_2.InnerHandler = _behavior_1;
_behavior_1.InnerHandler = _behavior_0;
return await _behavior_2.HandleAsync(request, cancellationToken).ConfigureAwait(false);
}
}
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public sealed class HandleBehavior : global::Immediate.Handlers.Shared.Behavior<global::Dummy.GetUsersQuery.Query, IEnumerable<global::Dummy.User>>
{
private readonly global::Dummy.UsersService _usersService;
public HandleBehavior(
global::Dummy.UsersService usersService
)
{
_usersService = usersService;
}
public override async global::System.Threading.Tasks.Task<IEnumerable<global::Dummy.User>> HandleAsync(global::Dummy.GetUsersQuery.Query request, global::System.Threading.CancellationToken cancellationToken)
{
return await global::Dummy.GetUsersQuery.HandleAsync(
request,
_usersService,
cancellationToken).ConfigureAwait(false);
}
}
[global::System.Com
|
build
Process completed with exit code 1.
|