dev #2

Merged
admin merged 176 commits from dev into master 2025-04-18 01:31:49 +00:00
2 changed files with 9 additions and 3 deletions
Showing only changes of commit 6409afa98e - Show all commits

View File

@ -180,4 +180,10 @@ public class SampleAppService : CollectBusAppService, ISampleAppService
var aa = LazyServiceProvider.GetKeyedService<IProtocolPlugin>("TestProtocolPlugin");
return aa == null;
}
//[AllowAnonymous]
//public async Task KafkaAsync()
//{
//}
}

View File

@ -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();
}
}