locked
Delegates in MVC Web API RRS feed

  • Question

  • User-407670683 posted

    Hi Support/friends,

    I have a code which is running fine in windows platform. Now I want to move the same code to WebAPI. This code has some delegates handleing. I want to know that can I handle delegates in webapi and if yes then please let me know how can I handle it.

    Monday, October 14, 2019 7:17 AM

All replies

  • User753101303 posted

    Hi,

    This is just a C# construct. The main difference is that the web is stateless ie you start from zero with each new http request. Do you define something once and that you keep then for later calls ?

    Monday, October 14, 2019 8:03 AM
  • User1120430333 posted

    Hi Support/friends,

    I have a code which is running fine in windows platform. Now I want to move the same code to WebAPI. This code has some delegates handleing. I want to know that can I handle delegates in webapi and if yes then please let me know how can I handle it.

    IMO, you need to toss the delegate stuff out the window and start over. Web solutions are stateless which is unlike a Windows desktop solution.

    Monday, October 14, 2019 10:43 AM