System.Data.SQLite

Check-in [dbdcdae6ae]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improve and correct embedded doc comments for the new SetAvRetry method.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: dbdcdae6ae41c1e1863b4af59ff9e7725f73af30
User & Date: mistachkin 2011-07-13 17:23:26.084
Context
2011-07-14
12:34
Make sure the test for SetAvRetry tests using non-default settings for both the count and interval. check-in: 53756a8822 user: mistachkin tags: trunk
2011-07-13
17:23
Improve and correct embedded doc comments for the new SetAvRetry method. check-in: dbdcdae6ae user: mistachkin tags: trunk
16:35
Support the new SQLITE_FCNTL_WIN32_AV_RETRY file control. Add interop project files for static linking to the VC runtime. check-in: c90bf3896e user: mistachkin tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteConnection.cs.
1091
1092
1093
1094
1095
1096
1097
1098

1099



1100
1101
1102
1103
1104
1105
1106
1107
      _password = databasePassword;
    }

    /// <summary>
    /// Queries or modifies the number of retries or the retry interval (in milliseconds) for
    /// certain I/O operations that may fail due to anti-virus software.
    /// </summary>
    /// <param name="count">The number of times to retry the I/O operation.</param>

    /// <param name="interval">The number of milliseconds to wait before retrying the I/O operation.</param>



    /// <returns></returns>
    public int SetAvRetry(ref int count, ref int interval)
    {
        if (_connectionState != ConnectionState.Open)
            throw new InvalidOperationException(
                "Database must be opened before changing the AV retry parameters.");

        int rc;







|
>
|
>
>
>
|







1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
      _password = databasePassword;
    }

    /// <summary>
    /// Queries or modifies the number of retries or the retry interval (in milliseconds) for
    /// certain I/O operations that may fail due to anti-virus software.
    /// </summary>
    /// <param name="count">The number of times to retry the I/O operation.  A negative value
    /// will cause the current count to be queried and replace that negative value.</param>
    /// <param name="interval">The number of milliseconds to wait before retrying the I/O
    /// operation.  This number is multiplied by the number of retry attempts so far to come
    /// up with the final number of milliseconds to wait.  A negative value will cause the
    /// current interval to be queried and replace that negative value.</param>
    /// <returns>Zero for success, non-zero for error.</returns>
    public int SetAvRetry(ref int count, ref int interval)
    {
        if (_connectionState != ConnectionState.Open)
            throw new InvalidOperationException(
                "Database must be opened before changing the AV retry parameters.");

        int rc;