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); }
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); }
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; }