protected PrepareDirectResponse ( IProtocolMessage response ) : DotNetOpenAuth.Messaging.OutgoingWebResponse | ||
response | IProtocolMessage | The message to send as a response. |
리턴 | 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;
}