示例#1
0
        public async Task StartListeningForGasReadings()
        {
            if (this._currentQueueUrl == null)
            {
                this._currentQueueUrl = await AwsService.CreateQueueAndReturnUrl();

                this._currentSubscriptionArn = await AwsService.SubscribeQueueToGasNotificationTopic(this._currentQueueUrl);

                ProcessNewNotificationsRegularly(NotificationPollIntervalInMs);
            }
        }