View on GitHub

Sp.Distributor-README

README for Sp.Distributor NuGet package from Software Potential

Welcome to the Sp.Distributor-<PermutationShortCode> NuGet Package.

NB: The Sp.Distributor NuGet package is available from v3.2.1950 so you will need to update your permutation if it is earlier than this.

Purpose of this Distributor Package

This package contains the Distributor Server components required to support floating/concurrent licensing models in your license application. If your application is intended to work with floating/concurrent licenses then one or more Distributor instances must be installed on your customer's premises.

When Distributor is used, the floating/concurrent licenses are activated on a Distributor instance and licensed applications that wish to avail of these licenses must be configured to connect to the Distributor instance. Please see Getting Started - Licensing with Distributor for more details on how to use Distributor to implement floating/concurrent licensing models in your application.

An application configured to work with Distributor can use both Local and Distributor licenses in parallel. SpAgent will attempt to utilize any available local licenses before attempting to request resources from the Distributor instance.

Packaging Distributor

In addition to enabling your application via the Distributor client components (see SoftwarePotential.Configuration-README for more details), you will also need to package the Distributor Server so that it can be installed on-premise by your customers. This process is straightforward and involves:

Installing the Sp.Distributor NuGet package

To obtain the components required to install and run a Distributor instance on your customer’s premises you will need to first install the Sp.Distributor-<PermutationShortCode> NuGet package in your Visual Studio Solution.

Once installed, you will find the Sp.Distributor-<PermutationShortCode> package contents in the packages folder in your solution directory. The components required to run a Distributor instance on a customer’s premises can be found in the Slps.Distributor.Host subfolder.

Installing Distributor Server

The Distributor components are designed to fit into an appropriate installation/deployment process that makes sense in the context of your application or system. For example, to install a Distributor server you might wish to create an installer using an installer product of your choice or alternatively simply include a step in a custom installation script which would XCOPY the required binaries to the target machine.

Typically the Distributor server components are packaged separately from your application, requiring separate installers for your protected application and your Distributor server components.

Whatever installation approach you take in your installation process you need to:

[* If IIS is installed on the machine then the Temporary ASP.NET Files folder should be already initialized. If not then you can do this by calling (elevated) C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ga “NT Authority\System"]

Our Distributor installer sample contains a WIX-based installer project. You just need to install your SoftwarePotential.Distributor-<PermutationShortCode> NuGet package and build the solution to generate a fully-functional Distributor installer.

Customizing Distributor Server Settings

You have the option to alter some or all of the default Distributor server settings to suit your deployment requirements.

Distributor Endpoint

By default the Distributor service listens on Port 8731 for feature allocation requests from appropriately configured licensed applications. A new port can be allocated to suit a customer environment by changing the port number value of the Slps.Distributor.Service.BaseUri key in ..\Slps.Distributor.Hosts\Services\Slps.Distributor.Services.dll.config

Distributor Base Uri

To connect to a Distributor instance, the application must be configured with a Distributor Base Uri, which takes the form: http://<DistributorServerName>:<PortNo> where:

Distributor Web Admin Portal

Distributor is administered via a web portal available on Port 2468 by default. A new port can be allocated to suit a customer environment by changing the value of the Port property in the Slps.Distributor.Host element in ..\Slps.Distributor.Host\Slps.Distributor.Host.exe.config

Distributor UI Customizations

You may also wish to change some of the Distributor default UI settings using keys in the <appSettings> section of the web.config file as follows:

Managing Distributor Service

Once installed the Distributor Service can be stopped/started/restarted using the Services Snap-in (find the Software Potential Distributor Service and right click to select Stop, Start or Restart as appropriate).

Distributor can also be managed via install.cmd e.g. Install.cmd -stop, Install.cmd -start, Install.cmd -install,Install.cmd -uninstall`