protected internal SelfBalancingOrgService(IRoutingService routingService) : base(null)
        {
            routingService.Require(nameof(routingService));
            RoutingService = routingService;

            RoutingService.Stats.OperationStatusChanged += (s, a) => InnerOperationStatusChanged?.Invoke(this, a);
            RoutingService.Stats.OperationFailed        += (s, a) => InnerOperationFailed?.Invoke(this, a);
        }
Ejemplo n.º 2
0
 protected internal void Propagate()
 {
     if (InnerOperationStatusChanged != null)
     {
         foreach (var invocation in InnerOperationStatusChanged.GetInvocationList()
                  .OfType <EventHandler <IOrganizationService, OperationStatusEventArgs> >().ToArray())
         {
             OperationStatusChanged += invocation;
         }
     }
 }