Skip to content

Commit 7cfd7b7

Browse files
committed
Slightly better name for interface
1 parent 11ed17d commit 7cfd7b7

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

Source/EventFlow/Subscribers/DispatchToEventSubscribers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private async Task DispatchToSubscribersAsync(
101101
cancellationToken)
102102
.ConfigureAwait(false);
103103
var subscribers = _resolver.ResolveAll(subscriberInformation.SubscriberType)
104-
.Cast<ISubscribeTo>()
104+
.Cast<ISubscribe>()
105105
.ToList();
106106

107107
if (!subscribers.Any())

Source/EventFlow/Subscribers/IDispatchToSubscriberLog.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ namespace EventFlow.Subscribers
3131
public interface IDispatchToSubscriberLog
3232
{
3333
Task HandleEventBeginAsync(
34-
ISubscribeTo subscriberTo,
34+
ISubscribe subscriberTo,
3535
IDomainEvent domainEvent,
3636
CancellationToken cancellationToken);
3737

3838
Task HandleEventFailedAsync(
39-
ISubscribeTo subscriberTo,
39+
ISubscribe subscriberTo,
4040
IDomainEvent domainEvent,
4141
Exception exception,
4242
bool swallowException,
4343
CancellationToken cancellationToken);
4444

4545
Task HandleEventDoneAsync(
46-
ISubscribeTo subscriberTo,
46+
ISubscribe subscriberTo,
4747
IDomainEvent domainEvent,
4848
CancellationToken cancellationToken);
4949
}

Source/EventFlow/Subscribers/ISubscribeTo.cs renamed to Source/EventFlow/Subscribers/ISubscribe.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace EventFlow.Subscribers
2525
{
26-
public interface ISubscribeTo
26+
public interface ISubscribe
2727
{
2828
}
29-
}
29+
}

Source/EventFlow/Subscribers/ISubscribeAsynchronousTo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
namespace EventFlow.Subscribers
3030
{
31-
public interface ISubscribeAsynchronousTo<TAggregate, in TIdentity, in TEvent> : ISubscribeTo
31+
public interface ISubscribeAsynchronousTo<TAggregate, in TIdentity, in TEvent> : ISubscribe
3232
where TAggregate : IAggregateRoot<TIdentity>
3333
where TIdentity : IIdentity
3434
where TEvent : IAggregateEvent<TAggregate, TIdentity>

Source/EventFlow/Subscribers/ISubscribeSynchronousTo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
namespace EventFlow.Subscribers
3030
{
31-
public interface ISubscribeSynchronousTo<TAggregate, in TIdentity, in TEvent> : ISubscribeTo
31+
public interface ISubscribeSynchronousTo<TAggregate, in TIdentity, in TEvent> : ISubscribe
3232
where TAggregate : IAggregateRoot<TIdentity>
3333
where TIdentity : IIdentity
3434
where TEvent : IAggregateEvent<TAggregate, TIdentity>

Source/EventFlow/Subscribers/NullDispatchToSubscriberLog.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ namespace EventFlow.Subscribers
3131
public class NullDispatchToSubscriberLog : IDispatchToSubscriberLog
3232
{
3333
public Task HandleEventBeginAsync(
34-
ISubscribeTo subscriberTo,
34+
ISubscribe subscriberTo,
3535
IDomainEvent domainEvent,
3636
CancellationToken cancellationToken)
3737
{
3838
return Task.FromResult(0);
3939
}
4040

4141
public Task HandleEventFailedAsync(
42-
ISubscribeTo subscriberTo,
42+
ISubscribe subscriberTo,
4343
IDomainEvent domainEvent,
4444
Exception exception,
4545
bool swallowException,
@@ -49,7 +49,7 @@ public Task HandleEventFailedAsync(
4949
}
5050

5151
public Task HandleEventDoneAsync(
52-
ISubscribeTo subscriberTo,
52+
ISubscribe subscriberTo,
5353
IDomainEvent domainEvent,
5454
CancellationToken cancellationToken)
5555
{

0 commit comments

Comments
 (0)