Skip to content

Commit d15ede6

Browse files
committed
fix error
1 parent 9621351 commit d15ede6

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/Services/GreeterService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace GrpcService_CSharp.Services;
44

5-
public class GreeterService(ILogger<GreeterService> logger) : Greeter.GreeterBase
5+
public class GreeterService : Greeter.GreeterBase
66
{
77
public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context)
88
{

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Error.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Company.WebApplication1.Pages;
66

77
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
88
[IgnoreAntiforgeryToken]
9-
public class ErrorModel(ILogger<ErrorModel> logger) : PageModel
9+
public class ErrorModel : PageModel
1010
{
1111
public string? RequestId { get; set; }
1212

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Index.cshtml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ namespace Company.WebApplication1.Pages;
1717
[AuthorizeForScopes(ScopeKeySection = "DownstreamApi:Scopes")]
1818
#endif
1919
#if (GenerateApi)
20-
public class IndexModel(ILogger<IndexModel> logger, IDownstreamApi downstreamApi) : Controller
20+
public class IndexModel(IDownstreamApi downstreamApi) : Controller
2121
# elseif (GenerateGraph)
22-
public class IndexModel(ILogger<IndexModel> logger, GraphServiceClient graphServiceClient) : ControllerBase
22+
public class IndexModel(GraphServiceClient graphServiceClient) : ControllerBase
2323
#else
24-
public class IndexModel(ILogger<IndexModel> logger) : PageModel
24+
public class IndexModel : PageModel
2525
#endif
2626
{
2727
#if (GenerateApi)

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Privacy.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Company.WebApplication1.Pages;
55

6-
public class PrivacyModel(ILogger<PrivacyModel> logger) : PageModel
6+
public class PrivacyModel : PageModel
77
{
88
public void OnGet()
99
{

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Controllers/HomeController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ namespace Company.WebApplication1.Controllers;
2121
[Authorize]
2222
#endif
2323
#if (GenerateApi)
24-
public class HomeController(ILogger<HomeController> logger, IDownstreamApi downstreamApi) : Controller
24+
public class HomeController(IDownstreamApi downstreamApi) : Controller
2525
#elseif (GenerateGraph)
26-
public class HomeController(ILogger<HomeController> logger, GraphServiceClient graphServiceClient) : ControllerBase
26+
public class HomeController(GraphServiceClient graphServiceClient) : ControllerBase
2727
#else
28-
public class HomeController(ILogger<HomeController> logger) : Controller
28+
public class HomeController : Controller
2929
#endif
3030
{
3131
#if (GenerateApi)

src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Controllers/WeatherForecastController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ namespace Company.WebApplication1.Controllers;
2727
[RequiredScope(RequiredScopesConfigurationKey = "AzureAd:Scopes")]
2828
#endif
2929
#if (GenerateApi)
30-
public class WeatherForecastController(ILogger<WeatherForecastController> logger, IDownstreamApi downstreamApi) : ControllerBase
30+
public class WeatherForecastController(IDownstreamApi downstreamApi) : ControllerBase
3131
#elseif (GenerateGraph)
32-
public class WeatherForecastController(ILogger<WeatherForecastController> logger, GraphServiceClient graphServiceClient) : ControllerBase
32+
public class WeatherForecastController(GraphServiceClient graphServiceClient) : ControllerBase
3333
#else
34-
public class WeatherForecastController(ILogger<WeatherForecastController> logger) : ControllerBase
34+
public class WeatherForecastController : ControllerBase
3535
#endif
3636
{
3737
private static readonly string[] Summaries =

0 commit comments

Comments
 (0)