server: enable nullable annotations in legacy files
All checks were successful
Dotnet build and test / build (pull_request) Successful in 4m44s

This commit is contained in:
Paul Schneider 2026-09-06 16:11:37 +01:00
commit f8abb22423
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
55 changed files with 110 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#nullable enable annotations
 
using IdentityServer8; using IdentityServer8;
using IdentityServer8.Models; using IdentityServer8.Models;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
namespace Yavsc.Server namespace Yavsc.Server
{ {

View file

@ -1,3 +1,5 @@
#nullable enable annotations
namespace Yavsc.Server.Exceptions; namespace Yavsc.Server.Exceptions;
[Serializable] [Serializable]

View file

@ -1,3 +1,5 @@
#nullable enable annotations
namespace Yavsc.Services namespace Yavsc.Services
{ {
[Serializable] [Serializable]

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Globalization; using System.Globalization;
using Yavsc.Billing; using Yavsc.Billing;
using Yavsc.Models.Billing; using Yavsc.Models.Billing;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Security.Claims; using System.Security.Claims;
using System.Text; using System.Text;
using System.Text.Json; using System.Text.Json;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Security.Claims; using System.Security.Claims;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Yavsc.Models.Drawing; using Yavsc.Models.Drawing;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Yavsc.Models.Billing; using Yavsc.Models.Billing;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Net; using System.Net;
using System.Net.Http.Headers; using System.Net.Http.Headers;
using Yavsc.Server.Model; using Yavsc.Server.Model;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using System.Security.Claims; using System.Security.Claims;
using Yavsc.Models; using Yavsc.Models;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// //
// ChatHub.cs // ChatHub.cs
// //

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// //
// ChatHub.cs // ChatHub.cs
// //

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json; using Newtonsoft.Json;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json; using Newtonsoft.Json;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
namespace Yavsc.Models.Billing namespace Yavsc.Models.Billing
{ {
public partial class histoestim public partial class histoestim

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json; using Newtonsoft.Json;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json; using Newtonsoft.Json;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// //
// Period.cs // Period.cs
// //

View file

@ -1,3 +1,5 @@
#nullable enable annotations
namespace Yavsc.Models; namespace Yavsc.Models;
public class ErrorViewModel public class ErrorViewModel

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// //
// BrusherProfile.cs // BrusherProfile.cs

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Microsoft.Extensions.Localization; using Microsoft.Extensions.Localization;
using Yavsc.Interfaces.Workflow; using Yavsc.Interfaces.Workflow;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing; using Yavsc.Models.Billing;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Yavsc.Interfaces.Workflow; using Yavsc.Interfaces.Workflow;
namespace Yavsc.Models.Haircut namespace Yavsc.Models.Haircut

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing; using Yavsc.Models.Billing;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection; using System.Reflection;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// //
// HaircutQueryInfo.cs // HaircutQueryInfo.cs

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// // GitClone.cs // // GitClone.cs
// /* // /*
// paul 21/06/2018 11:27 20182018 6 21 // paul 21/06/2018 11:27 20182018 6 21

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Diagnostics; using System.Diagnostics;
namespace Yavsc.Server.Models.IT.SourceCode namespace Yavsc.Server.Models.IT.SourceCode

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Diagnostics; using System.Diagnostics;
namespace Yavsc.Server.Models.IT.SourceCode namespace Yavsc.Server.Models.IT.SourceCode

View file

@ -1,3 +1,5 @@
#nullable enable annotations
namespace Yavsc.Models.Auth namespace Yavsc.Models.Auth
{ {
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// Yavsc.Models.Kyc/TrustDeclaration.cs // Yavsc.Models.Kyc/TrustDeclaration.cs
namespace Yavsc.Models.Kyc namespace Yavsc.Models.Kyc
{ {

View file

@ -1,3 +1,5 @@
#nullable enable annotations
// Yavsc.Models.Kyc/TrustToken.cs // Yavsc.Models.Kyc/TrustToken.cs
namespace Yavsc.Models.Kyc namespace Yavsc.Models.Kyc
{ {

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
namespace Yavsc.Models.Relationship namespace Yavsc.Models.Relationship
{ {

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json; using Newtonsoft.Json;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Diagnostics; using System.Diagnostics;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Yavsc.Moderation; using Yavsc.Moderation;
using Yavsc.Abstract.Interfaces; using Yavsc.Abstract.Interfaces;
using Anthropic.SDK; using Anthropic.SDK;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Net.WebSockets; using System.Net.WebSockets;
using Yavsc.Models; using Yavsc.Models;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using MailKit.Net.Smtp; using MailKit.Net.Smtp;
using MailKit.Security; using MailKit.Security;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.Security.Claims; using System.Security.Claims;
using IdentityModel; using IdentityModel;
using IdentityServer8.Models; using IdentityServer8.Models;

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using Yavsc.Models.Relationship; using Yavsc.Models.Relationship;
namespace Yavsc namespace Yavsc

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;

2
src/Yavsc.Server/ViewModels/Account/SignInModel.cs Executable file → Normal file
View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Yavsc.ViewModels.Account namespace Yavsc.ViewModels.Account

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Yavsc.ViewModels.Account namespace Yavsc.ViewModels.Account

View file

@ -1,3 +1,5 @@
#nullable enable annotations
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Yavsc.ViewModels.Account namespace Yavsc.ViewModels.Account