-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminated [Serializable] attributes in Generator classes as no longer needed.
- Loading branch information
1 parent
7152987
commit 1629e73
Showing
20 changed files
with
82 additions
and
93 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Reqnroll.Configuration | ||
{ | ||
public interface IMS_ConfigurationLoader | ||
{ | ||
public ReqnrollConfiguration Load(ReqnrollConfiguration reqnrollConfiguration); | ||
|
||
} | ||
} |
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 was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
Reqnroll/Configuration/MicrosoftConfiguration_RuntimeConfigurationLoader.cs
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.NetworkInformation; | ||
using System.Text; | ||
using Microsoft.Extensions.Configuration; | ||
using Reqnroll.Configuration.JsonConfig; | ||
using Reqnroll.Tracing; | ||
using SpecFlow.Internal.Json; | ||
|
||
namespace Reqnroll.Configuration | ||
{ | ||
public class MicrosoftConfiguration_RuntimeConfigurationLoader : IMS_ConfigurationLoader | ||
{ | ||
private readonly string _jsonConfigurationFilePath; | ||
private readonly IConfigurationManager _configurationManager; | ||
|
||
public MicrosoftConfiguration_RuntimeConfigurationLoader(IReqnrollJsonLocator reqnrollJsonLocator, IConfigurationManager configurationManager) | ||
{ | ||
_jsonConfigurationFilePath = reqnrollJsonLocator.GetReqnrollJsonFilePath(); | ||
if (_jsonConfigurationFilePath != null) | ||
{ | ||
configurationManager.AddJsonFile(_jsonConfigurationFilePath, optional: true, reloadOnChange: false); | ||
configurationManager.AddEnvironmentVariables(prefix: "REQNROLL__"); | ||
_configurationManager = configurationManager; | ||
//configurationManager.Build(); | ||
// Build not necessary as IConfigurationManager automatically rebuilds when sources are changed | ||
} | ||
|
||
} | ||
|
||
|
||
public ReqnrollConfiguration Load(ReqnrollConfiguration reqnrollConfiguration) | ||
{ | ||
var config = _configurationManager.Get<JsonConfig.JsonConfig>(); | ||
var configuration = JsonConfigurationLoader.ApplyJsonConfig(reqnrollConfiguration, config); | ||
configuration.ConfigSourceText = config.ToJson(); | ||
return configuration; | ||
} | ||
|
||
} | ||
} |
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