|
|
@@ -1,27 +0,0 @@ |
|
|
|
// Copyright (c) .NET Core Community. All rights reserved. |
|
|
|
// Licensed under the MIT License. See License.txt in the project root for license information. |
|
|
|
|
|
|
|
using System; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
|
|
|
|
namespace DotNetCore.CAP.Internal |
|
|
|
{ |
|
|
|
internal class ConsumerInvokerFactory : ISubscribeInvokerFactory |
|
|
|
{ |
|
|
|
private readonly ILoggerFactory _loggerFactory; |
|
|
|
private readonly IServiceProvider _serviceProvider; |
|
|
|
|
|
|
|
public ConsumerInvokerFactory( |
|
|
|
ILoggerFactory loggerFactory, |
|
|
|
IServiceProvider serviceProvider) |
|
|
|
{ |
|
|
|
_loggerFactory = loggerFactory; |
|
|
|
_serviceProvider = serviceProvider; |
|
|
|
} |
|
|
|
|
|
|
|
public ISubscribeInvoker CreateInvoker() |
|
|
|
{ |
|
|
|
return new SubscribeInvoker(_loggerFactory, _serviceProvider); |
|
|
|
} |
|
|
|
} |
|
|
|
} |