Intercept the http Requests before clr execution without changing the source code

Pavan 21 Reputation points
2021-09-23T11:33:38.487+00:00

Hi all,

 Intercept the Http Requests before CLR Execution in c# without changing/touch the source code
  In java this feature is implemented like java agent using premain() method to implemeted java agent and we will inject or modify the code at runtime without changing the source code
  But .Net it is possible or not? Can u help me on this implementation and guide me how to solve this one????
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
328 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,627 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,140 questions
{count} votes

Accepted answer
  1. Xingyu Zhao-MSFT 5,361 Reputation points
    2021-09-24T02:34:40.97+00:00

    Hi @Pavan ,

    You can consider AOP solution in .NET.

    Here's a reference you can refer to.
    What is the best implementation for AOP in .Net?

    Hope it could be helpful.
    Best Regards,
    Xingyu Zhao
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful