Rename local variable: rawPublisher to supportsEventBoxes.

pull/10008/head
Halil İbrahim Kalkan 4 years ago
parent cc14ae6559
commit fc70729d54

@ -6,13 +6,13 @@ namespace Volo.Abp.EventBus.Boxes
{ {
public static ISupportsEventBoxes AsSupportsEventBoxes(this IDistributedEventBus eventBus) public static ISupportsEventBoxes AsSupportsEventBoxes(this IDistributedEventBus eventBus)
{ {
var rawPublisher = eventBus as ISupportsEventBoxes; var supportsEventBoxes = eventBus as ISupportsEventBoxes;
if (rawPublisher == null) if (supportsEventBoxes == null)
{ {
throw new AbpException($"Given type ({eventBus.GetType().AssemblyQualifiedName}) should implement {nameof(ISupportsEventBoxes)}!"); throw new AbpException($"Given type ({eventBus.GetType().AssemblyQualifiedName}) should implement {nameof(ISupportsEventBoxes)}!");
} }
return rawPublisher; return supportsEventBoxes;
} }
} }
} }
Loading…
Cancel
Save