Refactored a few for HttpListenerRequest.cs
This commit is contained in:
parent
1998a535a4
commit
4bc2c4d4f0
@ -635,27 +635,27 @@ namespace WebSocketSharp.Net
|
|||||||
/// Begins getting the client's X.509 v.3 certificate asynchronously.
|
/// Begins getting the client's X.509 v.3 certificate asynchronously.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This asynchronous operation must be completed by calling the
|
/// This asynchronous operation must be completed by calling
|
||||||
/// <see cref="EndGetClientCertificate"/> method. Typically, that method is invoked by the
|
/// the <see cref="EndGetClientCertificate"/> method. Typically,
|
||||||
/// <paramref name="requestCallback"/> delegate.
|
/// that method is invoked by the <paramref name="requestCallback"/> delegate.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// An <see cref="IAsyncResult"/> that contains the status of the asynchronous operation.
|
/// An <see cref="IAsyncResult"/> that contains the status of the asynchronous operation.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
/// <param name="requestCallback">
|
/// <param name="requestCallback">
|
||||||
/// An <see cref="AsyncCallback"/> delegate that references the method(s) called when the
|
/// An <see cref="AsyncCallback"/> delegate that references the method(s) called when
|
||||||
/// asynchronous operation completes.
|
/// the asynchronous operation completes.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="state">
|
/// <param name="state">
|
||||||
/// An <see cref="object"/> that contains a user defined object to pass to the
|
/// An <see cref="object"/> that contains a user defined object to pass to
|
||||||
/// <paramref name="requestCallback"/> delegate.
|
/// the <paramref name="requestCallback"/> delegate.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <exception cref="NotImplementedException">
|
/// <exception cref="NotImplementedException">
|
||||||
/// This method isn't implemented.
|
/// This method isn't implemented.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
public IAsyncResult BeginGetClientCertificate (AsyncCallback requestCallback, object state)
|
public IAsyncResult BeginGetClientCertificate (AsyncCallback requestCallback, object state)
|
||||||
{
|
{
|
||||||
// TODO: Not Implemented.
|
// TODO: Not implemented.
|
||||||
throw new NotImplementedException ();
|
throw new NotImplementedException ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -663,22 +663,22 @@ namespace WebSocketSharp.Net
|
|||||||
/// Ends an asynchronous operation to get the client's X.509 v.3 certificate.
|
/// Ends an asynchronous operation to get the client's X.509 v.3 certificate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This method completes an asynchronous operation started by calling the
|
/// This method completes an asynchronous operation started by calling
|
||||||
/// <see cref="BeginGetClientCertificate"/> method.
|
/// the <see cref="BeginGetClientCertificate"/> method.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// A <see cref="X509Certificate2"/> that contains the client's X.509 v.3 certificate.
|
/// A <see cref="X509Certificate2"/> that contains the client's X.509 v.3 certificate.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
/// <param name="asyncResult">
|
/// <param name="asyncResult">
|
||||||
/// An <see cref="IAsyncResult"/> obtained by calling the
|
/// An <see cref="IAsyncResult"/> obtained by calling
|
||||||
/// <see cref="BeginGetClientCertificate"/> method.
|
/// the <see cref="BeginGetClientCertificate"/> method.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <exception cref="NotImplementedException">
|
/// <exception cref="NotImplementedException">
|
||||||
/// This method isn't implemented.
|
/// This method isn't implemented.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
public X509Certificate2 EndGetClientCertificate (IAsyncResult asyncResult)
|
public X509Certificate2 EndGetClientCertificate (IAsyncResult asyncResult)
|
||||||
{
|
{
|
||||||
// TODO: Not Implemented.
|
// TODO: Not implemented.
|
||||||
throw new NotImplementedException ();
|
throw new NotImplementedException ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -693,24 +693,24 @@ namespace WebSocketSharp.Net
|
|||||||
/// </exception>
|
/// </exception>
|
||||||
public X509Certificate2 GetClientCertificate ()
|
public X509Certificate2 GetClientCertificate ()
|
||||||
{
|
{
|
||||||
// TODO: Not Implemented.
|
// TODO: Not implemented.
|
||||||
throw new NotImplementedException ();
|
throw new NotImplementedException ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a <see cref="string"/> that represents the current
|
/// Returns a <see cref="string"/> that represents
|
||||||
/// <see cref="HttpListenerRequest"/>.
|
/// the current <see cref="HttpListenerRequest"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// A <see cref="string"/> that represents the current <see cref="HttpListenerRequest"/>.
|
/// A <see cref="string"/> that represents the current <see cref="HttpListenerRequest"/>.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public override string ToString ()
|
public override string ToString ()
|
||||||
{
|
{
|
||||||
var output = new StringBuilder (64);
|
var buff = new StringBuilder (64);
|
||||||
output.AppendFormat ("{0} {1} HTTP/{2}\r\n", _method, _uri, _version);
|
buff.AppendFormat ("{0} {1} HTTP/{2}\r\n", _method, _uri, _version);
|
||||||
output.Append (_headers.ToString ());
|
buff.Append (_headers.ToString ());
|
||||||
|
|
||||||
return output.ToString ();
|
return buff.ToString ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user