C# 클래스 Castle.MonoRail.Framework.Services.AjaxProxyGenerator.PrototypeAjaxProxyGenerator

Provides a service which generates a JavaScript block, that can be used to call Ajax actions on the controller. This JavaScript will use the Prototype syntax.
상속: AbstractAjaxProxyGenerator
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
GenerateJSProxy ( IRailsEngineContext context, string proxyName, string area, string controller ) : String

Generates an AJAX JavaScript proxy for a given controller.

PrototypeAjaxProxyGenerator ( ) : System

Initializes a new instance of the PrototypeAjaxProxyGenerator class.

Service ( IServiceProvider provider ) : void

Invoked by the framework in order to give a chance to obtain other services

비공개 메소드들

메소드 설명
GetParameterName ( ParameterInfo paramInfo ) : string

Gets the name of the parameter.

GetPropertyValue ( object obj, string propName ) : object

Gets the property value.

GetSingleAttribute ( ICustomAttributeProvider obj, Type attributeType, bool inherit ) : object

Gets the single attribute.

ToCamelCase ( string value ) : string

Toes the camel case.

메소드 상세

GenerateJSProxy() 공개 메소드

Generates an AJAX JavaScript proxy for a given controller.
public GenerateJSProxy ( IRailsEngineContext context, string proxyName, string area, string controller ) : String
context IRailsEngineContext The context of the current request
proxyName string Name of the javascript proxy object
area string area which the controller belongs to
controller string Controller which will be target of the proxy
리턴 String

PrototypeAjaxProxyGenerator() 공개 메소드

Initializes a new instance of the PrototypeAjaxProxyGenerator class.
public PrototypeAjaxProxyGenerator ( ) : System
리턴 System

Service() 공개 메소드

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
리턴 void