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: 0x0200014E RID: 334
|
|
[Token(Token = "0x200014E")]
|
|
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: 0x06000809 RID: 2057 RVA: 0x00005028 File Offset: 0x00003228
|
|
[Token(Token = "0x6000809")]
|
|
[Address(RVA = "0xC5A210", Offset = "0xC59210", VA = "0x180C5A210", 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: 0x0600080A RID: 2058 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600080A")]
|
|
[Address(RVA = "0xC59DA0", Offset = "0xC58DA0", VA = "0x180C59DA0", 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: 0x0600080B RID: 2059 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600080B")]
|
|
[Address(RVA = "0xC59E30", Offset = "0xC58E30", VA = "0x180C59E30", 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: 0x0600080C RID: 2060 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600080C")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public LicFileLicenseProvider()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0200014F RID: 335
|
|
[Token(Token = "0x200014F")]
|
|
private class LicFileLicense : License
|
|
{
|
|
// Token: 0x0600080D RID: 2061 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600080D")]
|
|
[Address(RVA = "0xC5A2B0", Offset = "0xC592B0", VA = "0x180C5A2B0")]
|
|
public LicFileLicense(LicFileLicenseProvider owner, string key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17000182 RID: 386
|
|
// (get) Token: 0x0600080E RID: 2062 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000182")]
|
|
public override string LicenseKey
|
|
{
|
|
[Token(Token = "0x600080E")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600080F RID: 2063 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600080F")]
|
|
[Address(RVA = "0xC5A250", Offset = "0xC59250", VA = "0x180C5A250", Slot = "6")]
|
|
public override void Dispose()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040004EC RID: 1260
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40004EC")]
|
|
private string key;
|
|
}
|
|
}
|
|
}
|