示例#1
0
        private void Leave()
        {
            if (_agentProfile == null)
            {
                throw new ArgumentException("AgentProfile cannot be null.");
            }

            if (string.IsNullOrEmpty(this.Agent))
            {
                throw new ArgumentException("AgentProfile.Agent cannot be null.");
            }

            IntelServiceProxy.Leave(this.Agent);
        }
示例#2
0
        public void SendIntel(IntelData intelData)
        {
            if (intelData == null)
            {
                throw new ArgumentException("IntelData cannot be null.");
            }

            if (intelData.Image == null)
            {
                throw new ArgumentException("IntelData.Image cannot be null.");
            }

            intelData.Agent = this.Agent;
            IntelServiceProxy.SendIntel(intelData);
        }
示例#3
0
        private void Enter()
        {
            if (_agentProfile == null)
            {
                throw new ArgumentException("AgentProfile cannot be null.");
            }

            if (string.IsNullOrEmpty(this.Agent))
            {
                throw new ArgumentException("Agent cannot be null.");
            }

            IntelServiceProxy.Enter(_agentProfile);

            this.IsConnected = true;
        }