38 return cLRLicenseContext;
101 return currentContext;
168 if (provider !=
null)
174 Type type2 = provider.GetType();
182 [UnsupportedOSPlatform(
"browser")]
188 [UnsupportedOSPlatform(
"browser")]
300 if (licenseProviderAttribute !=
null)
310 if (licenseProvider !=
null)
312 license = licenseProvider.
GetLicense(context,
type, instance, allowExceptions);
319 licenseKey = license.LicenseKey;
322 if (flag && instance ==
null)
325 if (baseType != typeof(
object) && baseType !=
null)
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
static ? Attribute GetCustomAttribute(MemberInfo element, Type attributeType)
virtual bool Contains(object key)
virtual ? string GetSavedLicenseKey(Type type, Assembly? resourceAssembly)
CLRLicenseContext(Type type, LicenseUsageMode mode)
override LicenseUsageMode UsageMode
static CLRLicenseContext CreateRuntimeContext(Type type, string key)
override void SetSavedLicenseKey(Type type, string key)
override string GetSavedLicenseKey(Type type, Assembly resourceAssembly)
static CLRLicenseContext CreateDesignContext(Type type)
override LicenseUsageMode UsageMode
bool Contains(string assemblyName)
override string GetSavedLicenseKey(Type type, Assembly resourceAssembly)
readonly Hashtable _savedLicenseKeys
override void SetSavedLicenseKey(Type type, string key)
static bool ValidateAndRetrieveLicenseDetails(LicenseContext context, Type type, out License license, out string licenseKey)
static LicenseContext GetCurrentContextInfo(Type type, out bool isDesignTime, out string key)
static volatile Hashtable s_providerInstances
static volatile LicenseContext s_context
static ? object CreateWithContext([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type type, LicenseContext creationContext)
static readonly object s_selfLock
static LicenseUsageMode UsageMode
static bool ValidateInternal(Type type, object instance, bool allowExceptions, out License license)
static LicenseProvider GetCachedProviderInstance(Type providerType)
static LicenseContext CurrentContext
static bool IsValid(Type type)
static ? License Validate(Type type, object? instance)
static void UnlockContext(object contextUser)
static void LockContext(object contextUser)
static bool ValidateInternalRecursive(LicenseContext context, Type type, object instance, bool allowExceptions, out License license, out string licenseKey)
static readonly object s_internalSyncObject
static bool IsLicensed(Type type)
static void Validate(Type type)
static void CacheProvider(Type type, LicenseProvider provider)
static bool GetCachedNoLicenseProvider(Type type)
static volatile Hashtable s_providers
static LicenseProvider GetCachedProvider(Type type)
static bool IsValid(Type type, object? instance, out License? license)
static ? object CreateWithContext([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type type, LicenseContext creationContext, object[] args)
static object s_contextLockHolder
License? GetLicense(LicenseContext context, Type type, object? instance, bool allowExceptions)
Exception? InnerException
static string LicMgrContextCannotBeChanged
static string LicMgrDifferentUser
static string LicMgrAlreadyLocked
static int CompareExchange(ref int location1, int value, int comparand)
DynamicallyAccessedMemberTypes