@@ -50,7 +50,7 @@ public void StartRouteActivity_CreatesAndStartsActivity()
5050 linkstore . SetActivityContext ( ComponentsActivityLinkStore . Circuit , new ActivityContext ( ActivityTraceId . CreateRandom ( ) , ActivitySpanId . CreateRandom ( ) , ActivityTraceFlags . Recorded ) , new KeyValuePair < string , object > ( "aspnetcore.components.circuit.id" , "test-circuit-id" ) ) ;
5151
5252 // Act
53- var activityHandle = componentsActivitySource . StartRouteActivity ( componentType , route ) ;
53+ var activityHandle = componentsActivitySource . StartNavigateActivity ( componentType , route ) ;
5454 var activity = activityHandle . Activity ;
5555
5656 // Assert
@@ -63,7 +63,7 @@ public void StartRouteActivity_CreatesAndStartsActivity()
6363 Assert . Equal ( route , activity . GetTagItem ( "aspnetcore.components.route" ) ) ;
6464 Assert . False ( activity . IsStopped ) ;
6565
66- componentsActivitySource . StopRouteActivity ( activityHandle , null ) ;
66+ componentsActivitySource . StopNavigateActivity ( activityHandle , null ) ;
6767 Assert . True ( activity . IsStopped ) ;
6868 Assert . Equal ( "test-circuit-id" , activity . GetTagItem ( "aspnetcore.components.circuit.id" ) ) ;
6969 Assert . Single ( activity . Links ) ;
@@ -83,10 +83,10 @@ public void StartEventActivity_CreatesAndStartsActivity()
8383
8484 // First set up a circuit and route context
8585 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" ) ;
8787
8888 // Act
89- var activityHandle = ComponentsActivitySource . StartEventActivity ( componentType , methodName , attributeName ) ;
89+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( componentType , methodName , attributeName ) ;
9090 var activity = activityHandle . Activity ;
9191
9292 // Assert
@@ -100,7 +100,7 @@ public void StartEventActivity_CreatesAndStartsActivity()
100100 Assert . Equal ( attributeName , activity . GetTagItem ( "aspnetcore.components.attribute.name" ) ) ;
101101 Assert . False ( activity . IsStopped ) ;
102102
103- componentsActivitySource . StopRouteActivity ( activityHandle , null ) ;
103+ componentsActivitySource . StopNavigateActivity ( activityHandle , null ) ;
104104 Assert . True ( activity . IsStopped ) ;
105105 Assert . Equal ( "test-circuit-id" , activity . GetTagItem ( "aspnetcore.components.circuit.id" ) ) ;
106106 Assert . Empty ( activity . Links ) ;
@@ -113,12 +113,12 @@ public void FailEventActivity_SetsErrorStatusAndStopsActivity()
113113 var componentsActivitySource = new ComponentsActivitySource ( ) ;
114114 var linkstore = new ComponentsActivityLinkStore ( null ) ;
115115 componentsActivitySource . Init ( linkstore ) ;
116- var activityHandle = ComponentsActivitySource . StartEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
116+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
117117 var activity = activityHandle . Activity ;
118118 var exception = new InvalidOperationException ( "Test exception" ) ;
119119
120120 // Act
121- componentsActivitySource . StopEventActivity ( activityHandle , exception ) ;
121+ componentsActivitySource . StopHandleEventActivity ( activityHandle , exception ) ;
122122
123123 // Assert
124124 Assert . True ( activity ! . IsStopped ) ;
@@ -133,12 +133,12 @@ public async Task CaptureEventStopAsync_StopsActivityOnSuccessfulTask()
133133 var componentsActivitySource = new ComponentsActivitySource ( ) ;
134134 var linkstore = new ComponentsActivityLinkStore ( null ) ;
135135 componentsActivitySource . Init ( linkstore ) ;
136- var activityHandle = ComponentsActivitySource . StartEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
136+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
137137 var activity = activityHandle . Activity ;
138138 var task = Task . CompletedTask ;
139139
140140 // Act
141- await componentsActivitySource . CaptureEventStopAsync ( task , activityHandle ) ;
141+ await componentsActivitySource . CaptureHandleEventStopAsync ( task , activityHandle ) ;
142142
143143 // Assert
144144 Assert . True ( activity ! . IsStopped ) ;
@@ -152,13 +152,13 @@ public async Task CaptureEventStopAsync_FailsActivityOnException()
152152 var componentsActivitySource = new ComponentsActivitySource ( ) ;
153153 var linkstore = new ComponentsActivityLinkStore ( null ) ;
154154 componentsActivitySource . Init ( linkstore ) ;
155- var activityHandle = ComponentsActivitySource . StartEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
155+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( "TestComponent" , "OnClick" , "onclick" ) ;
156156 var activity = activityHandle . Activity ;
157157 var exception = new InvalidOperationException ( "Test exception" ) ;
158158 var task = Task . FromException ( exception ) ;
159159
160160 // Act
161- await componentsActivitySource . CaptureEventStopAsync ( task , activityHandle ) ;
161+ await componentsActivitySource . CaptureHandleEventStopAsync ( task , activityHandle ) ;
162162
163163 // Assert
164164 Assert . True ( activity ! . IsStopped ) ;
@@ -175,7 +175,7 @@ public void StartRouteActivity_HandlesNullValues()
175175 componentsActivitySource . Init ( linkstore ) ;
176176
177177 // Act
178- var activityHandle = componentsActivitySource . StartRouteActivity ( null , null ) ;
178+ var activityHandle = componentsActivitySource . StartNavigateActivity ( null , null ) ;
179179 var activity = activityHandle . Activity ;
180180
181181 // Assert
@@ -192,7 +192,7 @@ public void StartEventActivity_HandlesNullValues()
192192 componentsActivitySource . Init ( linkstore ) ;
193193
194194 // Act
195- var activityHandle = ComponentsActivitySource . StartEventActivity ( null , null , null ) ;
195+ var activityHandle = ComponentsActivitySource . StartHandleEventActivity ( null , null , null ) ;
196196 var activity = activityHandle . Activity ;
197197
198198 // Assert
0 commit comments