dev #2
@ -180,4 +180,10 @@ public class SampleAppService : CollectBusAppService, ISampleAppService
|
||||
var aa = LazyServiceProvider.GetKeyedService<IProtocolPlugin>("TestProtocolPlugin");
|
||||
return aa == null;
|
||||
}
|
||||
|
||||
//[AllowAnonymous]
|
||||
//public async Task KafkaAsync()
|
||||
//{
|
||||
|
||||
//}
|
||||
}
|
||||
|
||||
@ -7,10 +7,10 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace JiShe.CollectBus.Kafka.Producer
|
||||
{
|
||||
public interface IProducerService<TKey, TValue>
|
||||
public interface IProducerService
|
||||
{
|
||||
Task ProduceAsync(string topic, TKey key, TValue value);
|
||||
Task ProduceAsync(string topic, TValue value);
|
||||
Task ProduceAsync<TKey, TValue>(string topic, TKey key, TValue value);
|
||||
Task ProduceAsync<TKey,TValue>(string topic, TValue value);
|
||||
void Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user