예제 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public ThreadPoolFastExecutionStrategy(ArbiterSlimActiveClientStub client, bool useCommonArbiterPool)
            : base(client)
        {
            _useCommonArbiterPool = useCommonArbiterPool;

            GeneralHelper.GenericDelegate <ThreadPoolFast, Envelope> delegateInstance = new GeneralHelper.GenericDelegate <ThreadPoolFast, Envelope>(PerformExecution);
            _singleFastInvokeDelegate = FastInvokeHelper.GetMethodInvoker(delegateInstance.Method, false);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 public ArbiterSlimExecutionStrategy(ArbiterSlimActiveClientStub client)
 {
     SystemMonitor.CheckThrow(client != null, "Client not assigned to execution strategy.");
     _client = client;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public FrameworkThreadPoolExecutionStrategy(ArbiterSlimActiveClientStub client)
     : base(client)
 {
     _waitCallback = new WaitCallback(WaitCallbackFunc);
 }