Browse Source

Minor renaming.

pull/352/head
Sebastian Stehle 8 years ago
parent
commit
d47a0b0215
  1. 10
      src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs

10
src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs

@ -23,7 +23,6 @@ namespace Squidex.Domain.Apps.Entities.Contents.Text
public sealed class GrainTextIndexer : ITextIndexer, IEventConsumer public sealed class GrainTextIndexer : ITextIndexer, IEventConsumer
{ {
private readonly IGrainFactory grainFactory; private readonly IGrainFactory grainFactory;
private readonly ISemanticLog log;
public string Name public string Name
{ {
@ -35,14 +34,11 @@ namespace Squidex.Domain.Apps.Entities.Contents.Text
get { return "^content-"; } get { return "^content-"; }
} }
public GrainTextIndexer(IGrainFactory grainFactory, ISemanticLog log) public GrainTextIndexer(IGrainFactory grainFactory)
{ {
Guard.NotNull(grainFactory, nameof(grainFactory)); Guard.NotNull(grainFactory, nameof(grainFactory));
Guard.NotNull(log, nameof(log));
this.grainFactory = grainFactory; this.grainFactory = grainFactory;
this.log = log;
} }
public bool Handles(StoredEvent @event) public bool Handles(StoredEvent @event)
@ -71,8 +67,8 @@ namespace Squidex.Domain.Apps.Entities.Contents.Text
case ContentCreated contentCreated: case ContentCreated contentCreated:
await index.IndexAsync(id, Data(contentCreated.Data), true); await index.IndexAsync(id, Data(contentCreated.Data), true);
break; break;
case ContentUpdateProposed contentCreated: case ContentUpdateProposed contentUpdateProposed:
await index.IndexAsync(id, Data(contentCreated.Data), true); await index.IndexAsync(id, Data(contentUpdateProposed.Data), true);
break; break;
case ContentUpdated contentUpdated: case ContentUpdated contentUpdated:
await index.IndexAsync(id, Data(contentUpdated.Data), false); await index.IndexAsync(id, Data(contentUpdated.Data), false);

Loading…
Cancel
Save