C# 클래스 FluentRest.Fake.FileMessageStore

A file based fake message store. The fake response messages are saved and loaded from the StorePath directory.
상속: FluentRest.Fake.FakeMessageStore
파일 보기 프로젝트 열기: loresoft/FluentRest 1 사용 예제들

공개 메소드들

메소드 설명
GenerateHash ( string text ) : string

Generates a hash for the specified text.

LoadAsync ( HttpRequestMessage request ) : Task

Loads an HTTP fake response message for the specified HTTP request as an asynchronous operation.

SaveAsync ( HttpRequestMessage request, HttpResponseMessage response ) : Task

Saves the specified HTTP response to the message store as an asynchronous operation.

비공개 메소드들

메소드 설명
GetPaths ( HttpRequestMessage request, string &responsePath, string &contentPath ) : void
LoadContent ( string contentPath ) : HttpContent
LoadResponse ( HttpContent httpContent, string responsePath ) : Task
SaveContent ( HttpResponseMessage response, string contentPath ) : Task
SaveResponse ( HttpResponseMessage response, string responsePath ) : Task

메소드 상세

GenerateHash() 공개 정적인 메소드

Generates a hash for the specified text.
public static GenerateHash ( string text ) : string
text string The value to hash.
리턴 string

LoadAsync() 공개 메소드

Loads an HTTP fake response message for the specified HTTP request as an asynchronous operation.
public LoadAsync ( HttpRequestMessage request ) : Task
request System.Net.Http.HttpRequestMessage The HTTP request message to load response for.
리턴 Task

SaveAsync() 공개 메소드

Saves the specified HTTP response to the message store as an asynchronous operation.
public SaveAsync ( HttpRequestMessage request, HttpResponseMessage response ) : Task
request HttpRequestMessage The HTTP request message that was sent.
response HttpResponseMessage The HTTP response messsage to save.
리턴 Task