This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; | |
| namespace RStein.Async.Schedulers | |
| { | |
| public class ProxyScheduler : TaskScheduler, IProxyScheduler, IDisposable | |
| { | |
| private readonly ITaskScheduler m_realScheduler; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Threading.Tasks; | |
| namespace RStein.Async.Schedulers | |
| { | |
| public interface IProxyScheduler | |
| { | |
| bool DoTryExecuteTask(Task task); | |
| TaskScheduler AsTplScheduler(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ts = myAgentList.ToObservable().Concat( | |
| Observable.FromEventPattern | |
| <NotifyCollectionChangedEventHandler, NotifyCollectionChangedEventArgs> | |
| ( | |
| handler => myAgentList.CollectionChanged += handler, | |
| handler => myAgentList.CollectionChanged -= handler | |
| ) | |
| .Where(e => e.EventArgs.Action == NotifyCollectionChangedAction.Add) | |
| .SelectMany(c => c.EventArgs.NewItems.Cast<MyAgent>())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://twitter.com/jechtom/status/326325740503175169 | |
| using System; | |
| using System.Threading; | |
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { | |
| Console.Error.WriteLine("Dummy error init"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Dynamic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Security.AccessControl; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Mormegill_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://twitter.com/mormegil_cz/status/321991296019484672 | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Dynamic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Mormegill_test | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://twitter.com/mormegil_cz/status/321991296019484672 | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Dynamic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Mormegill_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rodic(josef, tana). | |
| rodic(josef, sona). | |
| rodic(josef, petr). | |
| rodic(michaela, tana). | |
| rodic(michaela, sona). | |
| rodic(eva, michaela). | |
| rodic(pavel,michaela). | |
| rodic(miluska,josef). | |
| rodic(josefstarsi,josef). | |
| rodic(pavel, jitka). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace TaskWithRetry | |
| { | |
| internal class Program | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Pavel Machek - high level overview | |
| void WcfGpsPositionService::GetPositionData(const RilSimpleInfo& info, const wstring& networkCode, GSMPosition& position) | |
| { | |
| try | |
| { | |
| wstring toHashValue = m_appKey + info.CellId; | |
| string tempResult = MD5Hash::CalculateMD5Hash(toHashValue); |