C# Class Nancy.Serialization.ProtoBuf.ProtoBufProcessor

An IResponseProcessor implementation for ProtoBuffer.
Inheritance: IResponseProcessor
Show file Open project: NancyFx/Nancy.Serialization.ProtBuf

Public Methods

Method Description
CanProcess ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, NancyContext context ) : Nancy.Responses.Negotiation.ProcessorMatch

Determines whether the the processor can handle a given content type and model.

Process ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, NancyContext context ) : Response

Process the response.

Private Methods

Method Description
IsWildcardProtobufContentType ( Nancy.Responses.Negotiation.MediaRange requestedContentType ) : bool

Method Details

CanProcess() public method

Determines whether the the processor can handle a given content type and model.
public CanProcess ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, NancyContext context ) : Nancy.Responses.Negotiation.ProcessorMatch
requestedMediaRange Nancy.Responses.Negotiation.MediaRange Content type requested by the client.
model dynamic The model for the given media range.
context NancyContext The nancy context.
return Nancy.Responses.Negotiation.ProcessorMatch

Process() public method

Process the response.
public Process ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, NancyContext context ) : Response
requestedMediaRange Nancy.Responses.Negotiation.MediaRange Content type requested by the client.
model dynamic The model for the given media range.
context NancyContext The nancy context.
return Response