private void EntityChangeObserver_Changed(object sender, EntityChangeEventArgs e)
        {
            if (e.Entity.GetType() != typeof(ConfigEntity))
            {
                return;
            }

            Thread.Sleep(_source.ReloadDelay);
            Load();
        }
Ejemplo n.º 2
0
 public void OnChanged(EntityChangeEventArgs e)
 {
     ThreadPool.QueueUserWorkItem((_) => Changed?.Invoke(this, e));
 }