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,13 +68,19 @@ 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");
|
||||||
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
||||||
|
|
||||||
IsConnected = false; // Initialise connected to false
|
IsConnected = false; // Initialise connected to false
|
||||||
|
|
||||||
tl.LogMessage("Focuser", "Completed initialisation");
|
tl.LogMessage("Focuser", "Completed initialisation");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user