public void RecordNewSystemTarget(SystemTarget target) { systemTargets.TryAdd(target.ActivationId, target); if (!Constants.IsSingletonSystemTarget(target.GrainId)) { FindSystemTargetCounter(Constants.SystemTargetName(target.GrainId)).Increment(); } }
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(); } }
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); } }
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); } }