diff --git a/Meade.net/AssemblyInfo.cs b/Meade.net/AssemblyInfo.cs index 46ccffa..d5f66f7 100644 --- a/Meade.net/AssemblyInfo.cs +++ b/Meade.net/AssemblyInfo.cs @@ -19,7 +19,7 @@ namespace ASCOM.Meade.net //public readonly bool IsComVisible; // Return a particular assembly attribute value. - public static T GetAssemblyAttribute(Assembly assembly) + private T GetAssemblyAttribute(Assembly assembly) where T : Attribute { // Get attributes of this type. @@ -40,7 +40,7 @@ namespace ASCOM.Meade.net { } - public AssemblyInfo(Assembly assembly) + private AssemblyInfo(Assembly assembly) { // Get values from the assembly. //var titleAttr = GetAssemblyAttribute(assembly); diff --git a/Meade.net/ClassFactory.cs b/Meade.net/ClassFactory.cs index 2ceeda1..f67ae9f 100644 --- a/Meade.net/ClassFactory.cs +++ b/Meade.net/ClassFactory.cs @@ -135,7 +135,8 @@ namespace ASCOM.Meade.net #endregion #region Common ClassFactory Methods - public uint ClassContext { get; } + + private uint ClassContext { get; } public Guid ClassId { @@ -143,7 +144,7 @@ namespace ASCOM.Meade.net set => _mClassId = value; } - public uint Flags { get; } + private uint Flags { get; } public bool RegisterClassObject() { diff --git a/Meade.net/GarbageCollection.cs b/Meade.net/GarbageCollection.cs index a68096f..ecc601d 100644 --- a/Meade.net/GarbageCollection.cs +++ b/Meade.net/GarbageCollection.cs @@ -30,7 +30,7 @@ namespace ASCOM.Meade.net _mEventThreadEnded.Set(); } - protected bool ContinueThread() + private bool ContinueThread() { lock (this) { diff --git a/Meade.net/LocalServer.cs b/Meade.net/LocalServer.cs index 2abf8da..98b178a 100644 --- a/Meade.net/LocalServer.cs +++ b/Meade.net/LocalServer.cs @@ -72,15 +72,15 @@ namespace ASCOM.Meade.net #endregion // This property returns the main thread's id. - public static uint MainThreadId { get; private set; } // Stores the main thread's thread id. + private static uint MainThreadId { get; set; } // Stores the main thread's thread id. // Used to tell if started by COM or manually - public static bool StartedByCom { get; private set; } // True if server started by COM (-embedding) + private static bool StartedByCom { get; set; } // True if server started by COM (-embedding) #region Server Lock, Object Counting, and AutoQuit on COM startup // Returns the total number of objects alive currently. - public static int ObjectsCount + private static int ObjectsCount { get { @@ -106,7 +106,7 @@ namespace ASCOM.Meade.net } // Returns the current server lock count. - public static int ServerLockCount + private static int ServerLockCount { get { diff --git a/Meade.net/Localization/LocalisationHelper.cs b/Meade.net/Localization/LocalisationHelper.cs index a7d4565..5d46f73 100644 --- a/Meade.net/Localization/LocalisationHelper.cs +++ b/Meade.net/Localization/LocalisationHelper.cs @@ -17,7 +17,7 @@ namespace ASCOM.Meade.net.Localization SetLocalisation(CultureInfo.CurrentCulture.Name); } - internal void SetLocalisation(string name) + private void SetLocalisation(string name) { var cultureInfo = new CultureInfo(name); diff --git a/Meade.net/SharedResources.cs b/Meade.net/SharedResources.cs index 05bece9..d56fd7e 100644 --- a/Meade.net/SharedResources.cs +++ b/Meade.net/SharedResources.cs @@ -62,12 +62,12 @@ namespace ASCOM.Meade.net /// /// Shared serial port /// - public static Serial SharedSerial => _sSharedSerial ?? (_sSharedSerial = new Serial()); + private static Serial SharedSerial => _sSharedSerial ?? (_sSharedSerial = new Serial()); /// /// number of connections to the shared serial port /// - public static int Connections { get; set; } + private static int Connections { get; set; } public static void SendBlind(string message) { @@ -342,7 +342,7 @@ namespace ASCOM.Meade.net } } - public static bool IsConnected() + private static bool IsConnected() { foreach (var device in ConnectedDevices) { @@ -382,7 +382,7 @@ namespace ASCOM.Meade.net /// Skeleton of a hardware class, all this does is hold a count of the connections, /// in reality extra code will be needed to handle the hardware in some way /// - public class DeviceHardware + private class DeviceHardware { internal int Count { set; get; }