Global Error Handling in Class Library Project

Espo 41 Reputation points
2020-10-07T17:21:09.537+00:00

I am pretty sure it is not possible, but is it possible to have something in a class library that is similar to Global.asax in ASP.Net?

Want to implement something like

protected void Application_Error(object sender, EventArgs e)

Thanks in advance,
Michael

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,031 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dylan Zhu-MSFT 6,416 Reputation points
    2020-10-08T08:05:39.043+00:00

    Hi EspositoMichael,

    Hope the Application class and AppDomain class could meet your requirement.

    And since Visual C# is not supported in Micrsoft Q&A forum, we suggest you could also post this question to C# forum, the community members will provide better support for you.

    Best Regards,
    Dylan


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.