static async Task Main(string[] args) { ServiceFactory fctry = new ServiceFactory(); ProcessingService service = await fctry.CreateProcessingService(); CommunicationService comService = await CommunicationService.CreateAsync(); }
public async Task <ProcessingService> CreateProcessingService() { ProcessingService service = new ProcessingService(); await service.InitializeAsync(); return(service); }