public IWebHookManager GetHookManager() { if (_webHookManager == null) { ILogger logger = new TraceLogger(); IWebHookStore store = CustomServices.GetStore(); IWebHookSender sender = new ApiWebHookSender(logger); _webHookManager = new WebHookManager(store, sender, logger); } return(_webHookManager); }
public IWebHookManager GetHookManager() { if (_webHookManager == null || _webHookStore.GetType() != typeof(SqlWebHookStore)) { ILogger logger = new TraceLogger(); _webHookStore = CustomServices.GetStore(); IWebHookSender sender = new ApiWebHookSender(logger); _webHookManager = new WebHookManager(_webHookStore, sender, logger); } return(_webHookManager); }