Example #1
0
        public async Task Increment(CLDelegate.CLDispatch <int, int> clDispatch,
                                    CLDelegate.CLCommit <int> commit,
                                    MockState state,
                                    CLDelegate.CLGetters <int> clGetters,
                                    int payload)
        {
            await Task.Delay(TimeSpan.FromSeconds(5)).ContinueWith(async a =>
            {
                var test = clGetters("GetValue");

                state.Value += test;

                clDispatch("Decrement", 15);

                commit("Increment", 15);
            });
        }
Example #2
0
 public void Decrement(MockState state, int payload)
 {
     state.Value -= payload;
 }