コード例 #1
0
 protected override void InternalStartup()
 {
     lock (this)
     {
         State = EAdapterState.Initializing;
         try
         {
             stateData.FileName   = ApiUtil.GetAssemblyPath(System.Reflection.Assembly.GetExecutingAssembly()) + ".xml";
             stateData.ModuleName = "StateDevice";
             InitMyDevices();
             State = EAdapterState.Initialized;
         }
         catch (Exception ex)
         {
             ApiUtil.LogException(ex, "{0} Initialization Error!", PluginName);
             State = EAdapterState.NotInitialized;
         }
     }
 }