Skip to content

First Call from .Net core 2.1, subsequent request hangs #62

@Raghav-Gowda

Description

@Raghav-Gowda

Hello,

I am working on ASP.NET Core v2.1.
I am able to generate PDF for the first time, but subsequent request hangs.
Please note, I've declare SynchronizedConverter as singleton in Startup.cs

        services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);

        services.AddDbContext<OCDBContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));

        services.AddSingleton(typeof(IConverter), new SynchronizedConverter(new PdfTools()));

        services.AddMvc().AddSessionStateTempDataProvider();
        services.AddSession();

Please suggest how to solve this issue.

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