Rx Challenge #2 (Solution)

2015/02/09

the solution of the challenge is, using the Switch operator (line 46): 1: 2: public void AvoidOverlappingStreams_Test() 3: { 4: /****************************************************** 5: * 6: * you start with Stream that create sub stream of string, 7: * each sub stream is built of single char representation. 8: * 9: ...
no comments

Async Transaction Scope on .NET 4.5.1

2015/02/05

even though C# async syntax let can dispose type on different thread with the using statementprivate static async Task RunAsync() { using (var conn = new SqlConnection(/* ... */)) { await conn.OpenAsync(); // ... } } unfortunately Transaction Scope (on .NET 4.5) didn't support completion on different thread. this issue fixed up on .NET 4.51 but instead of fixing it for the default scenario, you have to define it explicitly.using (var scope = new TransactionScope( ...
no comments

Rx Challenge #2

in the next RX Challenge you need to ovoid overlaps of charin the output stream. you start with Stream that create sub stream of string,each sub stream is built of single char representation. --#----------------@----------------*------------------    |                                                       #--##--###--####--#####--######--#######                             |                                                     @--@@--@@@--@@@@--                                                    |                                                    *---**---***--- you should find a way to get output stream wherelisten to the latest sub stream. the output stream should be look like: --#--##--###--@--@@--@@@-*---**---***--- in other words you have to avoid overlapping char. public void AvoidOverlappingStreams_Test() { /****************************************************** * * you start with...
4 comments