public Task StartAsync(CancellationToken cancellationToken) { NotifyConfiguration.Configure(ServiceProvider); WebItemManager.LoadItems(); StudioNotifyServiceSender.RegisterSendMethod(); return(Task.CompletedTask); }
private void InitializeNotifySchedulers() { NotifyConfiguration.Configure(ServiceProvider); WebItemManager.LoadItems(); foreach (var pair in NotifyServiceCfg.Schedulers.Where(r => r.MethodInfo != null)) { Log.DebugFormat("Start scheduler {0} ({1})", pair.Name, pair.MethodInfo); pair.MethodInfo.Invoke(null, null); } }