C# Class OpenSlx.Lib.Utility.SlxAppSetup

Helper object to set up the Slx Application support object. Can be used as test harness or to host desktop applications. The basic principle - you point it to the path of a deployed site (or portal) and it copies the config from there into the current folder.
Inheritance: IDisposable
Mostrar archivo Open project: nicocrm/OpenSlx Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Shut down the application context

Dispose ( ) : void

Shut down the application context (if it is still open). Exceptions will be silently ignored.

Open ( ) : void

Start up the Saleslogix application engine. The parameters set up at construction time will be used.

SlxAppSetup ( ) : System

Create an empty setup. ApplicationName defaults to Test.

SlxAppSetup ( String webDeploymentFolder, String adminPassword ) : System

Create a setup that will copy all files and assemblies from the current web deployment (default to ADMIN user)

Private Methods

Method Description
CopySaleslogixAssemblies ( string source, string target ) : void

Copy all Saleslogix assemblies from the specified folder. The name of the assemblies to copy are obtained from the dynamicmethods.xml and the hibernate.xml files.

Dispose ( bool disposing ) : void
GetConfigurationFile ( String fileName ) : String

Retrieve path to configuration file of the specified type.

GetDynamicMethodsAssemblies ( ) : IEnumerable
GetDynamicMethodsTypes ( ) : IEnumerable
GetHibernateAssemblies ( ) : IEnumerable
LoadSaleslogixConnectionString ( string connectionFile, String username, String adminPassword ) : String

Loads the connection string from the connection.config file.

PrepareConfigurationFile ( Type configType, string configFile ) : void

Register configuration file. This copies the given file under the fixed path for the application so it can be retrieved, and registers it. If SourceFolder is not specified then the file will be expected to already be there, and the copy step will be skipped.

Method Details

Close() public method

Shut down the application context
public Close ( ) : void
return void

Dispose() public method

Shut down the application context (if it is still open). Exceptions will be silently ignored.
public Dispose ( ) : void
return void

Open() public method

Start up the Saleslogix application engine. The parameters set up at construction time will be used.
public Open ( ) : void
return void

SlxAppSetup() public method

Create an empty setup. ApplicationName defaults to Test.
public SlxAppSetup ( ) : System
return System

SlxAppSetup() public method

Create a setup that will copy all files and assemblies from the current web deployment (default to ADMIN user)
public SlxAppSetup ( String webDeploymentFolder, String adminPassword ) : System
webDeploymentFolder String
adminPassword String
return System