Skip to content

Error de MGW000.DLL tras agregar movimientos a facturas. #65

Answered by AndresRamos
YunnuenGP asked this question in Q&A
Discussion options

You must be logged in to vote

Te comparto un ejemplo del código en el proyecto Sdk.Extras.ConsoleApp que utilizo para pruebas.

IHost host = Host.CreateDefaultBuilder()
    .ConfigureServices(services =>
    {
        services.AddContpaqiComercialSdkServices();
        services.AddEjemplos();
    })
    .ConfigureLogging(builder => { builder.ClearProviders(); })
    .UseSerilog((_, loggerConfiguration) =>
    {
        loggerConfiguration.MinimumLevel.Information()
            .MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
            .MinimumLevel.Override("Microsoft.Hosting.Lifetime", LogEventLevel.Information);
        loggerConfiguration.WriteTo.Console(LogEventLevel.Information);
    })
    .Build();

a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by YunnuenGP
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants