Exemple #1
0
        public async Task StartAsync(CancellationToken cancellationToken)
        {
            using (LogContext.PushProperty("FunctionId", nameof(StartAsync)))
            {
                Log.Information("Opening Edge Module Connection");
                await ModuleClient.OpenAsync();

                Log.Information("Beginning to Process Messages");
                MessageEmitter messageEmitter = new MessageEmitter(ModuleClient, CancellationTokenSource);
                await messageEmitter.Init();

                messageEmitter.Start();
            }
        }