C# Класс Orc.LicenseManager.Services.NetworkLicenseService

Наследование: INetworkLicenseService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Initialize() публичный Метод

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.
Результат void

NetworkLicenseService() публичный Метод

public NetworkLicenseService ( ILicenseService licenseService, IIdentificationService identificationService ) : System
licenseService ILicenseService
identificationService IIdentificationService
Результат System

ValidateLicense() публичный Метод

public ValidateLicense ( ) : NetworkValidationResult
Результат NetworkValidationResult