Beispiel #1
0
 public void RecordNewSystemTarget(SystemTarget target)
 {
     systemTargets.TryAdd(target.ActivationId, target);
     if (!Constants.IsSingletonSystemTarget(target.GrainId))
     {
         FindSystemTargetCounter(Constants.SystemTargetName(target.GrainId)).Increment();
     }
 }
Beispiel #2
0
        public void RecordNewSystemTarget(SystemTarget target)
        {
            var systemTarget = (ISystemTargetBase)target;

            systemTargets.TryAdd(target.ActivationId, target);
            if (!Constants.IsSingletonSystemTarget(systemTarget.GrainId.Type))
            {
                FindSystemTargetCounter(Constants.SystemTargetName(systemTarget.GrainId.Type)).Increment();
            }
        }
Beispiel #3
0
        public void RemoveSystemTarget(SystemTarget target)
        {
            SystemTarget ignore;

            systemTargets.TryRemove(target.ActivationId, out ignore);
            if (!Constants.IsSingletonSystemTarget(target.GrainId))
            {
                FindSystemTargetCounter(Constants.SystemTargetName(target.GrainId)).DecrementBy(1);
            }
        }
Beispiel #4
0
        public void RemoveSystemTarget(SystemTarget target)
        {
            var systemTarget = (ISystemTargetBase)target;

            systemTargets.TryRemove(target.ActivationId, out _);
            if (!Constants.IsSingletonSystemTarget(systemTarget.GrainId.Type))
            {
                FindSystemTargetCounter(Constants.SystemTargetName(systemTarget.GrainId.Type)).DecrementBy(1);
            }
        }