Skip to content

Commit

Permalink
Changed config key parsing method in support of #203.
Browse files Browse the repository at this point in the history
  • Loading branch information
uncheckederror committed Jul 12, 2021
1 parent a22143b commit 5fc6fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NumberSearch.Mvc/Controllers/PortingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public PortingController(IConfiguration config)
{
configuration = config;
_postgresql = configuration.GetConnectionString("PostgresqlProd");
_teleToken = Guid.Parse(configuration.GetConnectionString("TeleAPI"));
var checkTeli = Guid.TryParse(configuration.GetConnectionString("TeleAPI"), out _teleToken);
_data247username = config.GetConnectionString("Data247Username");
_data247password = config.GetConnectionString("Data247Password");
_bulkVSAPIKey = config.GetConnectionString("BulkVSAPIKEY");
Expand Down
2 changes: 1 addition & 1 deletion NumberSearch.Mvc/WorkerServices/MonitorLoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public MonitorLoop(IBackgroundTaskQueue taskQueue,
_taskQueue = taskQueue;
_cancellationToken = applicationLifetime.ApplicationStopping;
_configuration = configuration;
_teleToken = Guid.Parse(configuration.GetConnectionString("TeleAPI"));
var checkTeli = Guid.TryParse(configuration.GetConnectionString("TeleAPI"), out _teleToken);
_postgresql = _configuration.GetConnectionString("PostgresqlProd");
_ = int.TryParse(_configuration.GetConnectionString("CallFlow"), out _CallFlow);
_ = int.TryParse(_configuration.GetConnectionString("ChannelGroup"), out _ChannelGroup);
Expand Down

0 comments on commit 5fc6fcf

Please sign in to comment.