N
Natalia DeBow
Hi,
I have a question in regards to using FileStream object in C# with .NET
Framework 1.1.
In my app, I have a server running under IIS and multiple clients connected
to the server. The server is a singleton. I need to create a log file for
the server and one per each connected client. Currently, most of the calls
b/w the client and the server are done asynchronously. To follow this
pattern I was thinking of using Async BeginWrite() and EndWrite() functions
to write to the client log files and the server log file as well. I have a
concern with preserving data integrity in the log files. I read on MSDN and
I can use FileStream.Lock method when I am writing to file, however, I am
concerned with using locks with async method calls. What would be the best
approach for my scenario?
Thanks so much,
Natalia
I have a question in regards to using FileStream object in C# with .NET
Framework 1.1.
In my app, I have a server running under IIS and multiple clients connected
to the server. The server is a singleton. I need to create a log file for
the server and one per each connected client. Currently, most of the calls
b/w the client and the server are done asynchronously. To follow this
pattern I was thinking of using Async BeginWrite() and EndWrite() functions
to write to the client log files and the server log file as well. I have a
concern with preserving data integrity in the log files. I read on MSDN and
I can use FileStream.Lock method when I am writing to file, however, I am
concerned with using locks with async method calls. What would be the best
approach for my scenario?
Thanks so much,
Natalia