private void PublishDeltaManifest(RoamingProfile profile, ISiteAdapter adapter) { using (MemoryStream manifestStream = new MemoryStream(4096)) { ProgressMediator.ChangeProgress(Resources.Text_UI_LogText_PublishingManifest, 75); deltaManifest.Serialize(manifestStream); manifestStream.Seek(0, SeekOrigin.Begin); adapter.PushFile(profile, DeltaManifest.GetManifestPath(deltaManifest.AssociatedProfile), manifestStream); ProgressMediator.ChangeProgress(null, 100); } }
private void PublishDelta(RoamingProfile profile, ISiteAdapter adapter) { using (MemoryStream deltaStream = new MemoryStream(4096)) { ProgressMediator.ChangeProgress(Resources.Text_UI_LogText_PublishingDelta, 25); CurrentDelta.Serialize(deltaStream); deltaStream.Seek(0, SeekOrigin.Begin); adapter.PushFile(profile, Delta.GetPathForDelta(deltaManifest, deltaManifest.DeltaCount), deltaStream); ProgressMediator.ChangeProgress(null, 50); } }