[DRAFT] Replacements for static classes.
Case | Solution |
---|---|
Application.Current.Dispatcher | ApplicationDispatcher |
Application | ApplicationWrapper |
https://ci.appveyor.com/nuget/KsWare.Presentation.StaticWrapper
Extendable static class. ### Usage: Static:
ApplicationDispatcher.Do.RunAsync(...)
or if you prefer MEF:
[Import] IApplicationDispatcher ApplicationDispatcher;
ApplicationDispatcher.Do.RunAsync(...)
Extended:
ApplicationDispatcher.Do.AnythingCustom(...);
ApplicationDispatcher.Do.AnythingCustom();
Extendable static class. ### Usage: MEF:
[Import] IApplication _application;
foreach(w in _application.Windows) DoAnothing(w);
Extended:
_application.Do.AnythingCustom(...);
var v = _application.Get.AnythingCustom();