C# Class Nancy.Serialization.ProtoBuf.ProtoBufProcessor

An IResponseProcessor implementation for ProtoBuffer.
Inheritance: IResponseProcessor
Afficher le fichier Open project: NancyFx/Nancy.Serialization.ProtBuf

Méthodes publiques

Méthode 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

Méthode Description
IsWildcardProtobufContentType ( Nancy.Responses.Negotiation.MediaRange requestedContentType ) : bool

Method Details

CanProcess() public méthode

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.
Résultat Nancy.Responses.Negotiation.ProcessorMatch

Process() public méthode

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.
Résultat Response