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();
|
||||
_astroMaths = new AstroMaths();
|
||||
|
||||
Initialise();
|
||||
}
|
||||
|
||||
private void Initialise()
|
||||
{
|
||||
tl = new TraceLogger("", "Meade.net.Telescope");
|
||||
tl.LogMessage("Telescope", "Starting initialisation");
|
||||
|
||||
|
||||
@@ -68,13 +68,19 @@ namespace ASCOM.Meade.net
|
||||
//todo move this out to IOC
|
||||
_utilities = new Util(); //Initialise util object
|
||||
_sharedResourcesWrapper = new SharedResourcesWrapper();
|
||||
|
||||
Initialise();
|
||||
}
|
||||
|
||||
private void Initialise()
|
||||
{
|
||||
tl = new TraceLogger("", "Meade.net.focusser");
|
||||
|
||||
|
||||
tl.LogMessage("Focuser", "Starting initialisation");
|
||||
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
||||
|
||||
IsConnected = false; // Initialise connected to false
|
||||
|
||||
|
||||
tl.LogMessage("Focuser", "Completed initialisation");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user