Table of Contents

Class LicenseManager

Namespace
Inetlab.SMPP
Assembly
Inetlab.SMPP.dll

Manager for library license.

public static class LicenseManager
Inheritance
LicenseManager
Inherited Members

Properties

IsTrial

Indicates whether the library is in trial mode.

public static bool IsTrial { get; }

Property Value

bool

Status

Returns actual status of the license. It helps to distinguish evaluation license from full license.

public static string Status { get; }

Property Value

string

Methods

SetLicense(Stream)

Sets a license.

public static bool SetLicense(Stream stream)

Parameters

stream Stream

The stream, that contains license

Returns

bool

True if it succeeds and license is valid, false if it fails.

Examples

Inetlab.SMPP.LicenseManager.SetLicense(this.GetType().Assembly.GetManifestResourceStream(this.GetType(), "Inetlab.SMPP.license" ));

Remarks

After purchase you will receive Inetlab.SMPP.license file per E-Mail. Add this file into the root of project where you have a reference on Inetlab.SMPP.dll. Change "Build Action" of the file to "Embedded Resource".

Set license before using Inetlab.SMPP classes in your code:

See Also

SetLicense(string)

Sets a license for Inetlab.SMPP library.

public static bool SetLicense(string licenseContent)

Parameters

licenseContent string

The string, that contains license

Returns

bool

True if it succeeds and license is valid, false if it fails.

Examples

Inetlab.SMPP.LicenseManager.SetLicense(File.ReadAllText("Inetlab.SMPP.license"));
See Also