Posts by TioRAC • 464 points
17 posts
-
0
votes1
answer83
viewsA: Allow Multiple Users per Browser
Maybe you have frameworks that do what you want, I never needed so I didn’t research, but now I think about a simple way to solve this, and it works regardless of the version and whether it is…
-
1
votes2
answers555
viewsA: Internationalization in DDD (Domain Driven Design) architecture
I think the best way is to use the Resource in the Domain Dlls, one for each language you want, then only handle the calls to use the right culture, if it is Asp.Net core, there is an example in the…
-
1
votes1
answer506
viewsA: How to "generate" multiple TCP clients using Threads in the same script?
Just create the thread. Creating threads in python depends only on creating a class inheriting the Thread class, very simple, see the example.…
-
9
votes8
answers2223
views -
2
votes1
answer350
viewsA: Openssl and ASP.NET Webapi
Man, the solution is not 100% safe, but it already has some protections, the ideal is to convince the use of SSL. (it is possible to obtain certificates valid at very affordable prices). But about…
-
1
votes1
answer139
viewsA: C# File encryption
There are many solutions for this that you want to do, as the question is very vague, I will pass only the encryption part. One of the simplest is to use symmetric encryption, where the same key is…
-
0
votes1
answer308
viewsA: Winsock (VB6) vs Socket in C#
You opened a socket called "Sock", made a connection, and sent a string, in this case the letter "V". But out of nowhere, you open a "Udpclient" and totally ignore the open socket called "Sock"...…
-
2
votes1
answer101
viewsA: CS1526 & CS8032 error
Initially it seems all right, but I realized that the minus sign of the expression "Transform.position. x - range" is a little higher, I used the https://dotnetfiddle.net/…
-
1
votes1
answer349
viewsA: Does Task.Run always start a new Thread?
The. NET uses a queue (FIFO) for TASK calls to the Task.Run method, if the calls are too close, it can use the same Thread for two Task.Run calls to boost performance. But it will always be a…
-
0
votes2
answers188
viewsA: C# Difference between Beginaccept and Acceptasync
In terms of performance, both are equal, the connection is always made using the class "Socket". But in the example of Beginxxx, it is a simpler solution, using the basic form of the use of Async.…
-
1
votes1
answer7747
viewsA: How to resolve the medium trust issue in Asp.net
I’ve had a similar problem. Some Hosts don’t even allow it. Try a test in Windows Azure: http://azure.microsoft.com/pt-br/ My last projects have used Azure as host, now they have servers in Brazil…
-
1
votes1
answer250
viewsA: Extractexistingfileaction.Overwritesilently is not overwriting the files in a particular folder
I should overwrite yes, but I can imagine two possible issues that might prevent you from overwriting the file that you might try to verify: The file is in use. The program is not allowed to delete…
-
2
votes1
answer445
viewsA: What’s the best way to sync desktop app data with webapi?
A library, I don’t know if it exists. But it’s easy to get around it. You will need to create an identifier (if it no longer exists) and a property to know if it has already been sent. When you…
-
2
votes1
answer214
viewsA: Save entities with one relationship to many using Webapi
The decision of one or two POST will almost always depend on the business. From what I understand, in your case I believe that the best would be two separate POST, allowing article to be…
-
0
votes2
answers1776
viewsA: Accessviolationexception - Read or write attempt in protected memory
This communication between managed and unmanaged memory programs can be complicated. And since it works with pointer in place of objects, then, kind of, anything can happen. I don’t know this…
-
0
votes3
answers335
viewsA: Layout Messagebox WPF
Use WPF Toolkit, then just change its layout with Style like any other Control: https://github.com/xceedsoftware/wpftoolkit/wiki/MessageBox…
-
6
votes1
answer350
viewsA: What’s the difference between using Savechanges() only once after adding data via a foreach and using inside the foreach?
In logic: In situation 1 you are putting everything into a single transaction, if a line gives error, the rollback will be about everything. Already in situation 2, it will save up to the line that…