Skip to content

Commit

Permalink
Moved other persistence stored into shared area
Browse files Browse the repository at this point in the history
  • Loading branch information
jezzsantos committed Aug 18, 2024
1 parent 29443dc commit fdc69e4
Show file tree
Hide file tree
Showing 23 changed files with 130 additions and 151 deletions.
99 changes: 0 additions & 99 deletions src/Infrastructure.Persistence.Common/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 0 additions & 33 deletions src/Infrastructure.Persistence.Common/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -75,39 +75,6 @@
<data name="EventSourcingDddCommandStore_PublishFailed" xml:space="preserve">
<value>Publishing of changed events for {0} failed.</value>
</data>
<data name="AnyStore_MissingId" xml:space="preserve">
<value>Id cannot be empty</value>
</data>
<data name="AnyStore_MissingContainerName" xml:space="preserve">
<value>ContainerName cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingBlobName" xml:space="preserve">
<value>BlobName cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingContentType" xml:space="preserve">
<value>ContentType cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingQueueName" xml:space="preserve">
<value>QueueName cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingQueueMessage" xml:space="preserve">
<value>Message cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingEntityName" xml:space="preserve">
<value>EntityName cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingEntityId" xml:space="preserve">
<value>EntityId cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingTopicName" xml:space="preserve">
<value>TopicName cannot be empty</value>
</data>
<data name="InProcessInMemDataStore_MissingSubscriptionName" xml:space="preserve">
<value>SubscriptionName cannot be empty</value>
</data>
<data name="LocalMachineJsonFileStore_VerifyRootPath_CreateFailed" xml:space="preserve">
<value>The specified root path: {0}, is not a valid path or for some reason cannot be created on this local machine.</value>
</data>
<data name="EventNotifyingStoreExtensions_OnComplete_FailedToNotify" xml:space="preserve">
<value>Failed to notify new events for: {0}</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if TESTINGONLY
using Infrastructure.Persistence.Common.ApplicationServices;
using Infrastructure.Persistence.Interfaces;
using Infrastructure.Persistence.Shared.ApplicationServices;
using JetBrains.Annotations;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if TESTINGONLY
using Infrastructure.Persistence.Common.ApplicationServices;
using Infrastructure.Persistence.Interfaces;
using Infrastructure.Persistence.Shared.ApplicationServices;
using JetBrains.Annotations;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Infrastructure.Persistence.Interfaces;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class InProcessInMemStore : IBlobStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using QueryAny;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class InProcessInMemStore : IDataStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
using Common.Extensions;
using Domain.Interfaces;
using Domain.Interfaces.Entities;
using Infrastructure.Persistence.Common.ApplicationServices;
using Infrastructure.Persistence.Common.Extensions;
using Infrastructure.Persistence.Interfaces;
using QueryAny;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class InProcessInMemStore : IEventStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Infrastructure.Persistence.Interfaces.ApplicationServices;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class InProcessInMemStore : IMessageBusStore, IMessageBusStoreTrigger
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Infrastructure.Persistence.Interfaces.ApplicationServices;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class InProcessInMemStore : IQueueStore, IQueueStoreTrigger
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Infrastructure.Persistence.Interfaces;
using Infrastructure.Persistence.Interfaces.ApplicationServices;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

/// <summary>
/// Provides a combined store that persists all data to memory, in the current process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Infrastructure.Persistence.Interfaces;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class LocalMachineJsonFileStore : IBlobStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using QueryAny;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class LocalMachineJsonFileStore : IDataStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
using Common.Extensions;
using Domain.Interfaces;
using Domain.Interfaces.Entities;
using Infrastructure.Persistence.Common.ApplicationServices;
using Infrastructure.Persistence.Common.Extensions;
using Infrastructure.Persistence.Interfaces;
using QueryAny;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class LocalMachineJsonFileStore : IEventStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Infrastructure.Persistence.Interfaces.ApplicationServices;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class LocalMachineJsonFileStore : IMessageBusStore, IMessageBusStoreTrigger
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Infrastructure.Persistence.Interfaces.ApplicationServices;
using Task = System.Threading.Tasks.Task;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

partial class LocalMachineJsonFileStore : IQueueStore, IQueueStoreTrigger
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Infrastructure.Persistence.Interfaces.ApplicationServices;
using Polly;

namespace Infrastructure.Persistence.Common.ApplicationServices;
namespace Infrastructure.Persistence.Shared.ApplicationServices;

/// <summary>
/// Provides a combined store that persists all data to individual files of JSON on the local hard drive.
Expand Down
81 changes: 81 additions & 0 deletions src/Infrastructure.Persistence.Shared/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fdc69e4

Please sign in to comment.