コード例 #1
0
 public static STMMessageFilter GetInstance()
 {
     if (_STMMessageFilter == null)
     {
         _STMMessageFilter = new STMMessageFilter();
         Relauncher.GetInstance().RegisterForUpdate(_STMMessageFilter);
     }
     return(_STMMessageFilter);
 }
コード例 #2
0
        public static EventTransmitter GetInstance()
        {
            lock (_Lock)
            {
                if (_EventTransmitter == null)
                {
                    _EventTransmitter = new EventTransmitter();
                    Relauncher.GetInstance().RegisterForUpdate(_EventTransmitter);
                }
            }

            return(_EventTransmitter);
        }