private void QueryPartitionEndpoints(List <BackupEnabledServiceReference> backupEnabledServices, Application app, Service service, Partition partition, ResolvedServiceEndpoint endpoint) { var endpointJson = JObject.Parse(endpoint.Address); var serviceEndpoint = endpointJson["Endpoints"][BackupRestoreService.BackupRestoreServiceEndpointName]; if (serviceEndpoint != null) { string endpointAddress = serviceEndpoint.Value <string>(); var serviceDescription = new BackupEnabledServiceReference { ApplicationName = app.ApplicationName, ServiceName = service.ServiceName, Int64RangePartitionGuid = partition.PartitionInformation.Id, Endpoint = new Uri(endpointAddress) }; backupEnabledServices.Add(serviceDescription); } }
public async Task <IActionResult> RestoreBackup([FromBody] BackupEnabledServiceReference service) { await Task.Delay(1); return(View("View", service)); }