@@ -37,17 +37,6 @@ internal IServiceProvider ServiceProvider
37
37
set => RenderStrategy ! . ServiceProvider = value ;
38
38
}
39
39
40
- // TODO: Dotnet 9
41
- /// <summary>
42
- /// To be replaced with the default implementation with the release of dotnet 9.
43
- /// </summary>
44
- [ Inject ]
45
- public RendererInfo RendererInfo
46
- {
47
- get => RenderStrategy ! . RendererInfo ;
48
- internal set => RenderStrategy ! . RendererInfo = value ;
49
- }
50
-
51
40
internal virtual bool ShouldUseDefaultStrategy => true ;
52
41
53
42
private IComponentRenderStrategy ? renderStrategy ;
@@ -98,11 +87,10 @@ protected virtual void BuildRenderTree(RenderTreeBuilder builder)
98
87
internal void BuildRenderTreeInternal ( RenderTreeBuilder builder )
99
88
=> BuildRenderTree ( builder ) ;
100
89
101
- //TODO: Dotnet 9
102
- // <summary>
103
- // Gets the <see cref="IComponentRenderMode"/> assigned to this component.
104
- // </summary>
105
- //protected IComponentRenderMode? AssignedRenderMode => RenderStrategy!.AssignedRenderMode;
90
+ /// <summary>
91
+ /// Gets the <see cref="IComponentRenderMode"/> assigned to this component.
92
+ /// </summary>
93
+ protected IComponentRenderMode ? AssignedRenderMode => RenderStrategy ! . AssignedRenderMode ;
106
94
107
95
/// <summary>
108
96
/// Returns a flag to indicate whether the component should render.
@@ -114,17 +102,15 @@ protected virtual bool ShouldRender()
114
102
internal bool ShouldRenderInternal ( )
115
103
=> ShouldRender ( ) ;
116
104
117
- // TODO: Dotnet 9
118
- // <summary>
119
- // Gets the <see cref="Microsoft.AspNetCore.Components.RendererInfo"/> the component is running on.
120
- // </summary>
121
- //protected RendererInfo RendererInfo => RenderStrategy!.Handle.RendererInfo;
122
-
123
- // TODO: Dotnet 9
124
- // <summary>
125
- // Gets the <see cref="ResourceAssetCollection"/> for the application.
126
- // </summary>
127
- //protected ResourceAssetCollection Assets => RenderStrategy!.Handle.Assets;
105
+ /// <summary>
106
+ /// Gets the <see cref="Microsoft.AspNetCore.Components.RendererInfo"/> the component is running on.
107
+ /// </summary>
108
+ protected RendererInfo RendererInfo => RenderStrategy ! . Handle . RendererInfo ;
109
+
110
+ /// <summary>
111
+ /// Gets the <see cref="ResourceAssetCollection"/> for the application.
112
+ /// </summary>
113
+ protected ResourceAssetCollection Assets => RenderStrategy ! . Handle . Assets ;
128
114
129
115
/// <summary>
130
116
/// Method invoked when the component is ready to start, having received its
0 commit comments