Skip to content

Upgrade from 4.2.2 to 5.0.1  #235

@giakara

Description

@giakara

services.AddScoped()
.AddScoped<IEntityService>(x => x.GetRequiredService())
.Decorate<IEntityService, PaymentInitiationServiceWithCache>()
.AddScoped(x => x.GetRequiredService())
.Decorate<IPaymentInitiationService, PaymentInitiationServiceWithCache>()
.AddScoped(x => x.GetRequiredService());
i Upgrade to 5.0.1 and now i get
System.InvalidOperationException: 'A suitable constructor for type 'TenantConsentsServiceWithCache' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.'
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions