URI url = Client.network.getCurrentSim().Caps.CapabilityURI("ChatSessionRequest");
if (url != null)
{
ChatSessionRequestMuteUpdate req = new ChatSessionRequestMuteUpdate();
req.RequestKey = key;
req.RequestValue = moderate;
req.SessionID = sessionID;
req.AgentID = memberID;
CapsHttpClient request = new CapsHttpClient(url);
request.BeginGetResponse(req.Serialize(), OSDFormat.Xml, Client.settings.CAPS_TIMEOUT);
}
else
{
throw new Exception("ChatSessionRequest capability is not currently available");
}