Exemplo n.º 1
0
        private void OnCommandNotification(KeyValuePair <string, object> notification)
        {
            switch (notification.Key)
            {
            case "Created":
                Counters = Counters.IncrementCreatedCommands();
                break;

            case "Disposed":
                Counters = Counters.IncrementDisposedCommands();
                break;

            case "Destroyed":
                Counters = Counters.IncrementDestroyedCommands();
                break;
            }

            CountersChanged?.Invoke(this, EventArgs.Empty);
        }
 private void OnCountersChanged()
 {
     CountersChanged?.Invoke(this, new EventArgs());
 }