Seperated out the non ioc init code to it's own method
This commit is contained in:
@@ -81,6 +81,11 @@ namespace ASCOM.Meade.net
|
|||||||
_sharedResourcesWrapper = new SharedResourcesWrapper();
|
_sharedResourcesWrapper = new SharedResourcesWrapper();
|
||||||
_astroMaths = new AstroMaths();
|
_astroMaths = new AstroMaths();
|
||||||
|
|
||||||
|
Initialise();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Initialise()
|
||||||
|
{
|
||||||
tl = new TraceLogger("", "Meade.net.Telescope");
|
tl = new TraceLogger("", "Meade.net.Telescope");
|
||||||
tl.LogMessage("Telescope", "Starting initialisation");
|
tl.LogMessage("Telescope", "Starting initialisation");
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,12 @@ namespace ASCOM.Meade.net
|
|||||||
//todo move this out to IOC
|
//todo move this out to IOC
|
||||||
_utilities = new Util(); //Initialise util object
|
_utilities = new Util(); //Initialise util object
|
||||||
_sharedResourcesWrapper = new SharedResourcesWrapper();
|
_sharedResourcesWrapper = new SharedResourcesWrapper();
|
||||||
|
|
||||||
|
Initialise();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Initialise()
|
||||||
|
{
|
||||||
tl = new TraceLogger("", "Meade.net.focusser");
|
tl = new TraceLogger("", "Meade.net.focusser");
|
||||||
|
|
||||||
tl.LogMessage("Focuser", "Starting initialisation");
|
tl.LogMessage("Focuser", "Starting initialisation");
|
||||||
|
|||||||
Reference in New Issue
Block a user