Mercurial > pub > ImplabNet
comparison Implab/SyncContextPromise.cs @ 106:d4e38929ce36 v2
promises refactoring
author | cin |
---|---|
date | Mon, 10 Nov 2014 18:00:28 +0300 |
parents | 279e226dffdd |
children | 2573b562e328 |
comparison
equal
deleted
inserted
replaced
105:4d308952fd5e | 106:d4e38929ce36 |
---|---|
12 public SyncContextPromise(SynchronizationContext context, IPromise parent) | 12 public SyncContextPromise(SynchronizationContext context, IPromise parent) |
13 : base(parent) { | 13 : base(parent) { |
14 Safe.ArgumentNotNull(context, "context"); | 14 Safe.ArgumentNotNull(context, "context"); |
15 m_context = context; | 15 m_context = context; |
16 } | 16 } |
17 protected override void InvokeHandler(HandlerDescriptor handler) { | 17 protected override void InvokeHandler(AbstractHandler handler) { |
18 m_context.Post(x => base.InvokeHandler(handler),null); | 18 m_context.Post(x => base.InvokeHandler(handler),null); |
19 } | 19 } |
20 } | 20 } |
21 } | 21 } |
22 | 22 |