public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(License.GetTableName(site));
        }
        /// <summary>
        ///     Retrieves a collection of <see cref="!:LicenseModel" /> instances.
        /// </summary>
        /// <param name="ownerId">
        ///     The value which identifies the <see cref="!:LicenseModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:LicenseModel" /> instances that match the specified <paramref name="ownerId" />.
        /// </returns>
        public static IEnumerable <Consensus.Security.License> FetchAllByOwnerId(System.String ownerId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(License.FetchAllByOwnerId(site, ownerId));
        }
        /// <summary>
        ///     Retrieves a specific <see cref="!:LicenseModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:LicenseModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:LicenseModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Security.License FetchById(System.Guid id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(License.FetchById(site, id));
        }
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:LicenseModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:LicenseModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Security.License> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(License.FetchAll(site));
        }
        /// <summary>
        ///     Creates a new <see cref="!:LicenseModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:LicenseModel" /> instance.
        /// </returns>
        public static Consensus.Security.License Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(License.Create(site));
        }
        /// <summary>
        ///     Generates a signature for the specified license verification code.
        /// </summary>
        public static System.String Sign(System.String verification)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(License.Sign(site, verification));
        }
        /// <summary>
        ///     Gets the active software license.
        /// </summary>
        /// <returns>
        ///     The most applicable software license.
        /// </returns>
        public static Consensus.Security.License GetCurrent()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(License.GetCurrent(site));
        }