Windows桌面应用程序中的2路同步 [英] 2 way sync in Windows Desktop Application

查看:99
本文介绍了Windows桌面应用程序中的2路同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#处理Windows桌面应用程序,其中文件/文件夹从Web服务器传输到计算机中的特定用户文件夹,反之亦然。 (像SkyDrive那样将应用程序中的文件/文件夹复制到用户的skyDrive文件夹中)



所以现在我能够将文件复制到如果系统连接到Internet,则为Web服务器。如果我创建一个文件/文件夹离线,下次我连接到互联网时,我需要将新创建的文件/文件夹复制到Web服务器。离线时基本上是双向同步。有没有办法实现这个。我可以使用Sync Framework实现此功能吗?请帮帮我



提前致谢!

I am working on a Windows Desktop Application using C# where files/folders are transferred from web server to a particular user's folder in the computer and vice versa. (Something like SkyDrive where the files/folders from the application is copied to the user's skyDrive folder)

So right now I am able to copy the files to and from the web server if the system is connected to internet. If I create a file/folder offline and the next time I connect to internet I need to copy the newly created ones to the web server. Basically a 2 way sync while offline. Is there any possible way to implement this.? Can I implement this with Sync Framework ? Please help me

Thanks in advance!

推荐答案

引用:

有没有办法实现这个。?

Is there any possible way to implement this.?

当然。您可以在客户端和服务器端列出文件(它们的属性),然后合并文件夹内容。



Yes, of course. You may list files (an their attributes) on both the client and server side and then merge the folder contents.

引用:

我可以用Sync Framework实现吗?

Can I implement this with Sync Framework ?

我肯定不会阻止你这样做。

I'm not going to prevent you doing that, for sure.


这篇关于Windows桌面应用程序中的2路同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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