Ejemplo n.º 1
0
 public void BroadcastEvent <TModel>(ModelChangedEvent <TModel> @event)
 {
     foreach (IModelRouter modelEntry in _parent._modelsById.Values)
     {
         if (modelEntry.Id != @event.ModelId)
         {
             modelEntry.TryEnqueue(@event);
         }
     }
 }
Ejemplo n.º 2
0
            public void BroadcastModelChangedEvent()
            {
                var modelChangedEvent = new ModelChangedEvent <TModel>(Id, _model);

                _modelChangedEventPublisher.BroadcastEvent(modelChangedEvent);
            }