Trying to reduce code duplication

This commit is contained in:
2020-09-03 23:34:04 +01:00
parent 47d0a047a5
commit d728dbe272
4 changed files with 35 additions and 23 deletions
+5 -7
View File
@@ -40,6 +40,11 @@ namespace ASCOM.Meade.net
[ComVisible(true)]
public class Telescope : MeadeTelescopeBase, ITelescopeV3
{
static Telescope()
{
ClassName = nameof(Telescope);
}
/// <summary>
/// ASCOM DeviceID (COM ProgID) for this driver.
/// The DeviceID is used by ASCOM applications to load the driver at runtime.
@@ -2225,13 +2230,6 @@ namespace ASCOM.Meade.net
#region ASCOM Registration
private static IProfileFactory _profileFactory;
public static IProfileFactory ProfileFactory
{
get => _profileFactory ?? (_profileFactory = new ProfileFactory());
set => _profileFactory = value;
}
// Register or unregister driver for ASCOM. This is harmless if already
// registered or unregistered.
//