Add-CustomDependency [Deprecated]
This PowerShell Cmdlet allows user to configure custom dependency providers for the specified cache.
Add-CustomDependency [-CacheName] -AssemblyPath -Class -ProviderName -DependentAssemblyPath [-Parameters] [-Server] [-Port] [-NoDeploy] [-Credentials] [-NoLogo]
Examples of Add-CustomDependency
- The following PowerShell Cmdlet configures custom dependency for demoCache configured on the local server.
Add-CustomDependency -CacheName demoCache -AssemblyPath C:\Provider.dll -Class MyCustomDependencyProvider -ProviderName MyCustomDependencyProvider
- The following command configures custom dependency provider for demoCache that exists on server 20.200.20.11.
Add-CustomDependency -CacheName demoCache -Server 20.200.20.11 -Port 8250 -AssemblyPath C:\Provider.dll -Class MyCustomDependencyProvider -ProviderName MyCustomDependencyProvider
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 |
---|---|---|---|
-CacheName* |
<String> |
Specifies the cache name for which custom dependency provider needs to be configured. | - |
-AssemblyPath* |
<String> |
Specifies the path of the assembly which will be configured as a custom dependency provider. | - |
-Class* |
<String> |
Specifies the fully qualified class from the custom dependency provider assembly which implements ICustomDependencyProvider . |
- |
-ProviderName* |
<String> |
Specifies the unique name of the provider. | - |
-DependentAssemblyPath |
<String> |
Specifies the dependent assembly folder/path. | - |
-Parameters |
<String> |
Specifies the list of the parameters passed to the custom dependency provider separated by ‘$’. | - |
-Server |
<String> |
Specifies the NCache server name or IP. | - |
-Port |
<Integer> |
Specifies the port on which the NCache Service is listening. | 8250 |
-NoDeploy |
<SwitchParameter> |
Specifies if no assembly should be deployed. | False |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | - |