Seperated out the non ioc init code to it's own method

This commit is contained in:
2019-07-08 22:17:05 +01:00
parent f8cbc3fa8d
commit 465d4cb5d9
2 changed files with 13 additions and 2 deletions
+8 -2
View File
@@ -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");
}