Using Events Delegates in multi tenant web application

前端 未结 2 954
时光取名叫无心
时光取名叫无心 2021-01-21 19:36

I\'m developing a multi tenant n-tier web application using asp.net Mvc 5.

In my service layer I am defining custom events for every important action and raising these e

2条回答
  •  青春惊慌失措
    2021-01-21 20:23

    I have implemented Udi Dahan's implementation as pointed out by @Imran but with a few changes.

    My Events are being raised in a Service Layer and for that using a Static Class dint seem right. Also have added support for async/await.

    Also going down the Events & Delegates path did work out but it just felt like an overhead to register the events per request.

    I have blogged my solution here http://www.teknorix.com/event-driven-programming-in-asp-net

提交回复
热议问题