public void ShouldFlushState() { globalStateUpdateTask.Initialize(); globalStateUpdateTask.FlushState(); stateManagerMock.Verify(x => x.Flush(), Times.Once); }
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; }
public void Flush() { globalTask.FlushState(); }