Exemplo n.º 1
0
        public ReceiveMessages()
        {
            configuration = new ConfigurationHelper();

            //get ServiceBusConnectionString from appsettings.json
            ServiceBusConnectionString = configuration.GetServiceBusConnectionString();

            //get QueueName from appsettings.json
            QueueName = configuration.GetQueueNameString();

            queueClient = new QueueClient(ServiceBusConnectionString, QueueName);
            file        = new WrittenFileHelper();


            RegisterOnMessageHandlerAndReceiveMessages();
        }