96 lines
4.5 KiB
C#
96 lines
4.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides an implementation of a <see cref="T:System.ComponentModel.LicenseProvider" />. The provider works in a similar fashion to the Microsoft .NET Framework standard licensing model.</summary>
|
|
// Token: 0x02000152 RID: 338
|
|
[Token(Token = "0x2000152")]
|
|
public class LicFileLicenseProvider : LicenseProvider
|
|
{
|
|
/// <summary>Determines whether the key that the <see cref="M:System.ComponentModel.LicFileLicenseProvider.GetLicense(System.ComponentModel.LicenseContext,System.Type,System.Object,System.Boolean)" /> method retrieves is valid for the specified type.</summary>
|
|
/// <param name="key">The <see cref="P:System.ComponentModel.License.LicenseKey" /> to check.</param>
|
|
/// <param name="type">A <see cref="T:System.Type" /> that represents the component requesting the <see cref="T:System.ComponentModel.License" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the key is a valid <see cref="P:System.ComponentModel.License.LicenseKey" /> for the specified type; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600081F RID: 2079 RVA: 0x00005040 File Offset: 0x00003240
|
|
[Token(Token = "0x600081F")]
|
|
[Address(RVA = "0x4EFE30", Offset = "0x4EEC30", VA = "0x1804EFE30", Slot = "5")]
|
|
protected virtual bool IsKeyValid(string key, Type type)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a key for the specified type.</summary>
|
|
/// <param name="type">The object type to return the key.</param>
|
|
/// <returns>A confirmation that the <paramref name="type" /> parameter is licensed.</returns>
|
|
// Token: 0x06000820 RID: 2080 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000820")]
|
|
[Address(RVA = "0x4EF9C0", Offset = "0x4EE7C0", VA = "0x1804EF9C0", Slot = "6")]
|
|
protected virtual string GetKey(Type type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a license for the instance of the component, if one is available.</summary>
|
|
/// <param name="context">A <see cref="T:System.ComponentModel.LicenseContext" /> that specifies where you can use the licensed object.</param>
|
|
/// <param name="type">A <see cref="T:System.Type" /> that represents the component requesting the <see cref="T:System.ComponentModel.License" />.</param>
|
|
/// <param name="instance">An object that requests the <see cref="T:System.ComponentModel.License" />.</param>
|
|
/// <param name="allowExceptions">
|
|
/// <see langword="true" /> if a <see cref="T:System.ComponentModel.LicenseException" /> should be thrown when a component cannot be granted a license; otherwise, <see langword="false" />.</param>
|
|
/// <returns>A valid <see cref="T:System.ComponentModel.License" />. If this method cannot find a valid <see cref="T:System.ComponentModel.License" /> or a valid <paramref name="context" /> parameter, it returns <see langword="null" />.</returns>
|
|
// Token: 0x06000821 RID: 2081 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000821")]
|
|
[Address(RVA = "0x4EFA50", Offset = "0x4EE850", VA = "0x1804EFA50", Slot = "4")]
|
|
public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.LicFileLicenseProvider" /> class.</summary>
|
|
// Token: 0x06000822 RID: 2082 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000822")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public LicFileLicenseProvider()
|
|
{
|
|
}
|
|
|
|
// Token: 0x02000153 RID: 339
|
|
[Token(Token = "0x2000153")]
|
|
private class LicFileLicense : License
|
|
{
|
|
// Token: 0x06000823 RID: 2083 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000823")]
|
|
[Address(RVA = "0x4EFED0", Offset = "0x4EECD0", VA = "0x1804EFED0")]
|
|
public LicFileLicense(LicFileLicenseProvider owner, string key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000186 RID: 390
|
|
// (get) Token: 0x06000824 RID: 2084 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000186")]
|
|
public override string LicenseKey
|
|
{
|
|
[Token(Token = "0x6000824")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000825 RID: 2085 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000825")]
|
|
[Address(RVA = "0x4EFE70", Offset = "0x4EEC70", VA = "0x1804EFE70", Slot = "6")]
|
|
public override void Dispose()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040004F9 RID: 1273
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40004F9")]
|
|
private string key;
|
|
}
|
|
}
|
|
}
|