コード例 #1
0
        public IEnumerable <uSyncAction> Export(uSyncOptions options)
        {
            var hubClient = new HubClientService(options.ClientId);

            if (options.Clean)
            {
                uSyncService.CleanExportFolder(settings.RootFolder);
            }

            return(uSyncService.Export(settings.RootFolder, new SyncHandlerOptions()
            {
                Group = options.Group
            },
                                       hubClient.Callbacks()));
        }
コード例 #2
0
        public IEnumerable <uSyncAction> Export(uSyncOptions options)
        {
            var hubClient = new HubClientService(hubContext, options.ClientId);

            if (options.Clean)
            {
                uSyncService.CleanExportFolder(uSyncConfig.GetRootFolder());
            }

            return(uSyncService.Export(uSyncConfig.GetRootFolder(), new SyncHandlerOptions()
            {
                Group = options.Group
            },
                                       hubClient.Callbacks()));
        }