3using System.Reflection;
9[assembly: MockLicenseCheck]
25 vm.AcceptedProductIDs =
new []{4711};
27 vm.ProductReferenceDate =
new FileInfo(Assembly.GetExecutingAssembly().Location).CreationTime;
28 vm.ValidityAfterReferenceDate = TimeSpan.FromDays(123);
31 vm.ActivationUriBuilder = () =>
new Uri($
"https://github.com/AxelSemrau/ChronosMockPlugin?ID={vm.ComputerId}&Serial={vm.SerialNumber}");
33 view.DataContext = vm;
35 if (!vm.IsActivationKeyOk)
Classes and interfaces that are meant for plugins. The classes and interfaces below this namespace ar...
ViewModels provided by Chronos - currently just for license checking.
Placeholder for the Chronos provided license check dialog window. To use the real dialog,...
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.
Mock plugin specific license checker.
override string CheckLicense()
bool LicenseAlreadyOk()
Check if we have some persistantly saved license state, and this state is ok.
Interaction logic for NoLicenseNeededExplanation.xaml.