Click here to Skip to main content
16,021,580 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: RegEx to replace all characters of a name after 3rd character Pin
Medicomart16-Jan-17 19:03
professionalMedicomart16-Jan-17 19:03 
AnswerRe: RegEx to replace all characters of a name after 3rd character Pin
Thomas Daniels5-Jan-17 1:00
mentorThomas Daniels5-Jan-17 1:00 
QuestionWhat are some .Net framework classes / interfaces that every developer should know? Pin
James_Parsons22-Dec-16 8:38
James_Parsons22-Dec-16 8:38 
AnswerRe: What are some .Net framework classes / interfaces that every developer should know? Pin
Gerry Schmitz22-Dec-16 16:11
mveGerry Schmitz22-Dec-16 16:11 
AnswerRe: What are some .Net framework classes / interfaces that every developer should know? Pin
Thomas Daniels1-Jan-17 1:02
mentorThomas Daniels1-Jan-17 1:02 
QuestionAn architectural question that I have related to FileSystemWatcher Pin
indian14321-Dec-16 5:04
indian14321-Dec-16 5:04 
AnswerRe: An architectural question that I have related to FileSystemWatcher Pin
Dave Kreskowiak21-Dec-16 5:59
mveDave Kreskowiak21-Dec-16 5:59 
AnswerRe: An architectural question that I have related to FileSystemWatcher Pin
jschell26-Dec-16 5:55
jschell26-Dec-16 5:55 
indian143 wrote:
there are 10 different root folders where there are going to be at least 200 files are dropped everyday


I doubt that is significant. Even presuming that you mean 2000 (200 x 10) given a 'day' that means overlaps within the time period of a single database write is very small.

And events can handle more than one at a time (real time) but there are limits.

Given the failure potential is so low it probably isn't worth your time unless you do have the time. If you do have the time or perhaps you have a real concern (based on realistic data) about growth then you can follow the suggestion in the other post.

Basics of what is in the other post.
1. Create a thread safe queue that you can put a request one.
2. Your event handler puts a request on the queue. Your event handler does not interact with the database at all.
3. Create another handler that reads from the queue. It blocks until a request is on the queue. Each request gets written to the queue.

On shut down the application must do the following
1. Shut down the event handler
2. Wait until the queue is empty
3. Exit.

And just to clarify if it really is only 200 a day, your real expectation of growth is low and you do nothing but add a record to the database. And there are no other extenuating circumstances like very poor networks, database is half a world away, etc, then I wouldn't bother spending the time. Between normal business processing, file system overhead, and speed of modern machines it can easily keep up with 200 a day.

You time might be better spent worrying about what happens if your application is not running for a while and then you start it up - how do you resolve what is missing.
QuestionCreating classes for the Database using EntityFramework 6 Pin
indian14319-Dec-16 7:17
indian14319-Dec-16 7:17 
AnswerRe: Creating classes for the Database using EntityFramework 6 Pin
Richard Deeming19-Dec-16 7:38
mveRichard Deeming19-Dec-16 7:38 
QuestionTransactionscope in c# is not support signalr, push notifications? Pin
Sathiya moorthi18-Dec-16 23:29
Sathiya moorthi18-Dec-16 23:29 
AnswerRe: Transactionscope in c# is not support signalr, push notifications? Pin
Richard Deeming19-Dec-16 2:15
mveRichard Deeming19-Dec-16 2:15 
QuestionError during debugging Pin
Member 1282257317-Dec-16 0:59
Member 1282257317-Dec-16 0:59 
SuggestionRe: Error during debugging Pin
Richard MacCutchan17-Dec-16 1:59
mveRichard MacCutchan17-Dec-16 1:59 
AnswerRe: Error during debugging Pin
Gerry Schmitz18-Dec-16 6:27
mveGerry Schmitz18-Dec-16 6:27 
GeneralRe: Error during debugging Pin
Member 1282257323-Dec-16 5:59
Member 1282257323-Dec-16 5:59 
GeneralRe: Error during debugging Pin
Member 1282257324-Dec-16 0:53
Member 1282257324-Dec-16 0:53 
GeneralRe: Error during debugging Pin
Gerry Schmitz26-Dec-16 5:21
mveGerry Schmitz26-Dec-16 5:21 
QuestionQuestion about GitExtensions Pin
indian14315-Dec-16 13:02
indian14315-Dec-16 13:02 
AnswerRe: Question about GitExtensions Pin
Pete O'Hanlon15-Dec-16 21:02
mvePete O'Hanlon15-Dec-16 21:02 
AnswerRe: Question about GitExtensions Pin
Richard Deeming16-Dec-16 1:58
mveRichard Deeming16-Dec-16 1:58 
AnswerRe: Question about GitExtensions Pin
Gerry Schmitz18-Dec-16 6:31
mveGerry Schmitz18-Dec-16 6:31 
GeneralRe: Question about GitExtensions Pin
indian14319-Dec-16 7:21
indian14319-Dec-16 7:21 
QuestionLog in as different user option on the Windows Server 2012 R2 while Remote Desktoping Pin
indian14312-Dec-16 9:55
indian14312-Dec-16 9:55 
AnswerRe: Log in as different user option on the Windows Server 2012 R2 while Remote Desktoping Pin
Dave Kreskowiak13-Dec-16 2:18
mveDave Kreskowiak13-Dec-16 2:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.