C# 클래스 Nancy.Serialization.ProtoBuf.BodyDeserializers.ProtobufNetBodyDeserializer

Deserializes request bodies in ProtoBuffer format
상속: IBodyDeserializer
파일 보기 프로젝트 열기: NancyFx/Nancy.Serialization.ProtBuf 1 사용 예제들

공개 메소드들

메소드 설명
CanDeserialize ( MediaRange mediaRange, BindingContext context ) : bool

Whether the deserializer can deserialize the content type

Deserialize ( MediaRange mediaRange, Stream bodyStream, BindingContext context ) : object

Deserialize the request body to a model

비공개 메소드들

메소드 설명
IsProtoBufType ( MediaRange mediaRange ) : bool

Attempts to detect if the content type is ProtoBuffer. Supports: application/x-protobuf Matches are case insentitive to try and be as "accepting" as possible.

메소드 상세

CanDeserialize() 공개 메소드

Whether the deserializer can deserialize the content type
public CanDeserialize ( MediaRange mediaRange, BindingContext context ) : bool
mediaRange MediaRange Content type to deserialize
context BindingContext Current .
리턴 bool

Deserialize() 공개 메소드

Deserialize the request body to a model
public Deserialize ( MediaRange mediaRange, Stream bodyStream, BindingContext context ) : object
mediaRange MediaRange Content type to deserialize
bodyStream Stream Request body stream
context BindingContext Current context
리턴 object