C
C#14mo ago
batsky

❔ ✅ ASP.NET Core - Implementing an API in CQRS pattern

Hey everyone, I am trying to make API integration to my ASP.NET Core app. I did something but I am not sure about is this usage is valid or not. Here is the gist of my code, and the documentation of api (you can check if you want detailed information) can you criticise and give me your opinions. https://gist.github.com/OnurSerbes/a375fc9e5edc9c199b65809d2b51bcdf https://developers.facebook.com/docs/marketing-apis/overview if you want you can share your comments in here, or to stackoverflow. https://stackoverflow.com/questions/76288515/asp-net-core-implementing-an-api-in-cqrs-pattern
Gist
Demo for HttpClient API integration
Demo for HttpClient API integration. GitHub Gist: instantly share code, notes, and snippets.
Meta for Developers
Overview - Meta Marketing API - Documentation - Meta for Developers
Learn how the Marketing APIs let you create and manage ads, generate reports, find new customers, and manage your audiences.
Stack Overflow
ASP.NET Core - Implementing an API in CQRS pattern
I am a junior ASP.NET Core developer. We have a project that uses CQRS pattern/architecture/design. Normally I can easily implement my MYSQL (with Dapper) queries to my controller without a problem...
6 Replies
Xan.Nava
Xan.Nava14mo ago
string accessToken = "your-access-token"; Are you familiar with loading keys from windows environment variables? Or linux if this will live on linux.
batsky
batsky14mo ago
not much, but in our project the special variables like tokens, keys egt. We will store them in special files like properties for security concerns This is just demo so I didn't wanted try to make security better, I will add this later. I guess you wanted to mension this right ?
Pobiega
Pobiega14mo ago
That. Also, I don't think the access token should be passed into the command like this, rather fetched in the handler preferably from an IOptions<YourServiceOptions> oh, you crossposted in three places. I see. See the open #code-review post instead
batsky
batsky14mo ago
Yes, sorry for that. I posted after I see the #code-review suggestion in general chat. I forget to close it in here
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Unable to process post request with asp.net coreI am making use of a document processing component (https://ej2.syncfusion.com/react/documentation/d❔ Socket connection in WPF applicationHello, I'm fairly new to the C# environment and there's something I can't figure out: I created a co❔ Force log out the user after account deletion with JWT bearer auth.Hello, I'm working on adding a feature that allows administrators to delete users. As things current✅ I updated to .NET 8 and now it broke...Hello i thought about .NET 8 and it has very usefull features so i want to update to it but sadly wh✅ Compiling ASP.NET 7 app using Github ActionsI am trying to compile my ASP.NET 7 application solution using Github actions but am getting the fol❔ How to handle a group of variables that need to stay together within a class?How should I handle a group of data that needs to stay together within a class? The data is a set of❔ .NET MAUI MVVM Navigation and pass Object to new page, Throw Exception: Missing methodProgram crash after this code ```[RelayCommand] async Task GoApartmentDetail(Apartment apart❔ .NET Maui Blazor: Render a Website inside the Application and get its cookies.Hello, how can I have a Webview inside the Application itself? It cannot be an iframe since I need t❔ run code on serverhow to run c# code on server...is vps is needed or simple hosting...which server is best in ur view❔ WPF Canvas starts getting choppy and laggy after drawing a long lineHello, I am making an application with a feature that lets you draw on the screen, however after dra