public void Respond(HttpWebServerResponseData response) { try { if (Stream != null) { byte[] bData = Encoding.UTF8.GetBytes(response.ToString()); Stream.Write(bData, 0, bData.Length); if (ResponseSent != null) { FrostbiteConnection.RaiseEvent(ResponseSent.GetInvocationList(), this, response); } Shutdown(); } } catch (Exception e) { } }
public void Respond(HttpWebServerResponseData response) { try { if (Stream != null) { byte[] bData = Encoding.UTF8.GetBytes(response.ToString()); Stream.Write(bData, 0, bData.Length); if (ResponseSent != null) { this.ResponseSent(this, response); } Shutdown(); } } catch (Exception e) { } }