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