Show / Hide Table of Contents

Interface IHttpCommandSerializer

Namespace: AzureFromTheTrenches.Commanding.Http
Assembly: AzureFromTheTrenches.Commanding.Http.dll
Syntax
public interface IHttpCommandSerializer

Properties

| Improve this Doc View Source

MimeType

The media type to supply as a content type and response type on the Http request. For example application/json

Declaration
string MimeType { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Deserialize<T>(String)

Deserialize an object from a string

Declaration
T Deserialize<T>(string serializedRepresentation)
Parameters
Type Name Description
System.String serializedRepresentation

The serialized representation of the object

Returns
Type Description
T

Deserialized object

Type Parameters
Name Description
T

The type of the object

| Improve this Doc View Source

Serialize(Object)

Serialize the given object to a string

Declaration
string Serialize(object obj)
Parameters
Type Name Description
System.Object obj

The object to serialize

Returns
Type Description
System.String

A serialized represtentation of the object

  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall