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())); }
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())); }