将Azure文件同步提供程序设置为“PreviewMode” [英] Setting the Azure File Sync Provider to "PreviewMode"

查看:58
本文介绍了将Azure文件同步提供程序设置为“PreviewMode”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在预览模式下运行Azure文件同步提供程序。 我可以简单地跳过对azure存储的实际写入,但我认为这会混淆元数据。 框架中是否有一些东西可以帮助我以
预览模式? 基本上,我想要与filesync提供程序中的previewmode相同。 只需报告所有内容,就像它正在做的那样,但实际上并没有做任何事情(或更新元数据)

I'm wanting to be able to run the Azure file sync provider in preview mode.  I can simply skip the actual writes to the azure storage, however I think that will confuse the meta data.  Is there something baked into the framework that helps me with a preview mode?  Basically, I want the same thing as previewmode in the filesync provider does.  Simply report everything as if it were doing it, but don't actually do anything (or update the meta data)

(仅供参考,天蓝色文件同步提供程序使用完整枚举实现简单提供程序)

(FYI, the azure file sync provider implements the simple provider with full enumeration)

谢谢,

推荐答案

据我所知,没有任何内容可以帮助解决这个具体问题。我会对你是否找到解决方案感兴趣,因为我也会在不久的将来尝试这个。

As far as I can tell there's nothing baked in to help with this specific problem. I would be interested in whether you find a solution to this as I will also be attempting this in the near future.

到目前为止,我能想到的只是检查一个标志而不是写到Azure存储,然后调用

RecoverableErrorReportingContext.RecordRecoverableErrorForChange
让元数据存储知道实际上没有更新任何内容。我认为这将允许完成同步。虽然它不是一个很好的解决方案。

All I can think of so far is to check a flag and not write to Azure storage, then call RecoverableErrorReportingContext.RecordRecoverableErrorForChange to let the metadata store know that nothing was actually updated. I think this would then allow the synchronisation to complete. Though it doesn't feel like a nice solution.


这篇关于将Azure文件同步提供程序设置为“PreviewMode”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆