C# Класс 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.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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)

Приватные методы

Метод Описание
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.

Описание методов

Close() публичный Метод

Shut down the application context
public Close ( ) : void
Результат void

Dispose() публичный Метод

Shut down the application context (if it is still open). Exceptions will be silently ignored.
public Dispose ( ) : void
Результат void

Open() публичный Метод

Start up the Saleslogix application engine. The parameters set up at construction time will be used.
public Open ( ) : void
Результат void

SlxAppSetup() публичный Метод

Create an empty setup. ApplicationName defaults to Test.
public SlxAppSetup ( ) : System
Результат System

SlxAppSetup() публичный Метод

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
Результат System