Add-CustomDependency
Note
This feature is only available NCache Enterprise Edition.
Add-CustomDependency
cmdlet allows user to configure custom dependency providers for the specified cache.
Add-CustomDependency -CacheName -AssemblyPath -Class -ProviderName [-DependentAssemblyPath] [-Parameters] [-Server] [-Port] [-UserId] [-Password] [-NoDeploy] [-NoLogo]
These properties are explained in detail in the Properties section.
Examples
- The following command configures custom dependency for demoClusteredCache.
Add-CustomDependency -CacheName demoClusteredCache -AssemblyPath C:\Provider.dll -Class CustomDependencyProvider -ProviderName MyCustomDependencyProvider
- The following command configures custom dependency provider for demoClusteredCache that exists on server 20.200.20.11
Add-CustomDependency -CacheName demoClusteredCache -AssemblyPath C:\Provider.dll -Class CustomDependencyProvider -ProviderName MyCustomDependencyProvider -Server 20.200.20.11
Properties
Note: The parameters with an asterisk (*) with their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-AssemblyPath* |
<String> |
Specifies the path of the assembly which will be configured as a custom dependency provider. | - |
-CacheName* |
<String> |
Specifies the name of the cache for which custom dependency provider needs to be configured. | - |
-Class* |
<String> |
Specifies the fully qualified class from the custom dependency provider assembly which implements ICustomDependencyProvider . |
- |
-Parameters |
<String> |
Specifies the list of the parameters passed to the custom dependency provider ('$' separated). | key1=value1 '$' key2=value2 '$' ... |
-ProviderName* |
<String> |
Specifies the dependent assembly folder/path. | - |
-DependentAssemblyPath |
<String> |
Specifies the NCache server name or IP. | - |
-Server |
<String> |
Specifies the NCache server name or IP. | - |
-Port |
<int> |
Specifies the port on which NCache Server is listening. | 8250 |
-UserId |
<String> |
Specifies the user ID that is used to authorize the user if security is enabled on the cache server. This UserId must be the same as the LDAP directory user credentials. | - |
-Password |
<String> |
Specifies the password for user authorization if security is enabled on the cache server. This password must be the same as the LDAP directory user credentials. | - |
-NoDeploy |
<SwitchParameter> |
Specifies if no assembly should be deployed. | False |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | - |