Fixed: Some Warnings

This commit is contained in:
TheJoKlLa
2021-02-24 20:59:43 +01:00
parent 65ea3ef6e9
commit acd3a837a9
6 changed files with 14 additions and 18 deletions

View File

@ -9,8 +9,8 @@ using System.Threading.Tasks;
namespace FabAccessAPI {
public class Connection {
#region private variables
private TcpRpcClient? _rpcClient = null;
private IBootstrap? _bootstrapCap = null;
private readonly TcpRpcClient? _rpcClient = null;
private readonly IBootstrap? _bootstrapCap = null;
private Auth? _auth = null;
private Machines? _machines = null;
#endregion

View File

@ -12,12 +12,8 @@ namespace FabAccessAPI
/// Wraps a capability for accessing the Machines subsystem of BFFH
/// </summary>
public class Machines {
#region Log
private static readonly log4net.ILog _Log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#endregion
private IMachines _machinesCap;
private readonly IMachines _machinesCap;
/// <summary>
/// Constructs the Wrapper Class from a given capability.
@ -71,7 +67,7 @@ namespace FabAccessAPI
/// even have `read` set and are unable to even see if the machine is currently in use.
/// </summary>
public class Machine {
private Schema.Machine _machine;
private readonly Schema.Machine _machine;
/// <summary>
/// Constructs the Wrapper Class from a given capability