Method StopCache
StopCache(String)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache only on the same server where the
client application is running.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
StopCache(String, Boolean)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache only on the same server where the
client application is running.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId, bool isGracefulShutdown)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
System.Boolean | isGracefulShutdown |
StopCache(String, SecurityParams, SecurityParams)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache only on the same server where the
client application is running.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
Alachisoft.NCache.Web.Security.SecurityParams | primaryUserCredentials | Primary user id and password information used for user's authorization for the operation if security is enabled at Cache Server. |
Alachisoft.NCache.Web.Security.SecurityParams | secondaryUserCredentials | Secondary user id and password information used for user's authorization for the operation if security is enabled at Cache Server. These credentals are use incase primary credentials are not athorized. |
StopCache(String, SecurityParams, SecurityParams, Boolean)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache only on the same server where the
client application is running.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials, bool isGracefulShutdown)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
Alachisoft.NCache.Web.Security.SecurityParams | primaryUserCredentials | Primary user id and password information used for user's authorization for the operation if security is enabled at Cache Server. |
Alachisoft.NCache.Web.Security.SecurityParams | secondaryUserCredentials | Secondary user id and password information used for user's authorization for the operation if security is enabled at Cache Server. These credentals are use incase primary credentials are not athorized. |
System.Boolean | isGracefulShutdown |
StopCache(String, String)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache on the specified cache server.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId, string serverName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
System.String | serverName | The name of the server where cache needs to be stopped. |
StopCache(String, String, Boolean)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache on the specified cache server.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId, string serverName, bool isGracefulShutdown)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
System.String | serverName | The name of the server where cache needs to be stopped. |
System.Boolean | isGracefulShutdown |
StopCache(String, String, SecurityParams, SecurityParams)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache on the specified cache server.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId, string serverName, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
System.String | serverName | The name of the server where cache needs to be stopped. |
Alachisoft.NCache.Web.Security.SecurityParams | primaryUserCredentials | Primary User id and password information used for user's authorization for the operation if security is enabled at Cache Server. |
Alachisoft.NCache.Web.Security.SecurityParams | secondaryUserCredentials | Secondary User id and password information used for user's authorization for the operation if security is enabled at Cache Server. These credentials are used incase primar user credentials are not athorized. |
StopCache(String, String, SecurityParams, SecurityParams, Boolean)
Stops an out-proc cache. The end result is the same as that of stoping the
cache using NCache Manager. It stops the cache on the specified cache server.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StopCache(string cacheId, string serverName, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials, bool isGracefulShutdown)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to stop. |
System.String | serverName | The name of the server where cache needs to be stopped. |
Alachisoft.NCache.Web.Security.SecurityParams | primaryUserCredentials | Primary User id and password information used for user's authorization for the operation if security is enabled at Cache Server. |
Alachisoft.NCache.Web.Security.SecurityParams | secondaryUserCredentials | Secondary User id and password information used for user's authorization for the operation if security is enabled at Cache Server. These credentials are used incase primar user credentials are not athorized. |
System.Boolean | isGracefulShutdown |