New answers tagged

0 votes

Designing inter class tasking in c#

An obvious candidate is using some type of message passing. A potential downside with this, and most concurrent solutions, is that it can be more difficult to debug if you do not have a nice, ...
  • 3,169
0 votes

Designing inter class tasking in c#

I don't know how familiar you are with ASP.NET, because while it's not the same thing it faces many of the same challenges: requests come in and have to be routed to services. You are going to end up ...
  • 10.2k
0 votes

Why is it allowed to refer .net framework libraries in a .net standard library?

This works due to the .NET Framework compatibility mode: https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0#net-framework-compatibility-mode TLDR; it might work, but ...
0 votes

Improving performance of C# Azure function

I have read that List objects can be resource-intensive compared to simple preset arrays I wanted to address this, because it illustrates the difficulty understanding the differences in scales a ...
  • 3,169
3 votes

Improving performance of C# Azure function

For a function which involves heavy data transfer over a network external storage access to all the data processed it is extremely unlikely switching between lists and arrays in C# will result in ...
  • 194k
0 votes

Improving performance of C# Azure function

Difficult to say without full investigation, but I would hazard a guess that the type of c# object you are casting your data to is not significant. My number one thing to check would be the json ...
  • 68.9k
0 votes

How can I protect an SQL connection string in a client-side application?

Depending on your needs, the ProtectedData class might be what you want. It encrypts the data using the credentials of the logged in user and it saves it on that machine. So decoding your application ...
0 votes

How can I protect an SQL connection string in a client-side application?

A few ideas about "quick-and-dirty" APIs that could be built without much effort. Note that these will never be as secure as a purpose-built API, and that is the CORRECT way to go. However, ...
  • 5,270
30 votes

How can I protect an SQL connection string in a client-side application?

There are two options I can see: The "modern" option: As Philip Kendall explains, don't. Do not directly connect to the database from the client. Instead, have a dedicated backend service ...
  • 9,998
4 votes

How can I protect an SQL connection string in a client-side application?

In general, we should not be trying to provide a direct database connections from a client to a database server; unless the client itself is a database client. So, one option would be to provide a ...
  • 199
71 votes

How can I protect an SQL connection string in a client-side application?

You don't. You put your SQL Server behind some sort of (probably web) API and use any of the numerous methods for securing an API. Anything which exists on a client's machine is not secure.
1 vote

Separating Application (Business Logic) Layer to Multiple Module Layers in Clean Architecture

I haven't found any resources that mention to separate multiple Application Module Layers. That's probably because those components are usually not called "layers", just modules or "...
  • 194k

Top 50 recent answers are included