2021年5月1日星期六

What is the class name for Razor page without a code behind

I have a razor component and I would like to add logging. What is the class name I should use? Would I have to use code-behind when I need to do this?

Say that my component is called MyRazor.razor

@code {  [Inject]  public ILogger<MYCLASS> Logger { get; set; }  }  
https://stackoverflow.com/questions/67352403/what-is-the-class-name-for-razor-page-without-a-code-behind May 02, 2021 at 10:06AM

没有评论:

发表评论