示例#1
0
 void Receive(UnInitializeComponentMessage message)
 {
     if (message.ComponentId != null)
     {
         PlatformComponent component = GetComponentByIdentification(message.ComponentId.Value, false);
         if (component != null)
         {
             UnInitializeComponent(component);
         }
         else
         {
             SystemMonitor.OperationError("Component not initialized.");
         }
     }
 }
 void Receive(UnInitializeComponentMessage message)
 {
     if (message.ComponentId != null)
     {
         PlatformComponent component = GetComponentByIdentification(message.ComponentId.Value, false);
         if (component != null)
         {
             UnInitializeComponent(component);
         }
         else
         {
             SystemMonitor.OperationError("Component not initialized.");
         }
     }
 }