Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [.net-core]

.NET Core is a lean, composable and cross-platform framework for building web and cloud applications. It is fully open source and available on GitHub (https://github.com/dotnet/core). Applications in .NET Core can be run and/or hosted on Linux and MacOS under .NET Core.

2
votes
1answer
102 views

Should .NET Core class libraries register their own implementations?

Our team had recently a big struggle of deciding whether it is a good practice or not for the .NET Core class libraries to register their own implementations by the fact of providing a ...
-3
votes
1answer
33 views

Defer insert data into a database

I need to insert some records into a database at a time when it normally it's not being used, what are some approaches I can take? I have considered using the SQL Server Agent to run some stored ...
-1
votes
2answers
150 views

If I use .Net Core 2.0 my software must by open software? [closed]

If I use .Net Core 2.0 my software must by 'open software' or what? Sorry for my English.
3
votes
3answers
452 views

Multithreading ( thread per area ) for an MMO server, good idea?

As a personal project, I'm setting up a MMO, and writing the server in C#/.NET Core. As of now my architecture is as follows: The world exists of different areas ( you can go from area to area trough ...
0
votes
1answer
124 views

Time-based Task scheduler engine

I am working on an enterprise level application. I have an event table in the database. I need to update my events' states in the database on a precise date and time. There may be 200 milliseconds ...
1
vote
3answers
240 views

Should it be a claim, a role or a policy?

The distinction between roles and claims is that roles describe a set of users and claims describe a property of a user. So there can be a role "Administrator", but there can also be a claim "...
3
votes
0answers
705 views

Unit Of Work with multiple database context

I have created an application (net core 2 & ef core) with Unit Of Work and Generic repository pattern. I used to have one database context but due to some business logic I had to create a second ...
2
votes
1answer
75 views

How best to organise a multitargeted VS solution being ported from .net Framework to both .net Framework+Core?

I'm not a native English speaker, and i'm new to .net Core. I have a task to port the logic of a WPF app to .Net Core while leaving this app working like previously. The app has approximately 70 ...
0
votes
0answers
56 views

Should I use CQRS in this case?

I'm building web API. I have a problem where input differs from the output, for example, input expects just the id and output returns entire object. Also, there are few things specific to the output ...
4
votes
1answer
181 views

How does a pure P2P node connect to other nodes

I'm working on my first P2P app using C# core and gRPC and I'm finding it difficult to understand the concepts of how nodes find each other and build a routing table. For my design I'd like to only ...
-2
votes
3answers
136 views

Platform independant ways of passing messages between executibles

I am working on an a data collector which could be called an API of some sorts, which is based on .Net Core 2.1 . It's job is to receive and pull (ask for) data from data collectors(executable, DLL,...
0
votes
0answers
23 views

How to unit test an SDL based frontend? Is it worth it? [duplicate]

I am currently beginning to create a small program/game in my free time and decided to try out SDL2 for my frontend/graphics code. I use the bindings from SDL2-CS, which is API-wise very close to the ...
0
votes
2answers
118 views

.NET Core: Does sending the same request multiple times as part of a stress test/load test make the test unreliable?

I've got a .NET Core application that takes HTTP requests. I'm a little bored, so I decided to stress-test it using West Wind Web Surge, and putting an example request as the body. My question is, ...
-1
votes
1answer
204 views

Server initiated communication to clients

I am trying to build an internet service that executes commands on the connected computers. Commands are initiated through a web-based dashboard. I currently have a REST API running with Laravel and ...
2
votes
1answer
175 views

.NET Core - Using Visual Studio And Keeping It Cross Platform

I've written a few things using .NET Core and like it a lot. So far, I have always used Visual Studio Code (which I think is very good and getting better all the time) and have enjoyed being able to ...
1
vote
1answer
425 views

Clean architecture with C#: A better design to perform validation in Value Objects

I'm creating an application which's architecture is based on Uncle Bob's Clean Architecture concepts and DDD. Note that it is BASED on DDD, so I gave myself the freedom to differ from strict DDD. To ...
2
votes
1answer
159 views

ASP.Net MVC When ViewModel properties vs Ajax calls in view

When is it more appropriate to use asynchronous calls from the view to get data vs prepopulating it server-side when creating the instance of the viewmodel? For instance, if my view has some dropdown ...
7
votes
2answers
1k views

Which data should be stored as `Claim`?

In ASP.Net Core, I find Claims authorization is very not-concrete method. We can add anything as ClaimType and ClaimValue pair; groups, firstname, lastname, brithdate, canAccessThisURI, isEditor, etc.....
2
votes
1answer
1k views

Table Per Concrete Type in Entity Framework Core

I'm trying to port code from entity framework 6 (EF6) to entity framework core 2.0 (EF-Core) and have ran into a dead end. In my EF6 code, I have a base class called Record which defines the base ...
1
vote
2answers
210 views

Is the length of a 'salt' a safety factor?

I'm trying to develop a small solution with the possibility of user authentication. Because this will be later hand over to other developers, i want the first iteration of the solution secure as ...
5
votes
2answers
2k views

What are the differences between .NET Framework, ASP.NET, .NET Core, ASP.NET Core and .NET Standard?

thanks to the .NET evolution, today we have a lot of different frameworks and technologies. I'm very confused about the differences about it. What is the difference between: .NET Framework ASP.NET ....
3
votes
0answers
1k views

How to use .NET Core in Production [closed]

We´re on the way to newly develop a WebApplication. We wan´t to make it a ASP.NET MVC app and we thought, that it will be the best approach to start with .NET Core. We started with project type ASP....
6
votes
2answers
2k views

ASP.Net Core: ViewComponent vs EditorTemplate/DisplayTemplate vs @inject

So I was searching for a good way in ASP.Net Core to create some "controls" that render into a view. So far I found there are 3 options, and I wanted to get some feedback on them. ViewComponents: ...
5
votes
2answers
2k views

In ASP.Net Core , how does one resolve circular references?

I was working on migrating over a project which uses a static logger, and a static email service. The email service logs emails sent, and the logger service sends an email if there are any logging ...
2
votes
0answers
557 views

What version numbers should I assign to builds on different branches as part of continuous integration for NET Core-based projects?

Overview I'm developing a number of .NET Core applications and I've met my current sprint commitments early. Until my next sprint begins, I'm using the slack to look into setting up a CI pipeline for ...
0
votes
1answer
866 views

making http request by ajax or c#

In my web application I need to get data from Wikidata, for example to show item's details. I thought about using ajax for this, but was't sure from where I should to call it, so I asked this question....
4
votes
2answers
1k views

should I create dbContext for my models or use existing ApplicationDbContext?

I'm developing web application using ASP.NET Core. When I use project template Web Application with Authentification: ApplicationDbContext class generated: public class ApplicationDbContext : ...
3
votes
2answers
491 views

Build and project patterns when targeting .NET Core and .NET Framework flavors?

We've got a solution with 20 .NET Framework 4.5 .DLLs (say helloworld01.dll to helloworld20.dll) where we want to add Linux support (to each) in the near future. We think this means each of those ...