file scoped namespaces (#565)

This commit is contained in:
Aleh Khantsevich
2025-02-16 11:54:23 +01:00
committed by GitHub
parent cf9869b71e
commit 3ddc1a6229
617 changed files with 32107 additions and 32721 deletions

View File

@@ -2,10 +2,9 @@
using Wino.Core.Domain.Enums;
using Wino.Core.Domain.Interfaces;
namespace Wino.Messaging.Server
{
/// <summary>
/// For delegating authentication/authorization to the server app.
/// </summary>
public record AuthorizationRequested(MailProviderType MailProviderType, MailAccount CreatedAccount, bool ProposeCopyAuthorizationURL) : IClientMessage;
}
namespace Wino.Messaging.Server;
/// <summary>
/// For delegating authentication/authorization to the server app.
/// </summary>
public record AuthorizationRequested(MailProviderType MailProviderType, MailAccount CreatedAccount, bool ProposeCopyAuthorizationURL) : IClientMessage;

View File

@@ -2,13 +2,12 @@
using Wino.Core.Domain.Interfaces;
using Wino.Core.Domain.Models.MailItem;
namespace Wino.Messaging.Server
{
/// <summary>
/// Message to download a missing message.
/// Sent from client to server.
/// </summary>
/// <param name="AccountId">Account id for corresponding synchronizer.</param>
/// <param name="MailCopyId">Mail copy id to download.</param>
public record DownloadMissingMessageRequested(Guid AccountId, IMailItem MailItem) : IClientMessage;
}
namespace Wino.Messaging.Server;
/// <summary>
/// Message to download a missing message.
/// Sent from client to server.
/// </summary>
/// <param name="AccountId">Account id for corresponding synchronizer.</param>
/// <param name="MailCopyId">Mail copy id to download.</param>
public record DownloadMissingMessageRequested(Guid AccountId, IMailItem MailItem) : IClientMessage;

View File

@@ -1,7 +1,6 @@
using Wino.Core.Domain.Entities.Shared;
using Wino.Core.Domain.Interfaces;
namespace Wino.Messaging.Server
{
public record ImapConnectivityTestRequested(CustomServerInformation ServerInformation, bool IsSSLHandshakeAllowed) : IClientMessage;
}
namespace Wino.Messaging.Server;
public record ImapConnectivityTestRequested(CustomServerInformation ServerInformation, bool IsSSLHandshakeAllowed) : IClientMessage;

View File

@@ -1,11 +1,10 @@
using System;
using Wino.Core.Domain.Interfaces;
namespace Wino.Messaging.Server
{
/// <summary>
/// Client message that requests to kill the account synchronizer.
/// </summary>
/// <param name="AccountId">Account id to kill synchronizer for.</param>
public record KillAccountSynchronizerRequested(Guid AccountId) : IClientMessage;
}
namespace Wino.Messaging.Server;
/// <summary>
/// Client message that requests to kill the account synchronizer.
/// </summary>
/// <param name="AccountId">Account id to kill synchronizer for.</param>
public record KillAccountSynchronizerRequested(Guid AccountId) : IClientMessage;

View File

@@ -2,17 +2,16 @@
using Wino.Core.Domain.Interfaces;
using Wino.Core.Domain.Models.Synchronization;
namespace Wino.Messaging.Server
{
/// <summary>
/// Triggers a new mail synchronization if possible.
/// </summary>
/// <param name="Options">Options for synchronization.</param>
public record NewMailSynchronizationRequested(MailSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage, IUIMessage;
namespace Wino.Messaging.Server;
/// <summary>
/// Triggers a new calendar synchronization if possible.
/// </summary>
/// <param name="Options">Options for synchronization.</param>
public record NewCalendarSynchronizationRequested(CalendarSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage;
}
/// <summary>
/// Triggers a new mail synchronization if possible.
/// </summary>
/// <param name="Options">Options for synchronization.</param>
public record NewMailSynchronizationRequested(MailSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage, IUIMessage;
/// <summary>
/// Triggers a new calendar synchronization if possible.
/// </summary>
/// <param name="Options">Options for synchronization.</param>
public record NewCalendarSynchronizationRequested(CalendarSynchronizationOptions Options, SynchronizationSource Source) : IClientMessage;

View File

@@ -1,11 +1,10 @@
using Wino.Core.Domain.Enums;
using Wino.Core.Domain.Interfaces;
namespace Wino.Messaging.Server
{
/// <summary>
/// App close behavior for server is changed.
/// </summary>
/// <param name="ServerBackgroundMode">New server background mode.</param>
public record ServerTerminationModeChanged(ServerBackgroundMode ServerBackgroundMode) : IClientMessage;
}
namespace Wino.Messaging.Server;
/// <summary>
/// App close behavior for server is changed.
/// </summary>
/// <param name="ServerBackgroundMode">New server background mode.</param>
public record ServerTerminationModeChanged(ServerBackgroundMode ServerBackgroundMode) : IClientMessage;

View File

@@ -1,11 +1,10 @@
using System;
using Wino.Core.Domain.Interfaces;
namespace Wino.Core.Domain.Models.Synchronization
{
/// <summary>
/// Client request to server to check whether given account id is in the middle of synchronization.
/// </summary>
/// <param name="AccountId">Account id to check sync existence for.</param>
public record SynchronizationExistenceCheckRequest(Guid AccountId) : IClientMessage;
}
namespace Wino.Core.Domain.Models.Synchronization;
/// <summary>
/// Client request to server to check whether given account id is in the middle of synchronization.
/// </summary>
/// <param name="AccountId">Account id to check sync existence for.</param>
public record SynchronizationExistenceCheckRequest(Guid AccountId) : IClientMessage;

View File

@@ -1,9 +1,8 @@
using Wino.Core.Domain.Interfaces;
namespace Wino.Messaging.Server
{
/// <summary>
/// This message is sent to server to kill itself when UWP app is terminating.
/// </summary>
public record TerminateServerRequested : IClientMessage;
}
namespace Wino.Messaging.Server;
/// <summary>
/// This message is sent to server to kill itself when UWP app is terminating.
/// </summary>
public record TerminateServerRequested : IClientMessage;