Skip to content

Commit

Permalink
Markup file - added optional parameter to the constructor so we can c…
Browse files Browse the repository at this point in the history
…hange the markup file over time
  • Loading branch information
tomasherceg committed Mar 26, 2023
1 parent cf7304f commit 0074d87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Framework/Framework/Hosting/MarkupFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ public MarkupFile(string fileName, string fullPath)
};
}

public MarkupFile(string fileName, string fullPath, string contents)
public MarkupFile(string fileName, string fullPath, string contents, DateTime lastWriteDateTimeUtc = default)
{
FileName = fileName;
FullPath = fullPath;
ReadContent = () => contents;
LastWriteDateTimeUtc = lastWriteDateTimeUtc;
}

public override bool Equals(object? obj)
Expand Down

0 comments on commit 0074d87

Please sign in to comment.