You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Channel/AsChannel.cs
+26-25Lines changed: 26 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,11 @@
10
10
namespaceOpen.Database.Extensions;
11
11
12
12
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability","CA2012:Use ValueTasks correctly",Justification="Intentionally running in the background.")]
13
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Roslynator","RCS1047:Non-asynchronous method name should not end with 'Async'.",Justification="<Pending>")]
13
14
publicstaticpartialclassChannelDbExtensions
14
15
{
15
16
/// <summary>
16
-
/// Iterates an IDataReader and writes each record as an array to an unbound channel.
17
+
/// Iterates an <see cref="IDataReader"/> and writes each record as an array to an unbound channel.
17
18
/// Be sure to await the completion.
18
19
/// </summary>
19
20
/// <param name="reader">The IDataReader to iterate.</param>
@@ -33,7 +34,7 @@ public static ChannelReader<object[]> AsChannel(this IDataReader reader,
33
34
}
34
35
35
36
/// <summary>
36
-
/// Iterates an IDataReader and writes each record as an array to an unbound channel.
37
+
/// Iterates an <see cref="IDataReader"/> and writes each record as an array to an unbound channel.
37
38
/// Be sure to await the completion.
38
39
/// </summary>
39
40
/// <param name="reader">The IDataReader to iterate.</param>
@@ -56,7 +57,7 @@ public static ChannelReader<object[]> AsChannel(this IDataReader reader,
56
57
}
57
58
58
59
/// <summary>
59
-
/// Iterates an IDataReader through the transform function and writes each record to an unbound channel.
60
+
/// Iterates an <see cref="IDataReader"/> through the transform function and writes each record to an unbound channel.
60
61
/// Be sure to await the completion.
61
62
/// </summary>
62
63
/// <typeparam name="T">The return type of the transform function.</typeparam>
@@ -80,7 +81,7 @@ public static ChannelReader<T> AsChannel<T>(this IDataReader reader,
80
81
}
81
82
82
83
/// <summary>
83
-
/// Iterates an IDataReader mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
84
+
/// Iterates an <see cref="IDataReader"/> mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
84
85
/// </summary>
85
86
/// <typeparam name="T">The return type of the transform function.</typeparam>
86
87
/// <param name="reader">The IDataReader to iterate.</param>
@@ -101,7 +102,7 @@ public static ChannelReader<T> AsChannel<T>(this IDataReader reader,
101
102
}
102
103
103
104
/// <summary>
104
-
/// Iterates an IDataReader mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
105
+
/// Iterates an <see cref="IDataReader"/> mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
105
106
/// </summary>
106
107
/// <typeparam name="T">The return type of the transform function.</typeparam>
107
108
/// <param name="reader">The IDataReader to iterate.</param>
@@ -124,7 +125,7 @@ public static ChannelReader<T> AsChannel<T>(this IDataReader reader,
124
125
}
125
126
126
127
/// <summary>
127
-
/// Iterates an IDataReader and writes each record as an array to an unbound channel.
128
+
/// Iterates an <see cref="IDataReader"/> and writes each record as an array to an unbound channel.
128
129
/// Be sure to await the completion.
129
130
/// </summary>
130
131
/// <param name="command">The command to acquire a reader from to iterate.</param>
@@ -144,7 +145,7 @@ public static ChannelReader<object[]> AsChannel(this IDbCommand command,
144
145
}
145
146
146
147
/// <summary>
147
-
/// Iterates an IDataReader and writes each record as an array to an unbound channel.
148
+
/// Iterates an <see cref="IDataReader"/> and writes each record as an array to an unbound channel.
148
149
/// Be sure to await the completion.
149
150
/// </summary>
150
151
/// <param name="command">The command to acquire a reader from to iterate.</param>
@@ -167,7 +168,7 @@ public static ChannelReader<object[]> AsChannel(this IDbCommand command,
167
168
}
168
169
169
170
/// <summary>
170
-
/// Iterates an IDataReader through the transform function and writes each record to an unbound channel.
171
+
/// Iterates an <see cref="IDataReader"/> through the transform function and writes each record to an unbound channel.
171
172
/// Be sure to await the completion.
172
173
/// </summary>
173
174
/// <typeparam name="T">The return type of the transform function.</typeparam>
@@ -191,7 +192,7 @@ public static ChannelReader<T> AsChannel<T>(this IDbCommand command,
191
192
}
192
193
193
194
/// <summary>
194
-
/// Iterates an IDataReader mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
195
+
/// Iterates an <see cref="IDataReader"/> mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
195
196
/// </summary>
196
197
/// <typeparam name="T">The return type of the transform function.</typeparam>
197
198
/// <param name="command">The command to acquire a reader from to iterate.</param>
@@ -212,7 +213,7 @@ public static ChannelReader<T> AsChannel<T>(this IDbCommand command,
212
213
}
213
214
214
215
/// <summary>
215
-
/// Iterates an IDataReader mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
216
+
/// Iterates an <see cref="IDataReader"/> mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
216
217
/// </summary>
217
218
/// <typeparam name="T">The return type of the transform function.</typeparam>
218
219
/// <param name="command">The command to acquire a reader from to iterate.</param>
@@ -235,7 +236,7 @@ public static ChannelReader<T> AsChannel<T>(this IDbCommand command,
235
236
}
236
237
237
238
/// <summary>
238
-
/// Iterates an IDataReader and writes each record as an array to an unbound channel.
239
+
/// Iterates an <see cref="IDataReader"/> and writes each record as an array to an unbound channel.
239
240
/// Be sure to await the completion.
240
241
/// </summary>
241
242
/// <param name="command">The IDataReader to iterate.</param>
@@ -253,7 +254,7 @@ public static ChannelReader<object[]> AsChannel(this IExecuteReader command,
253
254
}
254
255
255
256
/// <summary>
256
-
/// Iterates an IDataReader and writes each record as an array to an unbound channel.
257
+
/// Iterates an <see cref="IDataReader"/> and writes each record as an array to an unbound channel.
257
258
/// Be sure to await the completion.
258
259
/// </summary>
259
260
/// <param name="command">The IDataReader to iterate.</param>
@@ -274,7 +275,7 @@ public static ChannelReader<object[]> AsChannel(this IExecuteReader command,
274
275
}
275
276
276
277
/// <summary>
277
-
/// Iterates an IDataReader through the transform function and writes each record to an unbound channel.
278
+
/// Iterates an <see cref="IDataReader"/> through the transform function and writes each record to an unbound channel.
278
279
/// Be sure to await the completion.
279
280
/// </summary>
280
281
/// <typeparam name="T">The return type of the transform function.</typeparam>
@@ -296,7 +297,7 @@ public static ChannelReader<T> AsChannel<T>(this IExecuteReader command,
296
297
}
297
298
298
299
/// <summary>
299
-
/// Iterates an IDataReader mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
300
+
/// Iterates an <see cref="IDataReader"/> mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
300
301
/// </summary>
301
302
/// <typeparam name="T">The return type of the transform function.</typeparam>
302
303
/// <param name="command">The IDataReader to iterate.</param>
@@ -315,7 +316,7 @@ public static ChannelReader<T> AsChannel<T>(this IExecuteReader command,
315
316
}
316
317
317
318
/// <summary>
318
-
/// Iterates an IDataReader mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
319
+
/// Iterates an <see cref="IDataReader"/> mapping the results to classes of type <typeparamref name="T"/> and writes each record an unbound channel.
319
320
/// </summary>
320
321
/// <typeparam name="T">The return type of the transform function.</typeparam>
321
322
/// <param name="command">The IDataReader to iterate.</param>
@@ -336,16 +337,16 @@ public static ChannelReader<T> AsChannel<T>(this IExecuteReader command,
336
337
}
337
338
338
339
#if NETSTANDARD2_1
339
-
/// <summary>
340
-
/// Asynchronously iterates an DbDataReader and writes each record as an array to an unbound channel.
341
-
/// Iterates an DbDataReader through the transform function and writes each record to an unbound channel.
342
-
/// Be sure to await the completion.
343
-
/// </summary>
344
-
/// <param name="reader">The IDataReader to iterate.</param>
345
-
/// <param name="singleReader">True will cause the resultant reader to optimize for the assumption that no concurrent read operations will occur.</param>
/// Asynchronously iterates an DbDataReader and writes each record as an array to an unbound channel.
342
+
/// Iterates an DbDataReader through the transform function and writes each record to an unbound channel.
343
+
/// Be sure to await the completion.
344
+
/// </summary>
345
+
/// <param name="reader">The IDataReader to iterate.</param>
346
+
/// <param name="singleReader">True will cause the resultant reader to optimize for the assumption that no concurrent read operations will occur.</param>
0 commit comments