C# 클래스 GSF.Web.Model.Handlers.CsvDownloadHandler

Handles downloading of modeled table data as a comma-separated value file.
상속: IHttpHandler, IHostedHttpHandler
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 프로퍼티들

프로퍼티 타입 설명
LogExceptionHandler Action

공개 메소드들

메소드 설명
GetContentHash ( HttpRequestMessage request ) : long

Gets hash of response content based on any request parameters.

Value is only used when IHostedHttpHandler.UseClientCache is true.

ProcessRequest ( HttpContext context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

ProcessRequestAsync ( HttpRequestMessage request, HttpResponseMessage response, CancellationToken cancellationToken ) : Task

Enables processing of HTTP web requests by a custom handler that implements the IHostedHttpHandler interface.

비공개 메소드들

메소드 설명
CopyModelAsCsvToStream ( NameValueCollection requestParameters, Stream responseStream, System.Action flushResponse, CompatibleCancellationToken cancellationToken ) : void
GetModelFileName ( string modelName ) : string

메소드 상세

GetContentHash() 공개 메소드

Gets hash of response content based on any request parameters.
Value is only used when IHostedHttpHandler.UseClientCache is true.
public GetContentHash ( HttpRequestMessage request ) : long
request System.Net.Http.HttpRequestMessage HTTP request message.
리턴 long

ProcessRequest() 공개 메소드

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
리턴 void

ProcessRequestAsync() 공개 메소드

Enables processing of HTTP web requests by a custom handler that implements the IHostedHttpHandler interface.
public ProcessRequestAsync ( HttpRequestMessage request, HttpResponseMessage response, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage HTTP request message.
response System.Net.Http.HttpResponseMessage HTTP response message.
cancellationToken System.Threading.CancellationToken Propagates notification from client that operations should be canceled.
리턴 Task

프로퍼티 상세

LogExceptionHandler 공개적으로 정적으로 프로퍼티

Defines any exception handler for any thrown exceptions.
public static Action LogExceptionHandler
리턴 Action