Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any way to check stream asynchronously , or have some event for its change?
Thanks in advance.
Posted

1 solution

This is a very simple matter or your code design.

There are no such events, no events in any stream classes at all, they are generally not much needed. If you need them, implement some wrapper around stream or stream writer class (classes) you want to use. Expose all methods you need and wrap stream (or stream writer) write methods you want to use in your own methods firing the events you can introduce in your wrapper class. Always use your wrapper(s) in your application code; don't use wrapped classes directly.

I hope you know how to declare, fire and consume events, otherwise you should not have asked this question.

—SA
 
Share this answer
 
v2
Comments
Oshtri Deka 13-May-11 3:45am    
True
Sergey Alexandrovich Kryukov 13-May-11 3:55am    
Thank you, Oshtri.
--SA
Olivier Levrey 13-May-11 3:49am    
Correct and good advice. 5.
Sergey Alexandrovich Kryukov 13-May-11 3:55am    
Thank you, Olivier.
--SA
Raj.rcr 13-May-11 3:57am    
Hello SA... Hope u r doing well.. I need ur help. Please check out the following post and do me a favor if u can..

http://www.codeproject.com/Questions/195010/using-tiff-image-in-asp-net.aspx

Thanks,
Raj

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900