public AccountService(IRequestCoordinator client) { if (client == null) { throw new System.ArgumentNullException(nameof(client)); } this.Client = client; }
/********* ** Public methods *********/ /// <summary>Construct an instance.</summary> /// <param name="message">The underlying HTTP request message.</param> /// <param name="formatters">The formatters used for serializing and deserializing message bodies.</param> /// <param name="dispatcher">Executes an HTTP request.</param> /// <param name="filters">Middleware classes which can intercept and modify HTTP requests and responses.</param> public Request(HttpRequestMessage message, MediaTypeFormatterCollection formatters, Func <IRequest, Task <HttpResponseMessage> > dispatcher, ICollection <IHttpFilter> filters) { this.Message = message; this.Formatters = formatters; this.Dispatcher = dispatcher; this.Filters = filters; this.CancellationToken = CancellationToken.None; this.RequestCoordinator = null; }
public FluentApi(IRequestCoordinator requestCoordinator) { var attributeValidation = new AttributeRequestDataBuilder <T>(); _requestData = attributeValidation.BuildRequestData(); _requestCoordinator = requestCoordinator; _parser = new ResponseParser <T>(); }
public ProfileDataService(IRequestCoordinator client) { this.Client = client; }
/// <summary>Specify the request coordinator for this request.</summary> /// <param name="requestCoordinator">The request coordinator</param> public IRequest WithRequestCoordinator(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; return(this); }
public NotificationService(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; }
public PolyclinicDataService(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; }
public PolyclinicRegionDataService(IRequestCoordinator client) { this.Client = client; }
public BuildingDataService(IRequestCoordinator client) { this.Client = client; }
/// <summary> /// Initializes a new instance of the <see cref="ZoomRetryCoordinator" /> class. /// </summary> /// <param name="config">The retry configuration.</param> /// <param name="tokenHandler">The handler that takes care of renewing expired tokens.</param> public ZoomRetryCoordinator(IEnumerable <IRetryConfig> config, ITokenHandler tokenHandler) : this(tokenHandler) { _defaultRetryCoordinator = new RetryCoordinator(config); }
public AttachmentDataService(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; }
public MedicalRecordDataService(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; }
public AppointmentDataService(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; }
public MedicalSpecializationDataService(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; }
public DoctorDataService(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; }
/// <summary>Set the default request coordinator</summary> /// <param name="requestCoordinator">The request coordinator.</param> /// <remarks>If the request coordinator is null, it will cause requests to be executed once without any retry attempts.</remarks> public IClient SetRequestCoordinator(IRequestCoordinator requestCoordinator) { this.RequestCoordinator = requestCoordinator; return(this); }
public DoctorTimetableViewModel(int doctorId, object parentViewModel, IAppointmentDataService appointmentDataService, IProfileDataService profileDataService, INotificationService notificationService, IEventAggregator eventAggregator, IRequestCoordinator requestCoordinator) { this.DoctorId = doctorId; this.ParentViewModel = parentViewModel; this.AppointmentDataService = appointmentDataService; this.ProfileDataService = profileDataService; this.NotificationService = notificationService; this.EventAggregator = eventAggregator; this.Appointments = new TrulyObservableCollection <CalendarItemWrapper>(); this.UserId = requestCoordinator.UserId.Value; this.LoadedCommand = AsyncCommand.Create(this.OnLoadedAsync); this.SelectedDateChangedCommand = AsyncCommand.Create <DateTime>(this.OnSelectedDateChangedAsync); this.ScheduleAppointmentCommand = AsyncCommand.Create <DateTime>(this.OnScheduleAsync); this.CancelAppointmentCommand = AsyncCommand.Create <int>(this.OnCancelAsync); this.OpenDoctorCommand = new RelayCommand( () => this.EventAggregator.GetEvent <OpenDoctorEvent>().Publish( new OpenDoctorEventArgs { DoctorId = this.DoctorId, ParentViewModel = this })); this.BackCommand = AsyncCommand.Create(async() => { await this.NotificationService.UnsubscribeAsync(this.DoctorId, this.SelectedDate); this.EventAggregator.GetEvent <NavigationEvent>().Publish(parentViewModel); }); BindingOperations.EnableCollectionSynchronization(this.Appointments, lockObject); }
public MedicalCardDataService(IRequestCoordinator client) { this.Client = client; }