DotNetOpenAuth.OAuth2.ChannelElements.OAuth2AuthorizationServerChannel.PrepareDirectResponse C# (CSharp) Method

PrepareDirectResponse() protected method

Queues a message for sending in the response stream.
This method implements spec OAuth V1.0 section 5.3.
protected PrepareDirectResponse ( IProtocolMessage response ) : DotNetOpenAuth.Messaging.OutgoingWebResponse
response IProtocolMessage The message to send as a response.
return DotNetOpenAuth.Messaging.OutgoingWebResponse
		protected override OutgoingWebResponse PrepareDirectResponse(IProtocolMessage response) {
			var webResponse = new OutgoingWebResponse();
			ApplyMessageTemplate(response, webResponse);
			string json = this.SerializeAsJson(response);
			webResponse.SetResponse(json, new ContentType(JsonEncoded));
			return webResponse;
		}