-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AddFile support handler with context
- Loading branch information
Showing
5 changed files
with
152 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
namespace NetLah.Extensions.Configuration; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace NetLah.Extensions.Configuration; | ||
|
||
public class AddFileSource : AddFileOptionsBase | ||
{ | ||
public string Path { get; set; } = null!; | ||
|
||
public string? OriginalPath { get; set; } = null; | ||
} | ||
|
||
public class AddFileContext | ||
{ | ||
public IConfigurationSection Configuration { get; set; } = null!; | ||
|
||
public IConfigurationBuilder ConfigurationBuilder { get; set; } = null!; | ||
|
||
public ILogger Logger { get; set; } = null!; | ||
|
||
public string SupportedExtensions { get; set; } = null!; | ||
|
||
public string? Provider { get; set; } | ||
|
||
public AddFileSource Source { get; set; } = null!; | ||
|
||
public bool IsProcessed { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters