Exemplo n.º 1
0
        static async Task Main(string[] args)
        {
            ServiceFactory    fctry   = new ServiceFactory();
            ProcessingService service = await fctry.CreateProcessingService();

            CommunicationService comService = await CommunicationService.CreateAsync();
        }
Exemplo n.º 2
0
        public static async Task <CommunicationService> CreateAsync()
        {
            CommunicationService service = new CommunicationService();
            await service.InitializeAsync();

            return(service);
        }