コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Azure.Storage.Blobs.BlobServiceClient   serviceClient   = new Azure.Storage.Blobs.BlobServiceClient("DefaultEndpointsProtocol=https;AccountName=havittempstorage;AccountKey=/0000000000000000000000000000000000000000000000000000000000000000000000000000000000000==;EndpointSuffix=core.windows.net");
     Azure.Storage.Blobs.BlobContainerClient containerClient = serviceClient.GetBlobContainerClient("any_container");
     Azure.Storage.Blobs.BlobClient          blobClient      = containerClient.GetBlobClient("abc.txt");
     blobClient.Exists();             // just run the method
 }
コード例 #2
0
        // This method gets called by the runtime. Use this method to add services to the container.
        // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvcCore();

            services.AddWivuuGlobalCache(options =>
            {
                var connString = "UseDevelopmentStorage=true";

                var container = new Azure.Storage.Blobs.BlobContainerClient(connString, "samplecache");
                container.CreateIfNotExists();

                options.StorageProvider       = new Wivuu.GlobalCache.AzureStorage.BlobStorageProvider(container);
                options.SerializationProvider = new Wivuu.GlobalCache.BinarySerializer.BinarySerializationProvider();
            });
        }
コード例 #3
0
 public AzureStorageMessageDataRepository(BlobServiceClient client, string containerName, IBlobNameGenerator nameGenerator)
 {
     _container     = client.GetBlobContainerClient(containerName);
     _nameGenerator = nameGenerator;
 }
 public EventProcessorClient(Azure.Storage.Blobs.BlobContainerClient checkpointStore, string consumerGroup, string connectionString)
 {
 }
 public EventProcessorClient(Azure.Storage.Blobs.BlobContainerClient checkpointStore, string consumerGroup, string connectionString, string eventHubName, Azure.Messaging.EventHubs.EventProcessorClientOptions clientOptions)
 {
 }
 public EventProcessorClient(Azure.Storage.Blobs.BlobContainerClient checkpointStore, string consumerGroup, string fullyQualifiedNamespace, string eventHubName, Azure.Core.TokenCredential credential, Azure.Messaging.EventHubs.EventProcessorClientOptions clientOptions = null)
 {
 }
 public static Azure.Storage.Blobs.Specialized.BlobBatchClient GetBlobBatchClient(this Azure.Storage.Blobs.BlobContainerClient client)
 {
     throw null;
 }
 public BlobBatchClient(Azure.Storage.Blobs.BlobContainerClient client)
 {
 }
 public BlobCheckpointStore(Azure.Storage.Blobs.BlobContainerClient blobContainerClient)
 {
 }
コード例 #10
0
        private static Azure.Storage.Blobs.BlobContainerClient EnsureClientCache(string key, Azure.Storage.Blobs.BlobContainerClient client)
        {
            lock (_clientCache)
            {
                if (false == _clientCache.ContainsKey(key))
                {
                    _clientCache.Add(key, client);
                }
            }

            return(client);
        }
 public static Azure.Storage.Blobs.Specialized.EncryptedBlockBlobClient GetEncryptedBlockBlobClient(this Azure.Storage.Blobs.BlobContainerClient client, string blobName)
 {
     throw null;
 }