1
0
mirror of https://github.com/bitwarden/server synced 2025-12-27 05:33:17 +00:00

[PM-336] Nullable Platform & Unowned Services (#5646)

* Nullable Platform & Unowned Services

* Fix build errors

* Format
This commit is contained in:
Justin Baur
2025-04-15 12:56:58 -04:00
committed by GitHub
parent 84a984a9e6
commit 2242a70e50
22 changed files with 141 additions and 84 deletions

View File

@@ -1,4 +1,6 @@
namespace Bit.Core.Platform.Installations;
#nullable enable
namespace Bit.Core.Platform.Installations;
/// <summary>
/// Command interface responsible for updating data on an `Installation`

View File

@@ -1,4 +1,6 @@
namespace Bit.Core.Platform.Installations;
#nullable enable
namespace Bit.Core.Platform.Installations;
/// <summary>
/// Commands responsible for updating an installation from

View File

@@ -1,4 +1,6 @@
namespace Bit.Core.Platform.Installations;
#nullable enable
namespace Bit.Core.Platform.Installations;
/// <summary>
/// Queries responsible for fetching an installation from
@@ -19,7 +21,7 @@ public class GetInstallationQuery : IGetInstallationQuery
}
/// <inheritdoc cref="IGetInstallationQuery.GetByIdAsync"/>
public async Task<Installation> GetByIdAsync(Guid installationId)
public async Task<Installation?> GetByIdAsync(Guid installationId)
{
if (installationId == default(Guid))
{

View File

@@ -1,4 +1,6 @@
namespace Bit.Core.Platform.Installations;
#nullable enable
namespace Bit.Core.Platform.Installations;
/// <summary>
/// Query interface responsible for fetching an installation from
@@ -16,5 +18,5 @@ public interface IGetInstallationQuery
/// <param name="installationId">The GUID id of the installation.</param>
/// <returns>A task containing an `Installation`.</returns>
/// <seealso cref="T:Bit.Core.Platform.Installations.Repositories.IInstallationRepository"/>
Task<Installation> GetByIdAsync(Guid installationId);
Task<Installation?> GetByIdAsync(Guid installationId);
}

View File

@@ -1,4 +1,6 @@
using Bit.Core.Platform.Installations;
#nullable enable
using Bit.Core.Platform.Installations;
using Microsoft.Extensions.DependencyInjection;
namespace Bit.Core.Platform;

View File

@@ -1,4 +1,6 @@
using Bit.Core.Enums;
#nullable enable
using Bit.Core.Enums;
using Bit.Core.NotificationHub;
namespace Bit.Core.Platform.Push;

View File

@@ -1,4 +1,6 @@
using Bit.Core.Enums;
#nullable enable
using Bit.Core.Enums;
using Bit.Core.NotificationHub;
namespace Bit.Core.Platform.Push.Internal;

View File

@@ -1,4 +1,6 @@
using Bit.Core.Enums;
#nullable enable
using Bit.Core.Enums;
using Bit.Core.IdentityServer;
using Bit.Core.Models.Api;
using Bit.Core.NotificationHub;