public string RegisterBackupRestoreService(Guid partitionId, long replicaId, IBackupRestoreService service) { Requires.Argument <Guid>("partitionId", partitionId).NotNullOrEmpty(); Requires.Argument <long>("replicaId", replicaId).NotNullOrEmpty(); Requires.Argument <IBackupRestoreService>("service", service).NotNull(); return(Utility.WrapNativeSyncInvokeInMTA(() => this.RegisterBackupRestoreServiceHelper(partitionId, replicaId, service), "BackupRestoreServiceAgent.RegisterBackupRestoreService")); }
public SettingsViewModel(IDialogService dialogService, IMessagingService messagingService, IBackupRestoreService backupRestoreService, ISettingsStorage settingsStorage, ΙStatistics statistics, IExporter exporter) { _dialogService = dialogService; _messagingService = messagingService; _settingsStorage = settingsStorage; _statistics = statistics; _exporter = exporter; _backupRestoreService = backupRestoreService; Title = AppResources.SettingsTitle; SelectItemCommand = new Command <Preference>(OnItemSelected); }
private string RegisterBackupRestoreServiceHelper(Guid partitionId, long replicaId, IBackupRestoreService service) { BackupRestoreServiceBroker broker = new BackupRestoreServiceBroker(service); NativeCommon.IFabricStringResult nativeString = this._nativeAgent.RegisterBackupRestoreService( partitionId, replicaId, broker); return(StringResult.FromNative(nativeString)); }
internal BackupRestoreServiceBroker(IBackupRestoreService service) { this.service = service; }