Skip to content

Commit

Permalink
review: rename ordc to odrc
Browse files Browse the repository at this point in the history
  • Loading branch information
nijmra committed Oct 14, 2024
1 parent 0388613 commit ec7f129
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace ODPC.Apis.Odrc
{
public interface IOrdcClientFactory
public interface IOdrcClientFactory
{
HttpClient Create(OdpUser user, string handeling);
}

public class OrdcClientFactory(IHttpClientFactory httpClientFactory, IOptions<OdrcConfig> options) : IOrdcClientFactory
public class OdrcClientFactory(IHttpClientFactory httpClientFactory, IOptions<OdrcConfig> options) : IOdrcClientFactory
{
private readonly IHttpClientFactory _httpClientFactory = httpClientFactory;
private readonly IOptions<OdrcConfig> _options = options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
namespace ODPC.Features.Publicaties.PublicatieRegistreren
{
[ApiController]
public class PublicatieRegistrerenController(OdpUser user, IOrdcClientFactory clientFactory) : ControllerBase
public class PublicatieRegistrerenController(OdpUser user, IOdrcClientFactory clientFactory) : ControllerBase
{
private readonly IOrdcClientFactory _clientFactory = clientFactory;
private readonly IOdrcClientFactory _clientFactory = clientFactory;

[HttpPost("api/v1/publicaties")]
public async Task<IActionResult> Post(Publicatie publicatie)
Expand Down
2 changes: 1 addition & 1 deletion ODPC.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
var connStr = $"Username={builder.Configuration["POSTGRES_USER"]};Password={builder.Configuration["POSTGRES_PASSWORD"]};Host={builder.Configuration["POSTGRES_HOST"]};Database={builder.Configuration["POSTGRES_DB"]};Port={builder.Configuration["POSTGRES_PORT"]}";
builder.Services.AddDbContext<OdpcDbContext>(opt => opt.UseNpgsql(connStr));
builder.Services.Configure<OdrcConfig>(builder.Configuration.GetSection("Odrc"));
builder.Services.AddScoped<IOrdcClientFactory, OrdcClientFactory>();
builder.Services.AddScoped<IOdrcClientFactory, OdrcClientFactory>();



Expand Down

0 comments on commit ec7f129

Please sign in to comment.