| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // System.ComponentModel.LicenseContext.cs
- //
- // Authors:
- // Martin Willemoes Hansen ([email protected])
- // Andreas Nahr ([email protected])
- //
- // (C) 2003 Martin Willemoes Hansen
- // (C) 2003 Andreas Nahr
- //
- using System.Reflection;
- namespace System.ComponentModel
- {
- // Serves as base class for RuntimeLicenseContext and DesignTimeLicenseContext
- // (no clue why this isn't abstract)
- public class LicenseContext : IServiceProvider
- {
- public LicenseContext()
- {
- }
- public virtual string GetSavedLicenseKey (Type type,
- Assembly resourceAssembly)
- {
- return null;
- }
- public virtual object GetService (Type type)
- {
- return null;
- }
- public virtual void SetSavedLicenseKey (Type type, string key)
- {
- // Intentionally empty
- }
- public virtual LicenseUsageMode UsageMode {
- get {
- return LicenseUsageMode.Runtime;
- }
- }
- }
- }
|