Documentation
Table of Contents

Class LicenseException

Namespace
IntentSharp.Licensing
Assembly
IntentSharp.dll

Thrown by Build() when the license stops the client from being built: always for VersionGated (a paid key whose maintenance ended before this build was released), and for None, Invalid and EvaluationExpired only when FailWhenUnlicensed is set. With AddIntentSharp it is thrown, unwrapped, when the host starts (or, without a host, when the client is first resolved). It is never thrown by a request on a client that was built.

public sealed class LicenseException : IntentSharpException, ISerializable
Inheritance
object
Exception
LicenseException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.ReferenceEquals(object, object)
Extension Methods

Constructors

LicenseException(LicenseStatus)

Creates the exception for a license that stopped the client from being built, with the status notice as the message.

LicenseException(LicenseStatus, string)

Creates the exception for a license that stopped the client from being built, with its own message.

Properties

State

Shortcut for Status.State.

Status

The evaluated license that stopped the client from being built. Its Message is the logged notice; Message says why the client was not built.