コード例 #1
0
 public override bool IsContextOK(Context ctx, IConstructionCallMessage msg)
 {
     SyncContext sctx = SyncContext.GetContext ();
     if (sctx == null || (sctx.GetType() != contextType)) {
         syncContext = (SyncContext) Activator.CreateInstance (contextType);
         return false;
     }
     else {
         syncContext = sctx;
         return true;
     }
 }
コード例 #2
0
 public static void SetContext(SyncContext ctx)
 {
     context = ctx;
 }
コード例 #3
0
 public SyncContextDispatchSink(IMessageSink nextSink, SyncContext syncContext)
 {
     this.nextSink = nextSink;
     this.syncContext = syncContext;
 }