Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Mar 26, 2024
1 parent a9437ff commit dc21921
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Credfeto.Database.SqlServer/SqlServerDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ namespace Credfeto.Database.SqlServer;

public sealed class SqlServerDatabase : BaseDatabase
{
private readonly SqlConnectionStringBuilder _conectionStringBuilder;
private readonly SqlServerConfiguration _configuration;
private readonly SqlConnectionStringBuilder _connectionStringBuilder;
private readonly ILogger<SqlServerDatabase> _logger;

public SqlServerDatabase(IOptions<SqlServerConfiguration> configuration, ILogger<SqlServerDatabase> logger)
{
this._logger = logger ?? throw new ArgumentNullException(nameof(logger));
this._configuration = configuration.Value ?? throw new ArgumentNullException(nameof(configuration));
this._conectionStringBuilder = new(this._configuration.ConnectionString);
SqlServerConfiguration cfg = configuration.Value ?? throw new ArgumentNullException(nameof(configuration));
this._connectionStringBuilder = new(cfg.ConnectionString);
}

protected override bool IsTransientException(Exception exception)
Expand Down Expand Up @@ -160,7 +159,7 @@ private static string FormatException(Exception exception, string context)

protected override async ValueTask<DbConnection> GetConnectionAsync(CancellationToken cancellationToken)
{
SqlConnection connection = new(this._conectionStringBuilder.ConnectionString);
SqlConnection connection = new(this._connectionStringBuilder.ConnectionString);

await connection.OpenAsync(cancellationToken);

Expand Down

0 comments on commit dc21921

Please sign in to comment.