本文整理汇总了C#中ReceivedResponses.Get方法的典型用法代码示例。如果您正苦于以下问题:C# ReceivedResponses.Get方法的具体用法?C# ReceivedResponses.Get怎么用?C# ReceivedResponses.Get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ReceivedResponses
的用法示例。
在下文中一共展示了ReceivedResponses.Get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BatchRequestsSucceeded
private void BatchRequestsSucceeded(ReceivedResponses receivedResponses)
{
var helloWorldResponse = receivedResponses.Get<HelloWorldResponse>();
var getServerDateResponse = receivedResponses.Get<GetServerDateResponse>();
AddSucceededRequestsToView("Batch response", helloWorldResponse.Message,
"The server date is: " + getServerDateResponse.Date);
}
示例2: HandleGetProgramOfferingsByLocationCompleted
private void HandleGetProgramOfferingsByLocationCompleted( ReceivedResponses receivedResponses )
{
IsLoading = false;
var response = receivedResponses.Get<GetProgramOfferingsByLocationResponse> ();
_programOfferingList = new ObservableCollection<ProgramOfferingDto> ( response.ProgramOfferingDtos );
_pagedCollectionViewWrapper.WrapInPagedCollectionView ( _programOfferingList, _filter );
}
示例3: HandleDeleteProblemCompleted
private void HandleDeleteProblemCompleted( ReceivedResponses receivedResponse )
{
var response = receivedResponse.Get<DeleteProblemResponse> ();
_problemList = new List<ProblemDto> ( response.ProblemDtos );
PagedCollectionViewWrapper.WrapInPagedCollectionView ( _problemList, _filter );
IsLoading = false;
}
示例4: HandleResetTestDataCompleted
private void HandleResetTestDataCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<ResetTestDataResponse> ();
GetAllClaimBatches ();
IsLoading = false;
}
示例5: HandleClaimBatchesCompleted
private void HandleClaimBatchesCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<GetClaimBatchDisplayNamesByClaimBatchStatusResponse> ();
var claimBatchList = new List<ClaimBatchDisplayNameDto> ( response.ClaimBatchDisplayNames );
PagedCollectionViewWrapper.WrapInPagedCollectionView ( claimBatchList );
IsLoading = false;
}
示例6: MedicationFormStrengthRequestCompleted
private void MedicationFormStrengthRequestCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<MedicationFormStrengthResponse> ();
DTSInfo = response.DTSInfo;
_dtsMedicationCode = GetCodedConceptDto ( response.MainCode );
RaisePropertyChanged ( () => DtsMedicationCode );
if ( Medication != null && Medication.MedicationCodeCodedConcept != null )
{
var origDrugConcept =
response.DTSInfo.Drugs.FirstOrDefault ( d => d.Code == Medication.MedicationCodeCodedConcept.CodedConceptCode );
if ( origDrugConcept == null )
{
response.DTSInfo.SelectedStrength =
response.DTSInfo.Strengths.FirstOrDefault ( s => s.Code == Medication.MedicationCodeCodedConcept.CodedConceptCode );
response.DTSInfo.SelectedForm =
response.DTSInfo.Forms.FirstOrDefault ( f => f.Code == Medication.MedicationCodeCodedConcept.CodedConceptCode );
}
else
{
response.DTSInfo.SelectedStrength =
response.DTSInfo.Strengths.FirstOrDefault (
s => origDrugConcept.Associations.SelectMany ( a => a.Value ).Contains ( s.Code ) );
response.DTSInfo.SelectedForm =
response.DTSInfo.Forms.FirstOrDefault ( f => origDrugConcept.Associations.SelectMany ( a => a.Value ).Contains ( f.Code ) );
}
Medication.RootMedicationCodedConcept = GetCodedConceptDto ( response.MainCode );
}
else if ( Medication != null )
{
Medication.MedicationCodeCodedConcept = GetCodedConceptDto ( response.MainCode );
Medication.RootMedicationCodedConcept = GetCodedConceptDto ( response.MainCode );
}
IsLoading = false;
}
示例7: GetMedicationByKeyCompleted
private void GetMedicationByKeyCompleted( ReceivedResponses receivedResponses )
{
if ( receivedResponses.HasResponse<GetMedicationByKeyResponse> () )
{
IsLoading = false;
var response = receivedResponses.Get<GetMedicationByKeyResponse> ();
Medication = response.Medication;
DtsMedicationCode = Medication.MedicationCodeCodedConcept;
}
}
示例8: HandleTaskGroupCommandCompleted
private void HandleTaskGroupCommandCompleted( ReceivedResponses receivedResponses )
{
IsLoading = false;
var response = receivedResponses.Get<SystemRoleCommandResponse> ();
var validationErrors = response.DataTransferObject.DataErrorInfoCollection.ToList ();
if ( validationErrors.Count () == 0 )
{
var newlyChangedTaskGroup = response.SystemRole;
RefreshForTaskGroupChanges ( newlyChangedTaskGroup );
}
else
{
ProcessValidationErrors ( validationErrors );
}
}
示例9: GetSystemPermissionListCompleted
private void GetSystemPermissionListCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<DtoResponse<SystemPermissionsDto>> ();
var systemPermissionList = response.DataTransferObject.SystemPermissions;
PermissionCollectionView = new PagedCollectionView ( systemPermissionList );
if ( _isTaskGroupWorkingModeInitialized )
{
UpdateSelectedItemInTreeView ( true );
}
}
示例10: HandleSaveSelfPaymentRequestCompleted
private void HandleSaveSelfPaymentRequestCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<DtoResponse<SelfPaymentDto>> ();
SelfPayment = response.DataTransferObject;
IsLoading = false;
if (!SelfPayment.HasErrors)
{
_popupService.ClosePopup ( "AddSelfPaymentView" );
}
}
示例11: HandleCloneRequestCompleted
private void HandleCloneRequestCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<SystemRoleCommandResponse> ();
var validationErrors = response.DataTransferObject.DataErrorInfoCollection.ToList ();
if ( validationErrors.Count () == 0 )
{
var clonedSystemRole = response.SystemRole;
_initialSystemRoleKeyToEdit = clonedSystemRole.Key;
switch ( clonedSystemRole.SystemRoleType )
{
case SystemRoleType.Task:
ExecuteRoleWorkingModeChangedCommand ( true );
break;
case SystemRoleType.TaskGroup:
ExecuteRoleWorkingModeChangedCommand ( false );
break;
}
}
else
{
ProcessValidationErrors ( validationErrors );
}
IsLoading = false;
}
示例12: HandleGetLocationSummaryDtoCompleted
private void HandleGetLocationSummaryDtoCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<DtoResponse<LocationSummaryDto>> ();
LocationSummary = response.DataTransferObject;
RaisePropertyChanged ( () => LocationPrimaryAddress );
RaisePropertyChanged ( () => LocationPrimaryContact );
RaisePropertyChanged ( () => LocationPrimaryPhone );
RaisePropertyChanged ( () => HeaderContext );
IsLoading = false;
}
示例13: HandleGetScheduledActivitiesByClinicalCaseCompleted
private void HandleGetScheduledActivitiesByClinicalCaseCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<GetScheduledVisitActivitiesByClinicalCaseResponse> ();
var results = new ObservableCollection<VisitActivityDto> ( response.ScheduledActivityDtos );
ScheduledActivities = results;
IsLoading = false;
}
示例14: PatientReminderSearchRequestComplete
private void PatientReminderSearchRequestComplete( ReceivedResponses responses )
{
var response = responses.Get<PatientReminderSearchResponse> ();
TotalCount = response.PatientReminderResultsDto.TotalCount;
PatientReminderResults = new PagedCollectionView ( response.PatientReminderResultsDto.Results );
PatientReminderResults.SortDescriptions.Clear ();
if ( SortBy != null )
{
PatientReminderResults.SortDescriptions.Add ( new SortDescription ( SortBy, SortDirection ) );
}
IsLoading = false;
}
示例15: HandleSaveJobFunctionCompleted
private void HandleSaveJobFunctionCompleted( ReceivedResponses receivedResponse )
{
var response = receivedResponse.Get<SystemRoleCommandResponse> ();
var validationErrors = response.DataTransferObject.DataErrorInfoCollection.ToList ();
ProcessSystemRoleResponses ( response.SystemRole, validationErrors );
}