C# Class Orc.LicenseManager.Services.NetworkLicenseService

Inheritance: INetworkLicenseService
Mostra file Open project: WildGums/Orc.LicenseManager

Public Methods

Method Description
Initialize ( System.TimeSpan pollingInterval = default(TimeSpan) ) : void

Initializes the service.

Note that this method is optional but will start the service. If this method is not called, the service will be initialized in the ValidateLicense method.

NetworkLicenseService ( ILicenseService licenseService, IIdentificationService identificationService ) : System
ValidateLicense ( ) : NetworkValidationResult

Private Methods

Method Description
BroadcastMessage ( string ipAddress, string message, int maxTimeout = 1000 ) : List
CreateLicenseListeningSockets ( ) : void
GetIpAddresses ( ) : List
HandleIncomingRequests ( object ipAddressAsObject ) : void
OnPollingTimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

Initialize() public method

Initializes the service.
Note that this method is optional but will start the service. If this method is not called, the service will be initialized in the ValidateLicense method.
public Initialize ( System.TimeSpan pollingInterval = default(TimeSpan) ) : void
pollingInterval System.TimeSpan The polling interval. If default(TimeSpan), no polling will be enabled.
return void

NetworkLicenseService() public method

public NetworkLicenseService ( ILicenseService licenseService, IIdentificationService identificationService ) : System
licenseService ILicenseService
identificationService IIdentificationService
return System

ValidateLicense() public method

public ValidateLicense ( ) : NetworkValidationResult
return NetworkValidationResult