3using System.Reflection;
9[assembly: MockLicenseCheck]
21 vm.AcceptedProductIDs =
new []{4711};
23 vm.ProductReferenceDate =
new FileInfo(Assembly.GetExecutingAssembly().Location).CreationTime;
24 vm.ValidityAfterReferenceDate = TimeSpan.FromDays(123);
27 vm.ActivationUriBuilder = () =>
new Uri($
"https://github.com/AxelSemrau/ChronosMockPlugin?ID={vm.ComputerId}&Serial={vm.SerialNumber}");
29 view.DataContext = vm;
31 if (!vm.IsActivationKeyOk)
Classes and interfaces that are meant for plugins. The classes and interfaces below this namespace ar...
Contains things that do not fit into the other categories.
void TraceWrite(string text, params object[] arguments)
Write something to the Chronos trace log.
Static instance for access to utility functions and resources.
static IUtilityFactories UtilityFactories
Helper class factories, see the members for details.
static IDebugHelper Debug
Utility functions for debugging.
Use this attribute if you want to expose the contents of your plugin assembly only after a license ch...
Model for default Chronos licenses.
Just a placeholder for an internally generated dialog window that uses a LicenseCheckViewModel.
override string CheckLicense()
bool LicenseAlreadyOk()
Check if we have some persistantly saved license state, and this state is ok.
Interaction logic for NoLicenseNeededExplanation.xaml.