Click here to Skip to main content
15,887,683 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: How to find all files of a certain type in Memory? Pin
Sonhospa6-Apr-16 0:43
Sonhospa6-Apr-16 0:43 
GeneralRe: How to find all files of a certain type in Memory? Pin
Richard MacCutchan6-Apr-16 2:26
mveRichard MacCutchan6-Apr-16 2:26 
GeneralRe: How to find all files of a certain type in Memory? Pin
Eddy Vluggen6-Apr-16 3:43
professionalEddy Vluggen6-Apr-16 3:43 
GeneralRe: How to find all files of a certain type in Memory? Pin
Sonhospa6-Apr-16 9:51
Sonhospa6-Apr-16 9:51 
GeneralRe: How to find all files of a certain type in Memory? Pin
Eddy Vluggen6-Apr-16 11:16
professionalEddy Vluggen6-Apr-16 11:16 
GeneralRe: How to find all files of a certain type in Memory? Pin
Sonhospa7-Apr-16 5:03
Sonhospa7-Apr-16 5:03 
QuestionC++ code which is callable from C#, returns a Stream and maintains state. Pin
Duncan 8429-Mar-16 10:52
Duncan 8429-Mar-16 10:52 
AnswerRe: C++ code which is callable from C#, returns a Stream and maintains state. Pin
Nathan Minier30-Mar-16 1:16
professionalNathan Minier30-Mar-16 1:16 
If you want to maintain state you can do it in one of 2 ways.

If your application needs to regularly perform tasks whether a method is called or not, a Windows Service is the correct approach and you can communicate with it using some form of IPC. Microsoft gives an overview of various .NET IPC techniques at:
Interprocess Communications (Windows)[^]

The other mechanism that you can use is a persistence framework of some sort; i.e a database connection or a file. The easiest route would be to create a StateTracker object that serializes to a specific file. Load that file when your application is called and modify it as appropriate.

Actually, there's another pattern that you could follow, and that would be for your MVC application to track state and pass it to the class library when it calls methods. Bear in mind that IIS will manage memory for you, so may clear out any cache that you define, but this way you can leverage the same database used by your MVC app to store a StateTracker.
AnswerRe: C++ code which is callable from C#, returns a Stream and maintains state. Pin
jschell31-Mar-16 9:40
jschell31-Mar-16 9:40 
Questionhow to design this scenario? Pin
girishmeena15-Mar-16 9:34
girishmeena15-Mar-16 9:34 
AnswerRe: how to design this scenario? Pin
Richard MacCutchan15-Mar-16 10:42
mveRichard MacCutchan15-Mar-16 10:42 
AnswerRe: how to design this scenario? Pin
jschell31-Mar-16 9:44
jschell31-Mar-16 9:44 
SuggestionWhat if “static” is inferred? Pin
MathuSum Mut24-Feb-16 10:39
professionalMathuSum Mut24-Feb-16 10:39 
GeneralRe: What if “static” is inferred? Pin
jschell6-Mar-16 8:19
jschell6-Mar-16 8:19 
QuestionEsb experiences Pin
Tom Wauters22-Feb-16 6:59
Tom Wauters22-Feb-16 6:59 
AnswerRe: Esb experiences Pin
jschell6-Mar-16 8:24
jschell6-Mar-16 8:24 
GeneralRe: Esb experiences Pin
Tom Wauters6-Mar-16 11:36
Tom Wauters6-Mar-16 11:36 
GeneralRe: Esb experiences Pin
jschell31-Mar-16 9:35
jschell31-Mar-16 9:35 
QuestionFile Sharing App Proposed Architecture Pin
Kevin Marois10-Feb-16 11:20
professionalKevin Marois10-Feb-16 11:20 
AnswerRe: File Sharing App Proposed Architecture Pin
Richard Deeming11-Feb-16 0:38
mveRichard Deeming11-Feb-16 0:38 
GeneralRe: File Sharing App Proposed Architecture Pin
Kevin Marois11-Feb-16 3:39
professionalKevin Marois11-Feb-16 3:39 
QuestionArchitecture - handling consecutive updates - Azure Pin
Rajeshjoseph9-Feb-16 5:13
Rajeshjoseph9-Feb-16 5:13 
AnswerRe: Architecture - handling consecutive updates - Azure Pin
Eddy Vluggen9-Feb-16 6:45
professionalEddy Vluggen9-Feb-16 6:45 
AnswerRe: Architecture - handling consecutive updates - Azure Pin
Gerry Schmitz9-Feb-16 17:40
mveGerry Schmitz9-Feb-16 17:40 
AnswerRe: Architecture - handling consecutive updates - Azure Pin
jschell12-Feb-16 12:21
jschell12-Feb-16 12: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.