C# 클래스 APIWrapper, 3D-Repository

Overrides some of the functionality of the API_BASE to make compatible with serving from the web project Speciffically, skips HTTP Basic auth, and assumes that the website has delt with authorization. Takes a username in the constructor, in order to check permissions for later operations
상속: vwar.service.host._3DRAPI_Imp
파일 보기 프로젝트 열기: adlnet/3D-Repository 1 사용 예제들

공개 메소드들

메소드 설명
APIWrapper ( string inusername, HttpContext incontext ) : System

constructor

DoValidate ( Security type, vwarDAL co ) : bool

Overrides API base class validate, uses website user rather than HTTP Basic

GetUsername ( ) : string
SetResponseHeaders ( string type, int length, string disposition ) : void

Writes the headers for this transaction. Overrides base, using current context rather than WebOperationContext NOTE: For some reason this fails under the build in dev server, but runs correctly under IIS. Requires App pool to be in integrated mode

메소드 상세

APIWrapper() 공개 메소드

constructor
public APIWrapper ( string inusername, HttpContext incontext ) : System
inusername string The username of the currently authenticated user
incontext HttpContext The HTTP Context for this operation, used to write headers
리턴 System

DoValidate() 공개 메소드

Overrides API base class validate, uses website user rather than HTTP Basic
public DoValidate ( Security type, vwarDAL co ) : bool
type Security The transaction type to validate
co vwarDAL the content object to validate the operation on
리턴 bool

GetUsername() 공개 메소드

public GetUsername ( ) : string
리턴 string

SetResponseHeaders() 공개 메소드

Writes the headers for this transaction. Overrides base, using current context rather than WebOperationContext NOTE: For some reason this fails under the build in dev server, but runs correctly under IIS. Requires App pool to be in integrated mode
public SetResponseHeaders ( string type, int length, string disposition ) : void
type string Content Type
length int Content Lenght
disposition string Content Disposition
리턴 void