Skip to content

Commit

Permalink
Remove primary ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens authored and CartBlanche committed Jan 8, 2024
1 parent 2cabeca commit aae340d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Source/v2/Meadow.CLI/Linker/MeadowLinker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace LinkerTest;

public class MeadowLinker(string meadowAssembliesPath, ILogger? logger = null)
public class MeadowLinker
{
private const string IL_LINKER_DIR = "lib";
private const string IL_LINKER_DLL = "illink.dll";
Expand All @@ -14,11 +14,18 @@ public class MeadowLinker(string meadowAssembliesPath, ILogger? logger = null)
private const string PostLinkDirectoryName = "postlink_bin";
private const string PreLinkDirectoryName = "prelink_bin";

readonly ILLinker _linker = new ILLinker(logger);
readonly ILogger? _logger = logger;
readonly ILLinker _linker;
readonly ILogger? _logger;

//ToDo ... might need to make this a property or pass it in when used
private readonly string _meadowAssembliesPath = meadowAssembliesPath;
private readonly string _meadowAssembliesPath;

public MeadowLinker(string meadowAssembliesPath, ILogger? logger = null)
{
_meadowAssembliesPath = meadowAssembliesPath;
_logger = logger;
_linker = new ILLinker(logger);
}

public async Task Trim(
FileInfo meadowAppFile,
Expand Down

0 comments on commit aae340d

Please sign in to comment.