Batuhan
Batuhan
CC#
Created by morry329# on 5/3/2025 in #help
Photo upload always fails
i think the problem is not creating the image,it's the showing them. Maybe you should check the correct url when passing it to img. for instance if you are working in local check for http://localhost.../imagePath/image.jpg
57 replies
CC#
Created by Sun「無用」 on 9/4/2024 in #help
Get route information on controller
U can use nameof()
50 replies
CC#
Created by Sun「無用」 on 9/3/2024 in #help
Unable to create DbContext
48 replies
CC#
Created by Sun「無用」 on 9/3/2024 in #help
Unable to create DbContext
As i see, you have not registered your infrastructure dependencies in program.cs
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.

// You should add these line to register infra
builder.Services.AddInfrastructure(builder.Configuration);

builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}

app.UseHttpsRedirection();

app.UseAuthorization();

app.MapControllers();

app.Run();
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.

// You should add these line to register infra
builder.Services.AddInfrastructure(builder.Configuration);

builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}

app.UseHttpsRedirection();

app.UseAuthorization();

app.MapControllers();

app.Run();
48 replies
CC#
Created by Batuhan on 8/30/2024 in #help
✅ Event-Driven-Architecture Cons Issue
thx for the help guys
16 replies
CC#
Created by Batuhan on 8/30/2024 in #help
✅ Event-Driven-Architecture Cons Issue
yes i know and it seems at first will only need for the fetch the order informations after checkout
16 replies
CC#
Created by Batuhan on 8/30/2024 in #help
✅ Event-Driven-Architecture Cons Issue
I will send request to client just to get the order informations
16 replies
CC#
Created by Batuhan on 8/30/2024 in #help
✅ Event-Driven-Architecture Cons Issue
yes that's what i needed
16 replies
CC#
Created by Batuhan on 8/30/2024 in #help
✅ Event-Driven-Architecture Cons Issue
or instead of making order service async using rabbitmq, i could use grpc between checkout and the ordering service.
16 replies
CC#
Created by Batuhan on 8/30/2024 in #help
✅ Event-Driven-Architecture Cons Issue
basically e-commerce websites when you order something after ordering you will be shown the order details and what i want to do is that. But also making this action async what i am trying to do. After my research i get the same results as you guys. In addition to these solutions i found out there is another way called sse (server-sent-event) which is linkedin and twitter uses it. I guess this will be the best option for me. What do you guys think ?
16 replies
CC#
Created by Core on 8/30/2024 in #help
✅ .NET Worker service doesn't load appsettings.json into a class
$close
20 replies
CC#
Created by LunaBot🌙 on 8/23/2024 in #help
✅ CSS and JS Files Not Recognized in ASP.NET Core Project
31 replies
CC#
Created by LunaBot🌙 on 8/23/2024 in #help
✅ CSS and JS Files Not Recognized in ASP.NET Core Project
No description
31 replies
CC#
Created by LunaBot🌙 on 8/23/2024 in #help
✅ CSS and JS Files Not Recognized in ASP.NET Core Project
@TeBeCo hey also want to mention that i am considering your suggestion and downloading duckduckgo
31 replies
CC#
Created by LunaBot🌙 on 8/23/2024 in #help
✅ CSS and JS Files Not Recognized in ASP.NET Core Project
you should have learnt about it
31 replies
CC#
Created by LunaBot🌙 on 8/23/2024 in #help
✅ CSS and JS Files Not Recognized in ASP.NET Core Project
agree with him
31 replies
CC#
Created by LunaBot🌙 on 8/23/2024 in #help
✅ CSS and JS Files Not Recognized in ASP.NET Core Project
Could you share your file path and the code that you import them.
31 replies
CC#
Created by drei3837 on 8/19/2024 in #help
✅ SignalR in a background service
got it
41 replies
CC#
Created by drei3837 on 8/19/2024 in #help
✅ SignalR in a background service
btw you were 100% right, i was looking how to use authentication on hub and the first i've looked at the ai to find the solution. Now i noticed that microsoft has clean explanation about that :/ https://learn.microsoft.com/en-us/aspnet/core/signalr/authn-and-authz?view=aspnetcore-8.0
41 replies