.net core 注入兩個服務實現同一個接口,而且同時調用兩個接口的實現

public void ConfigureServices(IServiceCollection services) { services.TryAddEnumerable(ServiceDescriptor.Singleton<IProcessingServer, CapProcessingServer>())
相關文章
相關標籤/搜索