Beispiel #1
0
        public static bool IamFirst(SingletonController.ReceiveDelegate r)
        {
            bool flag;

            if (!SingletonController.IamFirst())
            {
                flag = false;
            }
            else
            {
                SingletonController.Receiver = (SingletonController.ReceiveDelegate)Delegate.Combine(SingletonController.Receiver, r);
                flag = true;
            }
            return(flag);
        }
Beispiel #2
0
 static SingletonController()
 {
     SingletonController.m_TCPChannel = null;
     SingletonController.m_Mutex      = null;
     SingletonController.m_Receive    = null;
 }