C# Class Atomia.Provisioning.Modules.Folders.Folders

Inheritance: ModuleBase
Datei anzeigen Open project: atomia/sample-plugins Class Usage Examples

Public Methods

Method Description
BeginTransaction ( ) : void

Begins the transaction.

CallOperation ( ModuleService service, string operationName, string operationArgument, Atomia resource ) : string

Calls the operation.

CommitTransaction ( ) : void

Commits the transaction.

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources

Folders ( ) : System

Initializes a new instance of the Template class.

GetModuleServiceDescription ( ) : string

Gets the module service description.

HandleAndProvide ( string args ) : void

Method which handle input arguments and call appropriate actions

ListServices ( ModuleService service, int maxDepth, Atomia resource ) : ModuleService

Lists the services.

ListServicesNoChildren ( string serviceName, Atomia resource ) : List

Lists the services no children.

ModifyService ( ModuleService service, Atomia resource, ModuleService newServiceSettings ) : void

Modifies the service.

MoveToResource ( ModuleService service, Atomia currentResource, Atomia targetResource ) : void

Moves to resource.

ProvideService ( ModuleService service, Atomia resource ) : void

Provides the service.

RemoveService ( ModuleService service, Atomia resource ) : void

Removes the service.

RollbackTransaction ( ) : void

Rollbacks the transaction.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

GetModuleCommand ( ResourceDescription resource, ModuleCommandType commandType, int listDepth ) : ModuleCommand

Gets the module command.

GetServiceDescriptionAssemblyPath ( ) : string

returns service description filename

PrepareAndExecuteCommandsFromList ( ) : void

Prepares each commands from commands list and execute each commands from the same list. If error occurs during executing one command, Rollback is called.

PrepareCommandList ( ModuleService service, ModuleService newServiceSettings, ResourceDescription resource, ModuleCommandType commandType ) : void

Prepares the command list.

Method Details

BeginTransaction() public method

Begins the transaction.
public BeginTransaction ( ) : void
return void

CallOperation() public method

Calls the operation.
public CallOperation ( ModuleService service, string operationName, string operationArgument, Atomia resource ) : string
service ModuleService The service.
operationName string Name of the operation.
operationArgument string The operation argument.
resource Atomia The resource.
return string

CommitTransaction() public method

Commits the transaction.
public CommitTransaction ( ) : void
return void

Dispose() public method

Releases unmanaged and - optionally - managed resources
public Dispose ( ) : void
return void

Folders() public method

Initializes a new instance of the Template class.
public Folders ( ) : System
return System

GetModuleServiceDescription() public method

Gets the module service description.
public GetModuleServiceDescription ( ) : string
return string

HandleAndProvide() public method

Method which handle input arguments and call appropriate actions
public HandleAndProvide ( string args ) : void
args string
return void

ListServices() public method

Lists the services.
public ListServices ( ModuleService service, int maxDepth, Atomia resource ) : ModuleService
service ModuleService The service.
maxDepth int The max depth.
resource Atomia The resource.
return ModuleService

ListServicesNoChildren() public method

Lists the services no children.
public ListServicesNoChildren ( string serviceName, Atomia resource ) : List
serviceName string Name of the service.
resource Atomia The resource.
return List

ModifyService() public method

Modifies the service.
public ModifyService ( ModuleService service, Atomia resource, ModuleService newServiceSettings ) : void
service ModuleService The service.
resource Atomia The resource.
newServiceSettings ModuleService The new service settings.
return void

MoveToResource() public method

Moves to resource.
public MoveToResource ( ModuleService service, Atomia currentResource, Atomia targetResource ) : void
service ModuleService The service.
currentResource Atomia The current resource.
targetResource Atomia The target resource.
return void

ProvideService() public method

Provides the service.
public ProvideService ( ModuleService service, Atomia resource ) : void
service ModuleService The service.
resource Atomia The resource.
return void

RemoveService() public method

Removes the service.
public RemoveService ( ModuleService service, Atomia resource ) : void
service ModuleService The service.
resource Atomia The resource.
return void

RollbackTransaction() public method

Rollbacks the transaction.
public RollbackTransaction ( ) : void
return void