File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ namespace LinkDotNet.Blog.Web.RegistrationExtensions;
6
6
7
7
public static class RegistrationHelper
8
8
{
9
- public static void AssertNotAlreadyRegistered ( this IServiceCollection services , Type typeTocCheck )
9
+ public static void AssertNotAlreadyRegistered ( this IServiceCollection services , Type typeToCheck )
10
10
{
11
- var repoExists = services . Any ( s => s . ServiceType == typeTocCheck ) ;
11
+ var repoExists = services . Any ( s => s . ServiceType == typeToCheck ) ;
12
12
if ( repoExists )
13
13
{
14
14
throw new NotSupportedException (
15
- $ "Can't have multiple implementations registered of type { nameof ( typeTocCheck ) } ") ;
15
+ $ "Can't have multiple implementations registered of type { nameof ( typeToCheck ) } ") ;
16
16
}
17
17
}
18
18
}
Original file line number Diff line number Diff line change 1
- @using System .ComponentModel .DataAnnotations
2
- <div class =" modal @modalClass" tabindex =" -1" role =" dialog" style =" display :@modalDisplay; overflow-y : auto ;" >
1
+ <div class =" modal @modalClass" tabindex =" -1" role =" dialog" style =" display :@modalDisplay; overflow-y : auto ;" >
3
2
<div class =" modal-dialog modal-lg" role =" document" >
4
3
<div class =" modal-content" >
5
4
<div class =" modal-header" >
Original file line number Diff line number Diff line change 1
1
namespace LinkDotNet . Blog . Web . Shared . Services ;
2
2
3
- public class GiscusConfiguration
3
+ public record GiscusConfiguration
4
4
{
5
- public string Repository { get ; set ; }
5
+ public string Repository { get ; init ; }
6
6
7
- public string RepositoryId { get ; set ; }
7
+ public string RepositoryId { get ; init ; }
8
8
9
- public string Category { get ; set ; }
9
+ public string Category { get ; init ; }
10
10
11
- public string CategoryId { get ; set ; }
11
+ public string CategoryId { get ; init ; }
12
12
}
You can’t perform that action at this time.
0 commit comments