@@ -50,7 +50,7 @@ public void StartRouteActivity_CreatesAndStartsActivity()
50
50
linkstore . SetActivityContext ( ComponentsActivityLinkStore . Circuit , new ActivityContext ( ActivityTraceId . CreateRandom ( ) , ActivitySpanId . CreateRandom ( ) , ActivityTraceFlags . Recorded ) , new KeyValuePair < string , object > ( "aspnetcore.components.circuit.id" , "test-circuit-id" ) ) ;
51
51
52
52
// Act
53
- var activityHandle = componentsActivitySource . StartRouteActivity ( componentType , route ) ;
53
+ var activityHandle = componentsActivitySource . StartNavigateActivity ( componentType , route ) ;
54
54
var activity = activityHandle . Activity ;
55
55
56
56
// Assert
@@ -63,7 +63,7 @@ public void StartRouteActivity_CreatesAndStartsActivity()
63
63
Assert . Equal ( route , activity . GetTagItem ( "aspnetcore.components.route" ) ) ;
64
64
Assert . False ( activity . IsStopped ) ;
65
65
66
- componentsActivitySource . StopRouteActivity ( activityHandle , null ) ;
66
+ componentsActivitySource . StopNavigateActivity ( activityHandle , null ) ;
67
67
Assert . True ( activity . IsStopped ) ;
68
68
Assert . Equal ( "test-circuit-id" , activity . GetTagItem ( "aspnetcore.components.circuit.id" ) ) ;
69
69
Assert . Single ( activity . Links ) ;
@@ -83,10 +83,10 @@ public void StartEventActivity_CreatesAndStartsActivity()
83
83
84
84
// First set up a circuit and route context
85
85
linkstore . SetActivityContext ( ComponentsActivityLinkStore . Circuit , default , new KeyValuePair < string , object > ( "aspnetcore.components.circuit.id" , "test-circuit-id" ) ) ;
86
- componentsActivitySource . StartRouteActivity ( "ParentComponent" , "/parent" ) ;
86
+ componentsActivitySource . StartNavigateActivity ( "ParentComponent" , "/parent" ) ;
87
87
88
88
// Act
89
- var activityHandle = ComponentsActivitySource . StartEventActivity ( componentType , methodName , attributeName ) ;
89
+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( componentType , methodName , attributeName ) ;
90
90
var activity = activityHandle . Activity ;
91
91
92
92
// Assert
@@ -100,7 +100,7 @@ public void StartEventActivity_CreatesAndStartsActivity()
100
100
Assert . Equal ( attributeName , activity . GetTagItem ( "aspnetcore.components.attribute.name" ) ) ;
101
101
Assert . False ( activity . IsStopped ) ;
102
102
103
- componentsActivitySource . StopRouteActivity ( activityHandle , null ) ;
103
+ componentsActivitySource . StopNavigateActivity ( activityHandle , null ) ;
104
104
Assert . True ( activity . IsStopped ) ;
105
105
Assert . Equal ( "test-circuit-id" , activity . GetTagItem ( "aspnetcore.components.circuit.id" ) ) ;
106
106
Assert . Empty ( activity . Links ) ;
@@ -113,12 +113,12 @@ public void FailEventActivity_SetsErrorStatusAndStopsActivity()
113
113
var componentsActivitySource = new ComponentsActivitySource ( ) ;
114
114
var linkstore = new ComponentsActivityLinkStore ( null ) ;
115
115
componentsActivitySource . Init ( linkstore ) ;
116
- var activityHandle = ComponentsActivitySource . StartEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
116
+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
117
117
var activity = activityHandle . Activity ;
118
118
var exception = new InvalidOperationException ( "Test exception" ) ;
119
119
120
120
// Act
121
- componentsActivitySource . StopEventActivity ( activityHandle , exception ) ;
121
+ componentsActivitySource . StopHandleEventActivity ( activityHandle , exception ) ;
122
122
123
123
// Assert
124
124
Assert . True ( activity ! . IsStopped ) ;
@@ -133,12 +133,12 @@ public async Task CaptureEventStopAsync_StopsActivityOnSuccessfulTask()
133
133
var componentsActivitySource = new ComponentsActivitySource ( ) ;
134
134
var linkstore = new ComponentsActivityLinkStore ( null ) ;
135
135
componentsActivitySource . Init ( linkstore ) ;
136
- var activityHandle = ComponentsActivitySource . StartEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
136
+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
137
137
var activity = activityHandle . Activity ;
138
138
var task = Task . CompletedTask ;
139
139
140
140
// Act
141
- await componentsActivitySource . CaptureEventStopAsync ( task , activityHandle ) ;
141
+ await componentsActivitySource . CaptureHandleEventStopAsync ( task , activityHandle ) ;
142
142
143
143
// Assert
144
144
Assert . True ( activity ! . IsStopped ) ;
@@ -152,13 +152,13 @@ public async Task CaptureEventStopAsync_FailsActivityOnException()
152
152
var componentsActivitySource = new ComponentsActivitySource ( ) ;
153
153
var linkstore = new ComponentsActivityLinkStore ( null ) ;
154
154
componentsActivitySource . Init ( linkstore ) ;
155
- var activityHandle = ComponentsActivitySource . StartEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
155
+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
156
156
var activity = activityHandle . Activity ;
157
157
var exception = new InvalidOperationException ( "Test exception" ) ;
158
158
var task = Task . FromException ( exception ) ;
159
159
160
160
// Act
161
- await componentsActivitySource . CaptureEventStopAsync ( task , activityHandle ) ;
161
+ await componentsActivitySource . CaptureHandleEventStopAsync ( task , activityHandle ) ;
162
162
163
163
// Assert
164
164
Assert . True ( activity ! . IsStopped ) ;
@@ -175,7 +175,7 @@ public void StartRouteActivity_HandlesNullValues()
175
175
componentsActivitySource . Init ( linkstore ) ;
176
176
177
177
// Act
178
- var activityHandle = componentsActivitySource . StartRouteActivity ( null , null ) ;
178
+ var activityHandle = componentsActivitySource . StartNavigateActivity ( null , null ) ;
179
179
var activity = activityHandle . Activity ;
180
180
181
181
// Assert
@@ -192,7 +192,7 @@ public void StartEventActivity_HandlesNullValues()
192
192
componentsActivitySource . Init ( linkstore ) ;
193
193
194
194
// Act
195
- var activityHandle = ComponentsActivitySource . StartEventActivity ( null , null , null ) ;
195
+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( null , null , null ) ;
196
196
var activity = activityHandle . Activity ;
197
197
198
198
// Assert
0 commit comments