예제 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public ActiveClient(ClientId id)
        {
            _id = id;

            _executionStrategy = null;
            _messageBus = null;
        }
예제 #2
0
        public override void Dispose()
        {
            _executionStrategy = null;
            _messageBus = null;

            base.Dispose();
        }
예제 #3
0
        /// <summary>
        /// Setup execution strategy for the 
        /// execution of class on this client.
        /// </summary>
        public override bool SetupExecutionStrategy(ExecutionStrategy executionStrategy)
        {
            lock (this)
            {
                if (_executionStrategy != null)
                {
                    _executionStrategy.Dispose();
                    _executionStrategy = null;
                }

                _executionStrategy = executionStrategy;
            }

            if (executionStrategy != null)
            {
                return executionStrategy.Initialize(this);
            }

            return false;
        }
예제 #4
0
 public abstract bool SetupExecutionStrategy(ExecutionStrategy executionStrategy);