コード例 #1
0
ファイル: LogStore.cs プロジェクト: dox0/DotNet471RS3
        void CommonInitialize(bool writeOnly)
        {
            if (!ThreadPool.BindHandle(this.logFile))
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
                          new IOException(SR.GetString(SR.IO_BindFailed)));
            }

            this.logManagement = new LogManagementAsyncResult(this);

            if (!writeOnly)
            {
                CLFS_INFORMATION info;
                GetLogFileInformation(out info);
                this.archivable = ((info.Attributes &
                                    Const.FILE_ATTRIBUTE_ARCHIVE) != 0);

                this.extents   = new LogExtentCollection(this);
                this.logPolicy = new LogPolicy(this);
            }
        }
コード例 #2
0
ファイル: LogStore.cs プロジェクト: JianwenSun/cc
        void CommonInitialize(bool writeOnly)
        {
            if (!ThreadPool.BindHandle(this.logFile))
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
                    new IOException(SR.GetString(SR.IO_BindFailed)));
            }

            this.logManagement = new LogManagementAsyncResult(this);

            if (!writeOnly)
            {
                CLFS_INFORMATION info;
                GetLogFileInformation(out info);
                this.archivable = ((info.Attributes &
                                    Const.FILE_ATTRIBUTE_ARCHIVE) != 0);

                this.extents = new LogExtentCollection(this);
                this.logPolicy = new LogPolicy(this);
            }
        }