Beispiel #1
0
        /// <inheritdoc/>
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

            disposed = true;

            controller?.Dispose();
        }
Beispiel #2
0
        public void Dispose()
        {
            lock (statusLock)
            {
                if (isDisposed)
                {
                    return;
                }
                if (Status != AssemblyRunnerStatus.Idle)
                {
                    throw new InvalidOperationException("Cannot dispose");
                }
                isDisposed = true;
            }

            controller?.Dispose();
            discoveryCompleteEvent?.Dispose();
            executionCompleteEvent?.Dispose();
        }