C# Class Orc.LicenseManager.Services.NetworkLicenseService

Inheritance: INetworkLicenseService
Afficher le fichier Open project: WildGums/Orc.LicenseManager

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

NetworkLicenseService() public méthode

public NetworkLicenseService ( ILicenseService licenseService, IIdentificationService identificationService ) : System
licenseService ILicenseService
identificationService IIdentificationService
Résultat System

ValidateLicense() public méthode

public ValidateLicense ( ) : NetworkValidationResult
Résultat NetworkValidationResult