Пример #1
0
        public QueueClient(QueueConfiguration configuration)
        {
            this.configuration = configuration;

            this.storageUri = new StorageUri(
                new Uri($"https://{configuration.storageAccount}.queue.core.windows.net"));
        }
Пример #2
0
        public static void ConfigureQueue(this IServiceCollection services, Action <QueueConfiguration> queueoptions)
        {
            var configuration = new QueueConfiguration();

            queueoptions(configuration);

            services.AddTransient <IQueueClient, QueueClient>((sp) => new QueueClient(configuration));
        }