예제 #1
0
 protected override IEnumerable <ALMConf <ALMModelState> > _StateConfiguration()
 {
     return(new ALMConf <ALMModelState>[]
     {
         ALMConf <ALMModelState> .New(ALMModelState.None, new ALMModelState[] { ALMModelState.Create }),
         ALMConf <ALMModelState> .New(ALMModelState.Create, new ALMModelState[] { ALMModelState.First }),
         ALMConf <ALMModelState> .New(ALMModelState.First, new ALMModelState[] { ALMModelState.Second }),
         ALMConf <ALMModelState> .New(ALMModelState.Second, new ALMModelState[] { ALMModelState.Third })
     });
 }
예제 #2
0
 /// <summary>
 ///     State configuration. Настройка конфигурации для измения состояни жизненного цикла.
 /// </summary>
 ///
 /// <remarks>   AM Kozhevnikov, 07.02.2018. </remarks>
 ///
 /// <returns>
 ///     An enumerator that allows foreach to be used to process state configuration in this
 ///     collection.
 /// </returns>
 protected override IEnumerable <ALMConf <SystemState> > _StateConfiguration()
 {
     return(new ALMConf <SystemState>[]
     {
         ALMConf <SystemState> .New(SystemState.Created, new[] { SystemState.Initialized }),
         ALMConf <SystemState> .New(SystemState.Initialized, new[] { SystemState.Configured }),
         ALMConf <SystemState> .New(SystemState.Configured, new[] { SystemState.Loaded }),
         ALMConf <SystemState> .New(SystemState.Loaded, new[] { SystemState.Launched, SystemState.Testing }),
         ALMConf <SystemState> .New(SystemState.Testing, new[] { SystemState.Launched }),
         ALMConf <SystemState> .New(SystemState.Launched, new[] { SystemState.Unload })
     });
 }