예제 #1
0
파일: LQHsm.cs 프로젝트: klhurley/qf4net
        public void RegisterWithExecutionContext(IQHsmExecutionContext executionContext)
        {
            if (_ExecutionContext != null)
            {
                throw new InvalidOperationException("ExecutionContext must only be assigned once against an Hsm. Multiple ExecutionContext against one Hsm is not currently supported.");
            }
            _ExecutionContext = executionContext;
            RegisterWithLifeCycleManager(executionContext.LifeCycleManager);

            // only makes sense to call this if using an ExecutionContext - since it provides a GetService () method.
            LocateServicesUsingExecutionContext();
        }
예제 #2
0
 public SampleWatch(string id, string groupId, IQHsmExecutionContext executionContext)
     : base(id, groupId, executionContext)
 {
     CreateStateFields();
 }
예제 #3
0
 public Valve(string id, string groupId, IQHsmExecutionContext executionContext)
     : base(id, groupId, executionContext)
 {
     CreateStateFields();
 }
예제 #4
0
 public Flint(string id, IQHsmExecutionContext executionContext)
     : base(id, executionContext)
 {
     CreateStateFields();
 }
예제 #5
0
파일: LQHsm.cs 프로젝트: klhurley/qf4net
 public LQHsm(string id, IQHsmExecutionContext executionContext)
 {
     _UniqueName = id;
     RegisterWithExecutionContext(executionContext);
 }
예제 #6
0
        public void RegisterWithExecutionContext(IQHsmExecutionContext executionContext)
        {
            if (_ExecutionContext != null)
            {
                throw new InvalidOperationException ("ExecutionContext must only be assigned once against an Hsm. Multiple ExecutionContext against one Hsm is not currently supported.");
            }
            _ExecutionContext = executionContext;
            RegisterWithLifeCycleManager (executionContext.LifeCycleManager);

            // only makes sense to call this if using an ExecutionContext - since it provides a GetService () method.
            LocateServicesUsingExecutionContext ();
        }
예제 #7
0
 public LQHsm(string id, string groupId, IQHsmExecutionContext executionContext)
 {
     _UniqueName = id;
     _GroupId = groupId;
     RegisterWithExecutionContext (executionContext);
 }
예제 #8
0
 public FuelMixture(string id, IQHsmExecutionContext executionContext)
     : base(id, executionContext)
 {
     CreateStateFields();
 }