12
12
using Xtensive . Orm . Providers ;
13
13
using Xtensive . Sql ;
14
14
using Xtensive . Orm . Tests . Storage . ConnectionHandlersModel ;
15
+ using System . Threading . Tasks ;
15
16
16
17
namespace Xtensive . Orm . Tests . Storage . ConnectionHandlersModel
17
18
{
18
- public class MyConnectionHandler : IConnectionHandler
19
+ public class MyConnectionHandler : ConnectionHandler
19
20
{
20
21
private Guid instanceMarker ;
21
22
@@ -26,29 +27,29 @@ public class MyConnectionHandler : IConnectionHandler
26
27
public int ConnectionOpenedCounter ;
27
28
public int ConnectionOpeningFailedCounter ;
28
29
29
- public void ConnectionOpening ( ConnectionEventData eventData )
30
+ public override void ConnectionOpening ( ConnectionEventData eventData )
30
31
{
31
32
instanceMarker = UniqueInstanceIdentifier ;
32
33
ConnectionOpeningCounter ++ ;
33
34
}
34
35
35
- public void ConnectionInitialization ( ConnectionInitEventData eventData )
36
+ public override void ConnectionInitialization ( ConnectionInitEventData eventData )
36
37
{
37
38
ConnectionInitializationCounter ++ ;
38
39
if ( instanceMarker != UniqueInstanceIdentifier ) {
39
40
throw new Exception ( "Not the same instance" ) ;
40
41
}
41
42
}
42
43
43
- public void ConnectionOpened ( ConnectionEventData eventData )
44
+ public override void ConnectionOpened ( ConnectionEventData eventData )
44
45
{
45
46
ConnectionOpenedCounter ++ ;
46
47
if ( instanceMarker != UniqueInstanceIdentifier ) {
47
48
throw new Exception ( "Not the same instance" ) ;
48
49
}
49
50
}
50
51
51
- public void ConnectionOpeningFailed ( ConnectionErrorEventData eventData )
52
+ public override void ConnectionOpeningFailed ( ConnectionErrorEventData eventData )
52
53
{
53
54
ConnectionOpeningFailedCounter ++ ;
54
55
if ( instanceMarker != UniqueInstanceIdentifier ) {
@@ -62,7 +63,7 @@ public MyConnectionHandler()
62
63
}
63
64
}
64
65
65
- public class NoDefaultConstructorHandler : IConnectionHandler
66
+ public class NoDefaultConstructorHandler : ConnectionHandler
66
67
{
67
68
#pragma warning disable IDE0060 // Remove unused parameter
68
69
public NoDefaultConstructorHandler ( int dummyParameter )
@@ -71,7 +72,7 @@ public NoDefaultConstructorHandler(int dummyParameter)
71
72
}
72
73
}
73
74
74
- public class NonPublicDefaultConstructorHandler : IConnectionHandler
75
+ public class NonPublicDefaultConstructorHandler : ConnectionHandler
75
76
{
76
77
private NonPublicDefaultConstructorHandler ( )
77
78
{
@@ -80,31 +81,31 @@ private NonPublicDefaultConstructorHandler()
80
81
81
82
#region Performance Test handlers
82
83
83
- public class PerfHandler1 : IConnectionHandler { }
84
- public class PerfHandler2 : IConnectionHandler { }
85
- public class PerfHandler3 : IConnectionHandler { }
86
- public class PerfHandler4 : IConnectionHandler { }
87
- public class PerfHandler5 : IConnectionHandler { }
88
- public class PerfHandler6 : IConnectionHandler { }
89
- public class PerfHandler7 : IConnectionHandler { }
90
- public class PerfHandler8 : IConnectionHandler { }
91
- public class PerfHandler9 : IConnectionHandler { }
92
- public class PerfHandler10 : IConnectionHandler { }
93
- public class PerfHandler11 : IConnectionHandler { }
94
- public class PerfHandler12 : IConnectionHandler { }
95
- public class PerfHandler13 : IConnectionHandler { }
96
- public class PerfHandler14 : IConnectionHandler { }
97
- public class PerfHandler15 : IConnectionHandler { }
98
- public class PerfHandler16 : IConnectionHandler { }
99
- public class PerfHandler17 : IConnectionHandler { }
100
- public class PerfHandler18 : IConnectionHandler { }
101
- public class PerfHandler19 : IConnectionHandler { }
102
- public class PerfHandler20 : IConnectionHandler { }
103
- public class PerfHandler21 : IConnectionHandler { }
104
- public class PerfHandler22 : IConnectionHandler { }
105
- public class PerfHandler23 : IConnectionHandler { }
106
- public class PerfHandler24 : IConnectionHandler { }
107
- public class PerfHandler25 : IConnectionHandler { }
84
+ public class PerfHandler1 : ConnectionHandler { }
85
+ public class PerfHandler2 : ConnectionHandler { }
86
+ public class PerfHandler3 : ConnectionHandler { }
87
+ public class PerfHandler4 : ConnectionHandler { }
88
+ public class PerfHandler5 : ConnectionHandler { }
89
+ public class PerfHandler6 : ConnectionHandler { }
90
+ public class PerfHandler7 : ConnectionHandler { }
91
+ public class PerfHandler8 : ConnectionHandler { }
92
+ public class PerfHandler9 : ConnectionHandler { }
93
+ public class PerfHandler10 : ConnectionHandler { }
94
+ public class PerfHandler11 : ConnectionHandler { }
95
+ public class PerfHandler12 : ConnectionHandler { }
96
+ public class PerfHandler13 : ConnectionHandler { }
97
+ public class PerfHandler14 : ConnectionHandler { }
98
+ public class PerfHandler15 : ConnectionHandler { }
99
+ public class PerfHandler16 : ConnectionHandler { }
100
+ public class PerfHandler17 : ConnectionHandler { }
101
+ public class PerfHandler18 : ConnectionHandler { }
102
+ public class PerfHandler19 : ConnectionHandler { }
103
+ public class PerfHandler20 : ConnectionHandler { }
104
+ public class PerfHandler21 : ConnectionHandler { }
105
+ public class PerfHandler22 : ConnectionHandler { }
106
+ public class PerfHandler23 : ConnectionHandler { }
107
+ public class PerfHandler24 : ConnectionHandler { }
108
+ public class PerfHandler25 : ConnectionHandler { }
108
109
109
110
#endregion
110
111
@@ -276,4 +277,4 @@ private IEnumerable<Type> GetHandlers(int neededCount)
276
277
}
277
278
}
278
279
}
279
- }
280
+ }
0 commit comments