GooglePlayInstant/Editor/QuickDeploy/OAuth2Server.cs
/// <summary>
/// Processes the object as an HttpListenerContext instance and retrieves authorization response. Invokes the
/// response handler action on the response, responds to request with a string asking the user to close tab,
/// and stops the server from listening for future incoming requests.
/// </summary>
Processes the object as an HttpListenerContext instance and retrieves authorization response. Invokes the
response handler action on the response, responds to request with a string asking the user to close tab,
and stops the server from listening for future incoming requests.
Processes the object as an HttpListenerContext instance and retrieves authorization response . Invokes the response handler action on the response responds to request with a string asking the user to close tab and stops the server from listening for future incoming requests .
private void ProcessContext(HttpListenerContext context)
        {
            var authorizationResponse = GetAuthorizationResponse(context.Request.Url);
            _onResponseAction(authorizationResponse);
            context.Response.KeepAlive = false;
            var responsebBytes = Encoding.UTF8.GetBytes(CloseTabText);
            var outputStream = context.Response.OutputStream;
            outputStream.Write(responsebBytes, 0, responsebBytes.Length);
            outputStream.Flush();
            outputStream.Close();
            context.Response.Close();
            Stop();
        }
private void ProcessContext ( HttpListenerContext context ) { var authorizationResponse = GetAuthorizationResponse ( context . Request . Url ) ; _onResponseAction ( authorizationResponse ) ; context . Response . KeepAlive = false ; var responsebBytes = Encoding . UTF8 . GetBytes ( CloseTabText ) ; var outputStream = context . Response . OutputStream ; outputStream . Write ( responsebBytes , 0 , responsebBytes . Length ) ; outputStream . Flush ( ) ; outputStream . Close ( ) ; context . Response . Close ( ) ; Stop ( ) ; }
Processes the object as an HttpListenerContext instance and retrieves authorization response.
Processes the object as an HttpListenerContext instance and retrieves authorization response .
context
HttpListenerContext