Click here to Skip to main content
15,887,350 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: RegEx to replace all characters of a name after 3rd character Pin
Dave Kreskowiak4-Jan-17 19:32
mveDave Kreskowiak4-Jan-17 19:32 
GeneralRe: RegEx to replace all characters of a name after 3rd character Pin
Pete O'Hanlon4-Jan-17 20:44
mvePete O'Hanlon4-Jan-17 20:44 
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 
Hi all,

I have written a FileSystemWatcher console application, I could able to monitor all changes happening in the folder that's assigned to it and all its SubFolders, if we consider the parent Folder as Root folder, then in our organization there are 10 different root folders where there are going to be at least 200 files are dropped everyday in root folders and sub folders combined.

Hence what I did was I put a table in which admin user can add root folders and start the application then I am using array of FileSystemWatcher and to all these FileSystemWacher objects I am assigning same OnCreated, OnChanged events which in turn are going to call a same function which does only a small thing that's it puts an Entry into Table with FullPath of the file that's dropped with IsProcessed flag false, there's another Application that run different than this and processes those files which are in this Table with flag false and makes the flag to true, anyways my question is not about the second application, but first application that has FileSystemWatcher array.

My question when all those at least 10 different FileSystemWatcher objects assigned with same OnCreated, OnChanged events and in turn those events are calling the same method which is inserting a record into the table, I am worried that can it create any problems in any cases like if files dropped same times or locking etc. But one +ve thing is the method which is being called by the Oncreated and Onchanged events is not doing anything other than simply writing a record, maybe some milliseconds task, the possibility of Files being dropped at the same time even with milliseconds accuracy is minimum.

I am using array of FileSystemWatcher objects to reduce the number of Applications that would be running on the Server, I want to make one Application to start instead of making 10 applications to start.

Please advise me by anyways, a code snippet, a link or even a suggestion would be helpful, thanks in advance my friends.
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

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 
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 

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.