Browse Source

Provide access to persistence.

pull/342/head
Sebastian 7 years ago
parent
commit
90d373abc7
  1. 5
      src/Squidex.Infrastructure/Orleans/GrainOfGuid{T}.cs
  2. 5
      src/Squidex.Infrastructure/Orleans/GrainOfString{T}.cs

5
src/Squidex.Infrastructure/Orleans/GrainOfGuid{T}.cs

@ -23,6 +23,11 @@ namespace Squidex.Domain.Apps.Entities.Apps.Indexes
public Guid Key { get; private set; }
protected IPersistence<T> Persistence
{
get { return persistence; }
}
protected GrainOfGuid(IStore<Guid> store)
{
Guard.NotNull(store, nameof(store));

5
src/Squidex.Infrastructure/Orleans/GrainOfString{T}.cs

@ -22,6 +22,11 @@ namespace Squidex.Domain.Apps.Entities.Apps.Indexes
protected T State { get; set; }
protected IPersistence<T> Persistence
{
get { return persistence; }
}
protected GrainOfString(IStore<string> store)
{
Guard.NotNull(store, nameof(store));

Loading…
Cancel
Save