M
Muj Beg
Hi All,
For various reasons, I have been trying to get a closer look into Async
file IO implementation of the framework. Am I correct in assuming that the
Rotor (http://www.dotnet247.com/247reference/System/IO/FileStream/__rotor)
implementation is a fair (if not exact) representation of the workings of
this class? If so, I am failing to see how async IO works!
For example, in the rotor code, the variable "_canUseAsync" seems to be
set to false all the time. Further, if we trace the call-graph of
FileStream.BeginWrite(), it always ends up calling WriteFileNative(),
passing null for the NativeOverlapped paramater!
Obvisouly, I am missing something here. But I can't figure out what that
is!
Thanks,
Muj Beg
For various reasons, I have been trying to get a closer look into Async
file IO implementation of the framework. Am I correct in assuming that the
Rotor (http://www.dotnet247.com/247reference/System/IO/FileStream/__rotor)
implementation is a fair (if not exact) representation of the workings of
this class? If so, I am failing to see how async IO works!
For example, in the rotor code, the variable "_canUseAsync" seems to be
set to false all the time. Further, if we trace the call-graph of
FileStream.BeginWrite(), it always ends up calling WriteFileNative(),
passing null for the NativeOverlapped paramater!
Obvisouly, I am missing something here. But I can't figure out what that
is!
Thanks,
Muj Beg