@@ -75,205 +75,205 @@ public DefaultComponentGenerator(IRazorViewEngine viewEngine, IHttpContextAccess
7575 } ) ;
7676 }
7777
78- public virtual ValueTask < IHtmlContent > GenerateAccordionAsync ( AccordionOptions options )
78+ public virtual Task < IHtmlContent > GenerateAccordionAsync ( AccordionOptions options )
7979 {
8080 ArgumentNullException . ThrowIfNull ( options ) ;
8181 return RenderTemplateAsync ( "accordion" , options ) ;
8282 }
8383
84- public virtual ValueTask < IHtmlContent > GenerateBackLinkAsync ( BackLinkOptions options )
84+ public virtual Task < IHtmlContent > GenerateBackLinkAsync ( BackLinkOptions options )
8585 {
8686 ArgumentNullException . ThrowIfNull ( options ) ;
8787 return RenderViewAsync ( "BackLink" , options ) ;
8888 }
8989
90- public virtual ValueTask < IHtmlContent > GenerateBreadcrumbsAsync ( BreadcrumbsOptions options )
90+ public virtual Task < IHtmlContent > GenerateBreadcrumbsAsync ( BreadcrumbsOptions options )
9191 {
9292 ArgumentNullException . ThrowIfNull ( options ) ;
9393 return RenderTemplateAsync ( "breadcrumbs" , options ) ;
9494 }
9595
96- public virtual ValueTask < IHtmlContent > GenerateButtonAsync ( ButtonOptions options )
96+ public virtual Task < IHtmlContent > GenerateButtonAsync ( ButtonOptions options )
9797 {
9898 ArgumentNullException . ThrowIfNull ( options ) ;
9999 return RenderTemplateAsync ( "button" , options ) ;
100100 }
101101
102- public virtual ValueTask < IHtmlContent > GenerateCharacterCountAsync ( CharacterCountOptions options )
102+ public virtual Task < IHtmlContent > GenerateCharacterCountAsync ( CharacterCountOptions options )
103103 {
104104 ArgumentNullException . ThrowIfNull ( options ) ;
105105 return RenderTemplateAsync ( "character-count" , options ) ;
106106 }
107107
108- public virtual ValueTask < IHtmlContent > GenerateCheckboxesAsync ( CheckboxesOptions options )
108+ public virtual Task < IHtmlContent > GenerateCheckboxesAsync ( CheckboxesOptions options )
109109 {
110110 ArgumentNullException . ThrowIfNull ( options ) ;
111111 return RenderTemplateAsync ( "checkboxes" , options ) ;
112112 }
113113
114- public virtual ValueTask < IHtmlContent > GenerateCookieBannerAsync ( CookieBannerOptions options )
114+ public virtual Task < IHtmlContent > GenerateCookieBannerAsync ( CookieBannerOptions options )
115115 {
116116 ArgumentNullException . ThrowIfNull ( options ) ;
117117 return RenderTemplateAsync ( "cookie-banner" , options ) ;
118118 }
119119
120- public virtual ValueTask < IHtmlContent > GenerateDateInputAsync ( DateInputOptions options )
120+ public virtual Task < IHtmlContent > GenerateDateInputAsync ( DateInputOptions options )
121121 {
122122 ArgumentNullException . ThrowIfNull ( options ) ;
123123 return RenderTemplateAsync ( "date-input" , options ) ;
124124 }
125125
126- public virtual ValueTask < IHtmlContent > GenerateDetailsAsync ( DetailsOptions options )
126+ public virtual Task < IHtmlContent > GenerateDetailsAsync ( DetailsOptions options )
127127 {
128128 ArgumentNullException . ThrowIfNull ( options ) ;
129129 return RenderTemplateAsync ( "details" , options ) ;
130130 }
131131
132- public virtual ValueTask < IHtmlContent > GenerateErrorMessageAsync ( ErrorMessageOptions options )
132+ public virtual Task < IHtmlContent > GenerateErrorMessageAsync ( ErrorMessageOptions options )
133133 {
134134 ArgumentNullException . ThrowIfNull ( options ) ;
135135 return RenderTemplateAsync ( "error-message" , options ) ;
136136 }
137137
138- public virtual ValueTask < IHtmlContent > GenerateErrorSummaryAsync ( ErrorSummaryOptions options )
138+ public virtual Task < IHtmlContent > GenerateErrorSummaryAsync ( ErrorSummaryOptions options )
139139 {
140140 ArgumentNullException . ThrowIfNull ( options ) ;
141141 return RenderTemplateAsync ( "error-summary" , options ) ;
142142 }
143143
144- public virtual ValueTask < IHtmlContent > GenerateExitThisPageAsync ( ExitThisPageOptions options )
144+ public virtual Task < IHtmlContent > GenerateExitThisPageAsync ( ExitThisPageOptions options )
145145 {
146146 ArgumentNullException . ThrowIfNull ( options ) ;
147147 return RenderTemplateAsync ( "exit-this-page" , options ) ;
148148 }
149149
150- public virtual ValueTask < IHtmlContent > GenerateFieldsetAsync ( FieldsetOptions options )
150+ public virtual Task < IHtmlContent > GenerateFieldsetAsync ( FieldsetOptions options )
151151 {
152152 ArgumentNullException . ThrowIfNull ( options ) ;
153153 return RenderTemplateAsync ( "fieldset" , options ) ;
154154 }
155155
156- public virtual ValueTask < IHtmlContent > GenerateFileUploadAsync ( FileUploadOptions options )
156+ public virtual Task < IHtmlContent > GenerateFileUploadAsync ( FileUploadOptions options )
157157 {
158158 ArgumentNullException . ThrowIfNull ( options ) ;
159159 return RenderTemplateAsync ( "file-upload" , options ) ;
160160 }
161161
162- public virtual ValueTask < IHtmlContent > GenerateFooterAsync ( FooterOptions options )
162+ public virtual Task < IHtmlContent > GenerateFooterAsync ( FooterOptions options )
163163 {
164164 ArgumentNullException . ThrowIfNull ( options ) ;
165165 return RenderTemplateAsync ( "footer" , options ) ;
166166 }
167167
168- public virtual ValueTask < IHtmlContent > GenerateHeaderAsync ( HeaderOptions options )
168+ public virtual Task < IHtmlContent > GenerateHeaderAsync ( HeaderOptions options )
169169 {
170170 ArgumentNullException . ThrowIfNull ( options ) ;
171171 return RenderTemplateAsync ( "header" , options ) ;
172172 }
173173
174- public virtual ValueTask < IHtmlContent > GenerateHintAsync ( HintOptions options )
174+ public virtual Task < IHtmlContent > GenerateHintAsync ( HintOptions options )
175175 {
176176 ArgumentNullException . ThrowIfNull ( options ) ;
177177 return RenderTemplateAsync ( "hint" , options ) ;
178178 }
179179
180- public virtual ValueTask < IHtmlContent > GenerateInsetTextAsync ( InsetTextOptions options )
180+ public virtual Task < IHtmlContent > GenerateInsetTextAsync ( InsetTextOptions options )
181181 {
182182 ArgumentNullException . ThrowIfNull ( options ) ;
183183 return RenderTemplateAsync ( "inset-text" , options ) ;
184184 }
185185
186- public virtual ValueTask < IHtmlContent > GenerateInputAsync ( InputOptions options )
186+ public virtual Task < IHtmlContent > GenerateInputAsync ( InputOptions options )
187187 {
188188 ArgumentNullException . ThrowIfNull ( options ) ;
189189 return RenderTemplateAsync ( "input" , options ) ;
190190 }
191191
192- public virtual ValueTask < IHtmlContent > GenerateLabelAsync ( LabelOptions options )
192+ public virtual Task < IHtmlContent > GenerateLabelAsync ( LabelOptions options )
193193 {
194194 ArgumentNullException . ThrowIfNull ( options ) ;
195195 return RenderTemplateAsync ( "label" , options ) ;
196196 }
197197
198- public virtual ValueTask < IHtmlContent > GenerateNotificationBannerAsync ( NotificationBannerOptions options )
198+ public virtual Task < IHtmlContent > GenerateNotificationBannerAsync ( NotificationBannerOptions options )
199199 {
200200 ArgumentNullException . ThrowIfNull ( options ) ;
201201 return RenderTemplateAsync ( "notification-banner" , options ) ;
202202 }
203203
204- public virtual ValueTask < IHtmlContent > GenerateServiceNavigationAsync ( ServiceNavigationOptions options )
204+ public virtual Task < IHtmlContent > GenerateServiceNavigationAsync ( ServiceNavigationOptions options )
205205 {
206206 ArgumentNullException . ThrowIfNull ( options ) ;
207207 return RenderTemplateAsync ( "service-navigation" , options ) ;
208208 }
209209
210- public virtual ValueTask < IHtmlContent > GeneratePanelAsync ( PanelOptions options )
210+ public virtual Task < IHtmlContent > GeneratePanelAsync ( PanelOptions options )
211211 {
212212 ArgumentNullException . ThrowIfNull ( options ) ;
213213 return RenderTemplateAsync ( "panel" , options ) ;
214214 }
215215
216- public virtual ValueTask < IHtmlContent > GeneratePhaseBannerAsync ( PhaseBannerOptions options )
216+ public virtual Task < IHtmlContent > GeneratePhaseBannerAsync ( PhaseBannerOptions options )
217217 {
218218 ArgumentNullException . ThrowIfNull ( options ) ;
219219 return RenderTemplateAsync ( "phase-banner" , options ) ;
220220 }
221221
222- public virtual ValueTask < IHtmlContent > GeneratePaginationAsync ( PaginationOptions options )
222+ public virtual Task < IHtmlContent > GeneratePaginationAsync ( PaginationOptions options )
223223 {
224224 ArgumentNullException . ThrowIfNull ( options ) ;
225225 return RenderTemplateAsync ( "pagination" , options ) ;
226226 }
227227
228- public virtual ValueTask < IHtmlContent > GeneratePasswordInputAsync ( PasswordInputOptions options )
228+ public virtual Task < IHtmlContent > GeneratePasswordInputAsync ( PasswordInputOptions options )
229229 {
230230 ArgumentNullException . ThrowIfNull ( options ) ;
231231 return RenderTemplateAsync ( "password-input" , options ) ;
232232 }
233233
234- public virtual ValueTask < IHtmlContent > GenerateSkipLinkAsync ( SkipLinkOptions options )
234+ public virtual Task < IHtmlContent > GenerateSkipLinkAsync ( SkipLinkOptions options )
235235 {
236236 ArgumentNullException . ThrowIfNull ( options ) ;
237237 return RenderTemplateAsync ( "skip-link" , options ) ;
238238 }
239239
240- public virtual ValueTask < IHtmlContent > GenerateSummaryListAsync ( SummaryListOptions options )
240+ public virtual Task < IHtmlContent > GenerateSummaryListAsync ( SummaryListOptions options )
241241 {
242242 ArgumentNullException . ThrowIfNull ( options ) ;
243243 return RenderTemplateAsync ( "summary-list" , options ) ;
244244 }
245245
246- public virtual ValueTask < IHtmlContent > GenerateTableAsync ( TableOptions options )
246+ public virtual Task < IHtmlContent > GenerateTableAsync ( TableOptions options )
247247 {
248248 ArgumentNullException . ThrowIfNull ( options ) ;
249249 return RenderTemplateAsync ( "table" , options ) ;
250250 }
251251
252- public virtual ValueTask < IHtmlContent > GenerateTabsAsync ( TabsOptions options )
252+ public virtual Task < IHtmlContent > GenerateTabsAsync ( TabsOptions options )
253253 {
254254 ArgumentNullException . ThrowIfNull ( options ) ;
255255 return RenderTemplateAsync ( "tabs" , options ) ;
256256 }
257257
258- public virtual ValueTask < IHtmlContent > GenerateTagAsync ( TagOptions options )
258+ public virtual Task < IHtmlContent > GenerateTagAsync ( TagOptions options )
259259 {
260260 ArgumentNullException . ThrowIfNull ( options ) ;
261261 return RenderTemplateAsync ( "tag" , options ) ;
262262 }
263263
264- public virtual ValueTask < IHtmlContent > GenerateTaskListAsync ( TaskListOptions options )
264+ public virtual Task < IHtmlContent > GenerateTaskListAsync ( TaskListOptions options )
265265 {
266266 ArgumentNullException . ThrowIfNull ( options ) ;
267267 return RenderTemplateAsync ( "task-list" , options ) ;
268268 }
269269
270- public virtual ValueTask < IHtmlContent > GenerateTextareaAsync ( TextareaOptions options )
270+ public virtual Task < IHtmlContent > GenerateTextareaAsync ( TextareaOptions options )
271271 {
272272 ArgumentNullException . ThrowIfNull ( options ) ;
273273 return RenderTemplateAsync ( "textarea" , options ) ;
274274 }
275275
276- public virtual ValueTask < IHtmlContent > GenerateWarningTextAsync ( WarningTextOptions options )
276+ public virtual Task < IHtmlContent > GenerateWarningTextAsync ( WarningTextOptions options )
277277 {
278278 ArgumentNullException . ThrowIfNull ( options ) ;
279279 return RenderTemplateAsync ( "warning-text" , options ) ;
@@ -297,7 +297,7 @@ private IFluidTemplate GetTemplate(string templateName) =>
297297 return template ;
298298 } ) ;
299299
300- private async ValueTask < IHtmlContent > RenderTemplateAsync ( string templateName , object componentOptions )
300+ private async Task < IHtmlContent > RenderTemplateAsync ( string templateName , object componentOptions )
301301 {
302302 var context = new TemplateContext ( _templateOptions ) ;
303303 context . SetValue ( "array" , new FunctionValue ( Functions . Array ) ) ;
@@ -315,7 +315,7 @@ private async ValueTask<IHtmlContent> RenderTemplateAsync(string templateName, o
315315 return new HtmlString ( result . TrimStart ( ) ) ;
316316 }
317317
318- private async ValueTask < IHtmlContent > RenderViewAsync ( string viewName , object model )
318+ private async Task < IHtmlContent > RenderViewAsync ( string viewName , object model )
319319 {
320320 var httpContext = _httpContextAccessor . HttpContext ??
321321 throw new InvalidOperationException ( $ "No { nameof ( HttpContext ) } .") ;
0 commit comments