Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure Blob更改源缺少Blob追加事件_Azure_Azure Storage Blobs_Azure Storage Account - Fatal编程技术网

Azure Blob更改源缺少Blob追加事件

Azure Blob更改源缺少Blob追加事件,azure,azure-storage-blobs,azure-storage-account,Azure,Azure Storage Blobs,Azure Storage Account,我正在试用Azure Blob Change Feed功能,它在Append Blob中的行为对我来说很奇怪:提要中缺少Append事件 我的设想是: 创建存储帐户,启用更改源功能: 如果不存在,则创建Append Blob(1),并将一些输入附加到其中(2) 在单独的控制台应用程序中获取更改提要条目 public static List<BlobChangeFeedEvent> GetChanges() { var credential = new Client

我正在试用Azure Blob Change Feed功能,它在Append Blob中的行为对我来说很奇怪:提要中缺少Append事件

我的设想是:

  • 创建存储帐户,启用更改源功能:

  • 如果不存在,则创建Append Blob(1),并将一些输入附加到其中(2)

  • 在单独的控制台应用程序中获取更改提要条目

     public static List<BlobChangeFeedEvent> GetChanges()
     {
         var credential = new ClientSecretCredential("...", "...");
         BlobChangeFeedClient blobChangeFeedClient = new BlobChangeFeedClient(new Uri("..."), credential);
    
         List<BlobChangeFeedEvent> events = new List<BlobChangeFeedEvent>();
         foreach (BlobChangeFeedEvent changeFeedEvent in blobChangeFeedClient.GetChanges())
         {
             events.Add(changeFeedEvent);
         }
         return events;
     }
    
    publicstaticlist GetChanges()
    {
    var-credential=newclientsecretcredential(“…”,“…”);
    BlobChangeFeedClient BlobChangeFeedClient=新BlobChangeFeedClient(新Uri(“…”),凭证);
    列表事件=新列表();
    foreach(blobChangeFeedClient.GetChanges()中的BlobChangeFeedEvent changeFeedEvent)
    {
    添加(changeFeedEvent);
    }
    返回事件;
    }
    
  • 问题是,在运行了几次
    WriteBlob
    方法之后,我只得到一个与blob创建相对应的变更提要事件,并且提要中缺少后续的附件,但是输入被成功地追加到blob资源


    问题是为什么它会这样工作?关于文档中的更改提要,我没有发现任何关于追加Blob Blob类型的特殊信息。

    目前,不支持
    追加Blob的
    追加事件

    根据,仅支持以下
    事件类型

    • 水滴

    • 删除

    • BlobProperties已更新

    • BlobSnapshotCreated

    Azure.Storage.Blobs.ChangeFeed
    包中,没有
    append事件类型

    已提交其中一个,希望可以在将来的版本中添加。

    不支持“附加事件类型”,有关详细信息,请参阅下面的答案。如果答案是有帮助的,你能接受它作为答案吗?谢谢
     public static List<BlobChangeFeedEvent> GetChanges()
     {
         var credential = new ClientSecretCredential("...", "...");
         BlobChangeFeedClient blobChangeFeedClient = new BlobChangeFeedClient(new Uri("..."), credential);
    
         List<BlobChangeFeedEvent> events = new List<BlobChangeFeedEvent>();
         foreach (BlobChangeFeedEvent changeFeedEvent in blobChangeFeedClient.GetChanges())
         {
             events.Add(changeFeedEvent);
         }
         return events;
     }