如何使用新的 NodeJS @azure/storage-queue 库连接到开发 Azure 存储(本地)?
How to connect to Development Azure Storage (local) with the new NodeJS @azure/storage-queue library?
旧版:https://www.npmjs.com/package/azure-storage
有一种方法可以简单地连接到本地 Azure Store 模拟器,例如:
var azure = require('azure-storage');
var queueSvc = azure.createQueueService("UseDevelopmentStorage=true");
的替代品或示例
const { QueueServiceClient } = require("@azure/storage-queue");
const queueServiceClient = QueueServiceClient.fromConnectionString("UseDevelopmentStorage=true");
const queueClient = queueServiceClient.getQueueClient("<your queue name>");
// do your stuffs
旧版:https://www.npmjs.com/package/azure-storage 有一种方法可以简单地连接到本地 Azure Store 模拟器,例如:
var azure = require('azure-storage');
var queueSvc = azure.createQueueService("UseDevelopmentStorage=true");
的替代品或示例
const { QueueServiceClient } = require("@azure/storage-queue");
const queueServiceClient = QueueServiceClient.fromConnectionString("UseDevelopmentStorage=true");
const queueClient = queueServiceClient.getQueueClient("<your queue name>");
// do your stuffs