Exemple #1
0
            /// <inheritdoc/>
            protected override void Dispose(bool disposing)
            {
                if (disposing)
                {
                    accessor?.Dispose();
                    accessor = null;
                }

                writer.ReleaseReadLock(version);
                base.Dispose(disposing);
            }
            protected override void Dispose(bool disposing)
            {
                if (disposing)
                {
                    accessor.SafeMemoryMappedViewHandle.ReleasePointer();
                    accessor.Dispose();
                    mappedFile.Dispose();
                }

                ptr = default;
                writer.ReleaseReadLock(version);
            }