示例#1
0
        public void UnregisterSystemTarget(ISystemTarget target)
        {
            var systemTarget = target as SystemTarget;

            if (systemTarget == null)
            {
                throw new ArgumentException($"Parameter must be of type {typeof(SystemTarget)}", nameof(target));
            }
            activationDirectory.RemoveSystemTarget(systemTarget);
            scheduler.UnregisterWorkContext(systemTarget.SchedulingContext);
        }
示例#2
0
 internal void UnregisterSystemTarget(SystemTarget target)
 {
     activationDirectory.RemoveSystemTarget(target);
     scheduler.UnregisterWorkContext(target.SchedulingContext);
 }