private void EntityChangeObserver_Changed(object sender, EntityChangeEventArgs e) { if (e.Entity.GetType() != typeof(ConfigEntity)) { return; } Thread.Sleep(_source.ReloadDelay); Load(); }
public void OnChanged(EntityChangeEventArgs e) { ThreadPool.QueueUserWorkItem((_) => Changed?.Invoke(this, e)); }