示例#1
0
 public void SetValueDelayed(T value)
 {
     m_activeObject.EnsureNotOnBackgroundThread();
     m_activeObject.CallOnBackground(delegate { m_value = value; });
 }
 public override void Post(SendOrPostCallback d, object state)
 {
     m_activeObject.CallOnBackground(() => d(state));
 }
示例#3
0
 public Future Add(EventHandler <T> handler)
 {
     Contract.ThrowIfNull(handler);
     return(m_activeObject.CallOnBackground(delegate { m_event += handler; }));
 }