C# Class Atomia.Provisioning.Modules.Haproxy.Commands.HaproxyCommandBase

Inheritance: ModuleCommandSimpleBase
Datei anzeigen Open project: atomia/sample-plugins

Protected Properties

Property Type Description
jsonSerializer System.Web.Script.Serialization.JavaScriptSerializer

Public Methods

Method Description
HaproxyCommandBase ( ModuleService service, ResourceDescription resource, ModuleService newServiceSettings, ModuleCommandType commandType, int listDepth ) : System

Protected Methods

Method Description
ExecuteAdd ( ModuleService moduleService ) : void
ExecuteModify ( ModuleService oldService, Base service ) : void
ExecuteRemove ( ModuleService moduleService ) : void
GetPostData ( ModuleService service ) : string>.Dictionary
GetResourceURL ( ModuleService moduleService ) : string
REST_Execute_DELETE ( string uri ) : void
REST_Execute_GET ( string uri ) : string
REST_Execute_POST ( string uri, string>.Dictionary postdata ) : string>.Dictionary
REST_Execute_PUT ( string uri, string>.Dictionary postdata ) : void
ValidateService ( ModuleService moduleService ) : void

Private Methods

Method Description
REST_Execute_WithPostData ( string uri, string method, string>.Dictionary postdata ) : string>.Dictionary
REST_Execute_WithPostData_JSON ( string uri, string method, string>.Dictionary postdata ) : string
REST_GetClient ( string uri ) : WebRequest

Method Details

ExecuteAdd() protected method

protected ExecuteAdd ( ModuleService moduleService ) : void
moduleService ModuleService
return void

ExecuteModify() protected method

protected ExecuteModify ( ModuleService oldService, Base service ) : void
oldService ModuleService
service Base
return void

ExecuteRemove() protected method

protected ExecuteRemove ( ModuleService moduleService ) : void
moduleService ModuleService
return void

GetPostData() protected method

protected GetPostData ( ModuleService service ) : string>.Dictionary
service ModuleService
return string>.Dictionary

GetResourceURL() protected abstract method

protected abstract GetResourceURL ( ModuleService moduleService ) : string
moduleService ModuleService
return string

HaproxyCommandBase() public method

public HaproxyCommandBase ( ModuleService service, ResourceDescription resource, ModuleService newServiceSettings, ModuleCommandType commandType, int listDepth ) : System
service ModuleService
resource ResourceDescription
newServiceSettings ModuleService
commandType ModuleCommandType
listDepth int
return System

REST_Execute_DELETE() protected method

protected REST_Execute_DELETE ( string uri ) : void
uri string
return void

REST_Execute_GET() protected method

protected REST_Execute_GET ( string uri ) : string
uri string
return string

REST_Execute_POST() protected method

protected REST_Execute_POST ( string uri, string>.Dictionary postdata ) : string>.Dictionary
uri string
postdata string>.Dictionary
return string>.Dictionary

REST_Execute_PUT() protected method

protected REST_Execute_PUT ( string uri, string>.Dictionary postdata ) : void
uri string
postdata string>.Dictionary
return void

ValidateService() protected method

protected ValidateService ( ModuleService moduleService ) : void
moduleService ModuleService
return void

Property Details

jsonSerializer protected_oe property

Serializer used to serialize/deserialize JSON data from the REST server.
protected Script.Serialization.JavaScriptSerializer,System.Web jsonSerializer
return System.Web.Script.Serialization.JavaScriptSerializer