CSApplicationRestartSite Method (ConnectionId, SessionId, Int32, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Restarts the website.

Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void RestartSite(
	ConnectionId connectionId,
	SessionId sessionId,
	out int status,
	out string statusText
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the users session. This value usually originates from a call to OpenSession(ConnectionId).
status
Type: SystemInt32
An integer indicating result of the call. Zero is success.
statusText
Type: SystemString
The textual representation of the call result.
Content Studio permissions

The caller must have either the GlobalGroupAdmin or the RestartWebSite global group right in order to successfully execute this method.
Remarks

Note Note
This is the backwards compatible implementation of this method new code should use the RestartSite(ConnectionId, SessionId) overloaded version of this method. This implementation does not throw any exceptions, instead callers must examine the outcome of the call in the Status and StatusText output parameters.
Technically, a restart is performed by writing a single byte in the Site.dat file located in the Bin subdirectory of the site. When ASP.NET sees that a file has been touched in the Bin directory it restarts and recompiles the web site.
See Also

Reference