示例#1
0
        public void SendMessageToSever(string msg, string stackTrace)
        {
            MessageEntry entry    = new MessageEntry(msg, stackTrace);
            int          hashCode = entry.GetHashCode();

            if (!this._sentMessageHashes.Contains(hashCode))
            {
                this._sentMessageHashes.Add(hashCode);
                if ((this._mainThreadID == Thread.CurrentThread.ManagedThreadId) && (Singleton <ApplicationManager> .Instance.applicationBehaviour != null))
                {
                    Singleton <ApplicationManager> .Instance.applicationBehaviour.StartCoroutine(this.SendMessageToSeverCoroutine(entry));
                }
                else
                {
                    this._sendToServerMessages.Add(entry);
                }
            }
        }
示例#2
0
        public bool IsSentMessage(string msg, string stackTrace)
        {
            MessageEntry entry = new MessageEntry(msg, stackTrace);

            return(this._sentMessageHashes.Contains(entry.GetHashCode()));
        }