C# Class 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.
Inheritance: AbstractAjaxProxyGenerator
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

GenerateJSProxy() public méthode

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
Résultat String

PrototypeAjaxProxyGenerator() public méthode

Initializes a new instance of the PrototypeAjaxProxyGenerator class.
public PrototypeAjaxProxyGenerator ( ) : System
Résultat System

Service() public méthode

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