none
Setting the Azure File Sync Provider to "PreviewMode" RRS feed

  • Question

  • 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)

    Thanks,


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Saturday, October 23, 2010 8:20 AM

All replies

  • 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.

    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.

    Monday, October 25, 2010 4:46 PM
  • i unmarked this as the answer.  im hoping for a more definitive answer or better solution. 
    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Wednesday, October 27, 2010 5:03 PM
  • Makes sense. I hope there's a better way because my idea isn't very nice, it's just all I can think of.
    Wednesday, October 27, 2010 7:41 PM