Changes to StiConfig.Services.GetService
Posted: Sun Aug 14, 2016 8:57 am
Hi,
this is to let you know, that between 2014.05.19 and 2016.1.21 the function "StiConfig.Services.GetService()" must have changed the way it works.
The following line of code which worked under 2014.05.19 now returns null:
I found a solution by using the following code:
Just wanted to let you know that, although the first line is still syntactically correct and compiles just fine, it does not seem to have the same semantic. If it is now obsolete, it should be marked as such...
Thanks.
Regards,
Pascal
this is to let you know, that between 2014.05.19 and 2016.1.21 the function "StiConfig.Services.GetService()" must have changed the way it works.
The following line of code which worked under 2014.05.19 now returns null:
Code: Select all
StiWpfMainMenuService objService = (StiWpfMainMenuService)StiConfig.Services.GetService(typeof(StiWpfMainMenuService));
Code: Select all
StiWpfMainMenuService objService = StiWpfMainMenuService.GetService();
Thanks.
Regards,
Pascal