コード例 #1
0
 public CallDetails(ActionQueue actionQueue, IServiceActorWrapper target, object wrappedObject, string typeOfObjectToWrap, Action action)
 {
     ActionQueue        = actionQueue;
     Target             = target;
     WrappedObject      = wrappedObject;
     TypeOfObjectToWrap = typeOfObjectToWrap;
     Action             = action;
 }
コード例 #2
0
        public InvocationItem(
            Func <Task> action,
            IServiceActorWrapper target,
            string typeOfObjectToWrap,
            bool keepContextForAsyncCalls = true,
            bool blockingCaller           = true)
        {
            ActionAsync              = action;
            Target                   = target;
            TypeOfObjectToWrap       = typeOfObjectToWrap;
            KeepContextForAsyncCalls = keepContextForAsyncCalls;
            Async          = true;
            BlockingCaller = blockingCaller;

            _asyncAutoResetEvent = new AsyncAutoResetEvent(false);
        }
コード例 #3
0
 public InvocationItem(
     Action action,
     IServiceActorWrapper target,
     string typeOfObjectToWrap,
     bool keepContextForAsyncCalls = true,
     bool async = false)
 {
     Action                   = action;
     Target                   = target;
     TypeOfObjectToWrap       = typeOfObjectToWrap;
     KeepContextForAsyncCalls = keepContextForAsyncCalls;
     if (async)
     {
         _asyncAutoResetEvent = new AsyncAutoResetEvent(false);
     }
     else
     {
         _autoResetEvent = new AutoResetEvent(false);
     }
 }