Search Results for

Show / Hide Table of Contents

# Class LicenseService

Static singleton license service for AjaxUploader WebForms. Searches for ajaxuploader5.lic in standard locations.

##### Inheritance

object
LicenseService

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: AjaxUploader.Licensing

###### Assembly: AjaxUploader.dll

##### Syntax

    public static class LicenseService

### Methods

#### GetValidation()

Gets the current license validation result for the active host. Localhost requests are treated as licensed for development.

##### Declaration

    public static LicenseValidationResult GetValidation()

##### Returns

Type | Description
--- | ---
LicenseValidationResult |

#### IsLicensed()

Returns a value indicating whether the current request host is licensed.

##### Declaration

    public static bool IsLicensed()

##### Returns

Type | Description
--- | ---
bool |

#### LoadFromFile(string)

Loads a license file explicitly and refreshes cached validation state.

##### Declaration

    public static void LoadFromFile(string filePath)

##### Parameters

Type | Name | Description
--- | --- | ---
string | filePath |

#### Reset()

Resets cached state. Useful for testing or reloading license.

##### Declaration

    public static void Reset()