Add nullability to Web.Website, Sqlite & SqlServer

This commit is contained in:
Nikolaj Geisle
2022-04-04 14:47:54 +02:00
parent 4710951185
commit 7994f5c326
50 changed files with 245 additions and 215 deletions

View File

@@ -127,13 +127,13 @@ namespace Umbraco.Extensions
this IEndpointRouteBuilder endpoints,
Type controllerType,
string rootSegment,
string areaName,
string? areaName,
string defaultAction = "Index",
bool includeControllerNameInRoute = true,
object? constraints = null)
{
// If there is an area name it's a plugin controller, and we should use the area name instead of surface
string prefixPathSegment = areaName.IsNullOrWhiteSpace() ? "Surface" : areaName;
string prefixPathSegment = areaName.IsNullOrWhiteSpace() ? "Surface" : areaName!;
endpoints.MapUmbracoRoute(
controllerType,

View File

@@ -14,6 +14,6 @@ namespace Umbraco.Cms.Web.Common.Security
Task<IdentityResult> UpdateExternalAuthenticationTokensAsync(ExternalLoginInfo externalLogin);
Task<SignInResult> ExternalLoginSignInAsync(ExternalLoginInfo loginInfo, bool isPersistent, bool bypassTwoFactor = false);
Task<MemberIdentityUser> GetTwoFactorAuthenticationUserAsync();
Task<SignInResult> TwoFactorSignInAsync(string provider, string code, bool isPersistent, bool rememberClient);
Task<SignInResult> TwoFactorSignInAsync(string? provider, string? code, bool isPersistent, bool rememberClient);
}
}