Example #1
0
        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"));
        }
Example #2
0
        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);
        }
Example #3
0
        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));
        }
Example #4
0
 internal BackupRestoreServiceBroker(IBackupRestoreService service)
 {
     this.service = service;
 }