Before evaluating this sample, please read the topic on Understanding Network Floating Licensing.
The NetworkFloatingLicense sample demonstrates basic network floating licensing using network semaphore files and is primarily intended for use on a local area network (LAN). The activation and license functionality is very similar to the ClientLicense sample. A NetworkFloatingLicense class is implemented in the same fashion as the ClientLicense class, with the only difference being the use of the NetworkNameIdendifierAlgorithm to bind the network license to the file server and share that hosts the network license file. Once the network license is activated and verified, each instance of the application attempts to open a network semaphore file that counts as a network seat. The NetworkSemaphore class is used to manage the network session and limits the number of concurrent users based on the QuantityOrdered set on the license record in SOLO Server. Note that the QuantityOrdered is stored in the license file and may not reflected what is set in SOLO Server until a license refresh is performed. Decrementing the value in SOLO Server will not close the open network sessions. The new user limit will be enforced once the open sessions are closed.
The sample application contains the same forms as the ClientLicense sample that are used for activation and displaying the license status and contains three additional forms specific to network licensing.