Example #1
0
        public void ShouldFlushState()
        {
            globalStateUpdateTask.Initialize();

            globalStateUpdateTask.FlushState();

            stateManagerMock.Verify(x => x.Flush(), Times.Once);
        }
Example #2
0
        public void Dispose()
        {
            internalTopicManager?.Dispose();

            foreach (var t in tasks.Values)
            {
                t.Close();

                // Remove local state store for this task
                if (t.IsPersistent)
                {
                    Directory.Delete(t.Context.StateDir, true);
                }
            }

            if (hasGlobalTopology)
            {
                globalTask.FlushState();
                globalTask.Close();
            }

            IsRunning = false;
        }
Example #3
0
 public void Flush()
 {
     globalTask.FlushState();
 }