CReplicationServer Class
Administers Commerce Server Staging (CSS) servers.
Methods
Method |
Description |
---|---|
Creates or opens an event sink.
Note:
This method supports CSS but should not be used directly from your code. It is for Microsoft internal use only.
|
|
Adds a route to the CSS routing table. |
|
Retrieves the current user's CSS rights on the server. |
|
Commits changes that have been made to a property that is defined for the CSS service. |
|
Starts the CSS service after the server has been paused. |
|
Removes an event sink for the CSS service on the server.
Note:
This method supports CSS but should not be used directly from your code. It is for Microsoft internal use only.
|
|
Deletes a project from the server. |
|
Deletes a route from the CSS routing table for the server. |
|
Retrieves the global properties that are assigned to the CSS service on the server. |
|
Retrieves the event sinks defined for the CSS service on the server.
Note:
This method supports CSS but should not be used directly from your code. It is for Microsoft internal use only.
|
|
Retrieves the projects defined on the server. |
|
Retrieves the replications that are running on the CSS server. |
|
Retrieves the replication routes that are defined on the CSS server. |
|
Retrieves the names of servers that are defined for a project or for a route on the CSS server. |
|
Converts a date-time value to the local time zone value. |
|
Retrieves a global property that is defined on the server. |
|
Initializes a CReplicationServer object on the CSS server. |
|
Initializes a CReplicationServer object on the CSS server by using a different user context and an optional time-out value. |
|
Maps a URL to a project.
Note:
This method supports CSS but should not be used directly from your code. It is for Microsoft internal use only.
|
|
Opens an existing CSS project or creates a new project. |
|
Pauses the CSS service on the server. |
|
Sets a global property for the CSS service on the server. |
|
Starts the CSS service on the server. |
|
Stops the CSS service on the server. |
|
Retrieves the description, severity, and category for the specified event code. |
Properties
Property |
Description |
---|---|
Gets the name of the CSS server. |
|
Gets a value that specifies whether the server has transaction processing enabled. |
|
Gets the version number of the CSS service that is running on the server. |
Remarks
You can create a new CReplicationServer object by calling the OpenProject method.
After you gain access to the CReplicationServer object, you must call its Initialize or InitializeEx method to initialize the object before you can call its other methods or access its properties.
The following table provides additional information about the CReplicationServer class.
Assembly |
CSSAPILib |
Namespace |
Microsoft.CommerceServer.Staging.Interop
Note:
You must also add a using directive for the System.ServiceProcesses namespace.
|
Corresponding COM class |
ReplicationServer |
CLSID |
7E95698D-CD3C-4C98-93C7-6510C31F7DDF |
ProgID |
CssApi.ReplicationServer |
Example
The following example opens the project named Project2.
CReplicationServer replicationServer = new CReplicationServer();
replicationServer.Initialize("");
CReplicationProject replicationProject = (CReplicationProject)replicationServer.OpenProject("Project2", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
See Also
Other Resources
Commerce Server Staging Reference
Before You Start Developing with the Commerce Server Staging System
What are the Staging API Concepts?
How to Set, Modify, and Retrieve Global Properties for a CSS Service
How to Pause, Continue, Start, and Stop the CSS Service