Skip to content

Commit 55dbc8a

Browse files
Merge pull request #692 from fredericDelaporte/NH-3905
NH-3905 - upgrade async generator and regen
2 parents 623d798 + 2a43817 commit 55dbc8a

File tree

329 files changed

+16
-1131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

329 files changed

+16
-1131
lines changed

Tools/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />
88
<package id="NUnit.Extension.TeamCityEventListener" version="1.0.2" targetFramework="net461" />
99
<package id="NUnit.Extension.VSProjectLoader" version="3.6.0" targetFramework="net461" />
10-
<package id="CSharpAsyncGenerator.CommandLine" version="0.4.4" targetFramework="net461" />
10+
<package id="CSharpAsyncGenerator.CommandLine" version="0.5.0" targetFramework="net461" />
1111
<package id="vswhere" version="2.1.4" targetFramework="net461" />
1212
</packages>

doc/reference/modules/quickstart.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,12 @@ finally
420420
cases.
421421
</para>
422422

423+
<para>
424+
Since NHibernate 5.0, the session and its queries IO bound methods have async counterparts.
425+
Each call to an async method must be awaited before further interacting with the session or
426+
its queries.
427+
</para>
428+
423429
</sect1>
424430

425431
<sect1 id="quickstart-summary">

doc/reference/modules/transactions.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
Never access the same <literal>ISession</literal> in two concurrent threads.
9494
An <literal>ISession</literal> is usually only a single unit-of-work!
9595
</para>
96+
<para>
97+
Since NHibernate 5.0, the session and its queries IO bound methods have async counterparts.
98+
Each call to an async method must be awaited before further interacting with the session or
99+
its queries.
100+
</para>
96101
</listitem>
97102
</itemizedlist>
98103
</sect1>

src/AsyncGenerator.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@
184184
- hasAttributeName: TestAttribute
185185
- hasAttributeName: TheoryAttribute
186186
typeConversion:
187-
- conversion: Ignore
188-
name: NorthwindDbCreator
189187
- conversion: Ignore
190188
name: ObjectAssert
191189
- conversion: Ignore
@@ -200,9 +198,13 @@
200198
rule: IsTestCase
201199
- conversion: Ignore
202200
anyBaseTypeRule: IsTestCase
201+
ignoreSearchForMethodReferences:
202+
- hasAttributeName: TheoryAttribute
203+
- hasAttributeName: TestAttribute
203204
ignoreDocuments:
204205
- filePathEndsWith: Linq\MathTests.cs
205206
- filePathEndsWith: Linq\ExpressionSessionLeakTest.cs
207+
- filePathEndsWith: Linq\NorthwindDbCreator.cs
206208
cancellationTokens:
207209
withoutCancellationToken:
208210
- hasAttributeName: TestAttribute

src/NHibernate.DomainModel/Async/CustomPersister.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ namespace NHibernate.DomainModel
2626
{
2727
using System.Threading.Tasks;
2828
using System.Threading;
29-
/// <content>
30-
/// Contains generated async methods
31-
/// </content>
3229
public partial class CustomPersister : IEntityPersister
3330
{
3431

src/NHibernate.Test/Async/ConnectionStringTest/NamedConnectionStringFixture.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ namespace NHibernate.Test.ConnectionStringTest
2020
using System.Threading.Tasks;
2121
using System.Threading;
2222

23-
/// <content>
24-
/// Contains generated async methods
25-
/// </content>
2623
public partial class MockConnectionProvider : ConnectionProvider
2724
{
2825

src/NHibernate.Test/Async/DebugConnectionProvider.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ namespace NHibernate.Test
1919
{
2020
using System.Threading.Tasks;
2121
using System.Threading;
22-
/// <content>
23-
/// Contains generated async methods
24-
/// </content>
2522
public partial class DebugConnectionProvider : DriverConnectionProvider
2623
{
2724

src/NHibernate.Test/Async/DebugSessionFactory.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ namespace NHibernate.Test
3737
{
3838
using System.Threading.Tasks;
3939
using System.Threading;
40-
/// <content>
41-
/// Contains generated async methods
42-
/// </content>
4340
public partial class DebugSessionFactory : ISessionFactoryImplementor
4441
{
4542

src/NHibernate.Test/Async/DynamicProxyTests/PeVerifier.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
namespace NHibernate.Test.DynamicProxyTests
1717
{
1818
using System.Threading.Tasks;
19-
20-
/// <content>
21-
/// Contains generated async methods
22-
/// </content>
23-
2419
public partial class PeVerifier
2520
{
2621

src/NHibernate.Test/Async/Events/Collections/CollectionListeners.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
namespace NHibernate.Test.Events.Collections
1919
{
20-
/// <content>
21-
/// Contains generated async methods
22-
/// </content>
2320
public partial class CollectionListeners
2421
{
2522

@@ -32,9 +29,6 @@ public partial class CollectionListeners
3229

3330
#region Nested type: InitializeCollectionListener
3431

35-
/// <content>
36-
/// Contains generated async methods
37-
/// </content>
3832
public partial class InitializeCollectionListener : DefaultInitializeCollectionEventListener, IListener
3933
{
4034

@@ -53,9 +47,6 @@ public override async Task OnInitializeCollectionAsync(InitializeCollectionEvent
5347

5448
#region Nested type: PostCollectionRecreateListener
5549

56-
/// <content>
57-
/// Contains generated async methods
58-
/// </content>
5950
public partial class PostCollectionRecreateListener : AbstractListener, IPostCollectionRecreateEventListener
6051
{
6152

@@ -81,9 +72,6 @@ public Task OnPostRecreateCollectionAsync(PostCollectionRecreateEvent @event, Ca
8172

8273
#region Nested type: PostCollectionRemoveListener
8374

84-
/// <content>
85-
/// Contains generated async methods
86-
/// </content>
8775
public partial class PostCollectionRemoveListener : AbstractListener, IPostCollectionRemoveEventListener
8876
{
8977

@@ -109,9 +97,6 @@ public Task OnPostRemoveCollectionAsync(PostCollectionRemoveEvent @event, Cancel
10997

11098
#region Nested type: PostCollectionUpdateListener
11199

112-
/// <content>
113-
/// Contains generated async methods
114-
/// </content>
115100
public partial class PostCollectionUpdateListener : AbstractListener, IPostCollectionUpdateEventListener
116101
{
117102

@@ -137,9 +122,6 @@ public Task OnPostUpdateCollectionAsync(PostCollectionUpdateEvent @event, Cancel
137122

138123
#region Nested type: PreCollectionRecreateListener
139124

140-
/// <content>
141-
/// Contains generated async methods
142-
/// </content>
143125
public partial class PreCollectionRecreateListener : AbstractListener, IPreCollectionRecreateEventListener
144126
{
145127

@@ -165,9 +147,6 @@ public Task OnPreRecreateCollectionAsync(PreCollectionRecreateEvent @event, Canc
165147

166148
#region Nested type: PreCollectionRemoveListener
167149

168-
/// <content>
169-
/// Contains generated async methods
170-
/// </content>
171150
public partial class PreCollectionRemoveListener : AbstractListener, IPreCollectionRemoveEventListener
172151
{
173152

@@ -193,9 +172,6 @@ public Task OnPreRemoveCollectionAsync(PreCollectionRemoveEvent @event, Cancella
193172

194173
#region Nested type: PreCollectionUpdateListener
195174

196-
/// <content>
197-
/// Contains generated async methods
198-
/// </content>
199175
public partial class PreCollectionUpdateListener : AbstractListener, IPreCollectionUpdateEventListener
200176
{
201177

0 commit comments

Comments
 (0)