Example #1
0
        public async Task SyncSignalFuture_WithoutResult(int iteration)
        {
            LogStart(iteration);

            // Verify that sending a synchronous signal returning void
            // via a future works as expected when there's no delay
            // executing the signal.

            SyncSignal.Clear();

            var stub   = client.NewWorkflowFutureStub <ISyncSignal>();
            var future = await stub.StartAsync(SyncSignal.WorkflowDelay);

            await stub.SyncSignalAsync("signal-void", TimeSpan.Zero);

            await future.GetAsync();

            Assert.True(SyncSignal.SignalBeforeDelay);
            Assert.True(SyncSignal.SignalAfterDelay);
        }