Prevent IIS from killing a Task before it ends

前端 未结 4 989
礼貌的吻别
礼貌的吻别 2020-12-31 15:28

I\'m building a Logging library that stores everything on an Azure table. Writing to that table obviously takes a lot of time (never more than 1 sec, but it\'s still too muc

4条回答
  •  一生所求
    2020-12-31 15:58

    Sorry for not adding this as a comment, I don't have enough rep.

    https://msdn.microsoft.com/en-us/library/system.web.hosting.iregisteredobject(v=vs.110).aspx

    Applications can have only one instance of a registered type.

    This seems to indicate that Gervasio Marchand's accepted answer is somewhat incorrect, as each call to his static helper method creates a new IISNotifier, which is an IRegisteredObject.

提交回复
热议问题