// Will perform the callback if we're online. The callback is done while
        // the state is locked thus preventing race conditions.
        // Returns 'true' if we called the delegate
        public bool IfOnline(RegionStateCheckCallback rscc)
        {
            bool ret = false;

            lock (m_regionStateLock) {
                if (isOnline)
                {
                    rscc();
                    ret = true;
                }
            }
            return(ret);
        }
 // Will perform the callback if we're online. The callback is done while
 // the state is locked thus preventing race conditions.
 // Returns 'true' if we called the delegate
 public bool IfOnline(RegionStateCheckCallback rscc)
 {
     bool ret = false;
     lock (m_regionStateLock) {
     if (isOnline) {
         rscc();
         ret = true;
     }
     }
     return ret;
 }