C# 클래스 CkanDotNet.Web.Controllers.DownloadProxyController

상속: Controller
파일 보기 프로젝트 열기: opencolorado/.NET-Wrapper-for-CKAN-API

공개 메소드들

메소드 설명
Index ( string path ) : System.Web.Mvc.ActionResult

Provides a reverse proxy to content that is provided via the catalog. Provided to allow capturing of analytics for downloads that originate from the master catalog website while also simplifying the setup by allowing download links to go through the catalog web application. GET: /content/{path}

비공개 메소드들

메소드 설명
MimeType ( string filename ) : string

Get the mime type of a file

StreamDownload ( string path ) : void

Stream the resource to the client

StreamFromFileResource ( System.Web.HttpContextWrapper context, Uri uri ) : long

Stream a file from a file resource.

StreamFromHttpResource ( System.Web.HttpContextWrapper context, Uri uri ) : long

Stream a file from an HTTP resource.

TrackDownloadEvent ( string path, System.Web.HttpContextWrapper context, long bytes ) : void

Track the download event

메소드 상세

Index() 공개 메소드

Provides a reverse proxy to content that is provided via the catalog. Provided to allow capturing of analytics for downloads that originate from the master catalog website while also simplifying the setup by allowing download links to go through the catalog web application. GET: /content/{path}
public Index ( string path ) : System.Web.Mvc.ActionResult
path string
리턴 System.Web.Mvc.ActionResult