Reddit » .NET
1,106 FOLLOWERS
Reddit is a network of communities based on people's interests. A sub-Reddit for discussion and news about Dot Net technology. Check out the posts and share your knowledge and opinions on topics related to .NET. Find out where can you start with .NET as a web developer.
CIL Code Generation: Proper patterns to follow for dynamic type awareness within binary expressions?
Reddit » .NET
20m ago
Hobby project to create a CIL compiler for Lox. I have much of the basic code generation infrastructure up and running (parsing, reference resolution, basic static semantic checker, and basic code generation).
I'm having a problem when generating code for binary expressions (+, - , *, / for Double math, + for string concat, etc). Since Lox is a dynamically typed language, I am attempting to determine the runtime type of the value type on the stack. Are there accepted best practices/rules for how to do this? My knowledge of the CIL spec is rudimentary. I have been attempting to use the CIL Opc ..read more
Reddit » .NET
20m ago
Service 1 publishes an event.
Service 2 is subscribed to this event.
An eventAggregator has been DI'ed into both within the Startup.cs class. However, I have to hit an endpoint on service 2 to get it to go into the constructor and 'set up'/instantiate.
I suspect my usage is wrong or I need to change how it is set in configureServices. Any help please?
Thanks
submitted by /u/rbrowning10
[visit reddit] [comments ..read more
Reddit » .NET
2h ago
Hey. Having some trouble with AJAX stuff in Razorpages.
I've got some kind of signature pad working, and it has it's own inbuilt "save" thing. Though, I'm trying to enter it into the Database on my server side... See the PasteBin for the code.
https://pastebin.com/gaWaqHBM
This is the specific signature pad code :
<canvas id="signature-pad" width="auto" height="auto"></canvas> <button id="clear">Clear</button> <button id="save">Save</button> <script src="https://cdn.jsdelivr.net/npm/signature_pad@4.0.0/dist/signature_pad.umd.min.js"></script> ..read more
Reddit » .NET
2h ago
I'm a programmer who would love to learn asp.net. I vastly prefer learning a new language through project-based tutorials. I've heard that the Microsoft Documentation is a good place to start, but does it actually serve this purpose?
submitted by /u/Cyasta
[visit reddit] [comments ..read more
Reddit » .NET
2h ago
Hello, my classes assigned me a web services API project in ASP.NET Core, but I’m encountering some issues. The problem is that the ‘clientes’ table I’m working with has 5 fields, and one of them is ‘idpais’ (country ID) with a data type of ‘char(3)’. When I make a GET request, it lists the table with country codes, but I’ve created a stored procedure (SP) that correctly lists the country names from the ‘paises’ table. However, when I make a POST request, the client table lists the country names, but it doesn’t allow me to save a new client. I’ve tried using an SP for merging data, but it’s n ..read more
Reddit » .NET
5h ago
I recently started learning C# and i have been using Visual Studio Code on my Linux Mint computer. Is there a way i can use Windows Forms and Xamarin on Linux. I tried updating .Net, installing mono among other things. i had come to a conclusion that Dotnet is just limited on linux. is there a way or i have to rely on Windows on this one
submitted by /u/Artistic_Flatworm_98
[visit reddit] [comments ..read more
Reddit » .NET
7h ago
I am have split my web api into a 3 layer architecture so I have my controller layer, my services layer, and my repository layer.
My controller layer receives json as parameters and binds it to the DTO model for that resource. The DTO for incoming data has data annotations included such as Json property name so it binds correctly, has some required fields for when they cannot be null, etc. For sending data my endpoint will send the DTO model as JSON. When it is a new item being created I typically am creating a separate upload/insert version of the DTO because some fields might not be availab ..read more
Reddit » .NET
7h ago
im talking about js-level of dev experience, im tired of saving and recompiling everytime i do small changes in the backend, in nextjs, people can just ctrl s and debug all changes they made, even the backend, i already have RazorRuntimeCompilation but its not enough, compiling takes forever and I have to fetch data if the view has models that need to be fetched from the dbcontext, the developer experience is just slow, I'm running on nvme and i9, my hardware is more than capable for the next upcoming years but development with ASP Core is just really slow
can someone share their tools / hack ..read more
Reddit » .NET
7h ago
I am using quartz.net scheduling package in .netcore6 web api application. App deployment environment is azure appservice (scale out instances). It works fine and as expected. Only issue i am facing is, after every deployment , the very first trigger fires job 2-5 times concurrently. The time difference between the concurrent calls ranges from few second to 2 minute. After this very first trigger, other trigger happens at defined intervals properly. Below is my quartz config. Any idea.
public static void ConfigureQuartzJobs(this WebApplicationBuilder builder) { var services = builder.Service ..read more