The WebServiceAppointmentController provides a facade over a SchedulerProviderBase object and is used to call your provider from web services.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class WebServiceAppointmentController : IDisposable
Inheritance: objectWebServiceAppointmentController
Implements:
Inherited Members
Constructors
Instantiates a new WebServiceAppointmentController based on the default provider configured in web.config.
public WebServiceAppointmentController()
If there is no provider configured in the web.config file a ConfigurationException will be thrown.
Instantiates a new WebServiceAppointmentController based on the supplied SchedulerProviderBase
public WebServiceAppointmentController(SchedulerProviderBase provider)
The provider which will be used
Instantiates a new WebServiceAppointmentController by using the specified provider name.
public WebServiceAppointmentController(string providerName)
The name of the provider configured in web.config
Properties
Gets or sets the comparer instance used to determine the appointment ordering within the same slot. By default, appointments are ordered by start time and duration.
public IComparer<Appointment> AppointmentComparer { get; set; }
You need to implement an appointment comparer only if you've overriden the client-side Telerik.Web.UI.Appointment.prototype.compare(appointment) function. In this case both the server-side and client-side implementation must work in the same manner.
A factory for appointment instances.
public IAppointmentFactory AppointmentFactory { get; set; }
The default factory returns instances of the Appointment class.
WebServiceAppointmentController needs to create appointment instances before passing them to the provider. You can use custom appointment classes by implementing an IAppointmentFactory and setting this property.
Methods
Creates a recurrence exception with the specified appointment data and returns the available appointments.
public IEnumerable<AppointmentData> CreateRecurrenceException(ISchedulerInfo schedulerInfo, AppointmentData recurrenceExceptionData)
A ISchedulerInfo object which contains the current time period.
recurrenceExceptionDataAppointmentDataA AppointmentData object which contains the exception properties.
Returns:Creates the recurrence exception.
public IEnumerable<T> CreateRecurrenceException<T>(ISchedulerInfo schedulerInfo, T recurrenceExceptionData) where T : IAppointmentData, new()
The scheduler info.
recurrenceExceptionDataTThe recurrence exception data.
Returns:IEnumerable<T>
Deletes the specified appointment and returns the available appointments.
public IEnumerable<AppointmentData> DeleteAppointment(ISchedulerInfo schedulerInfo, AppointmentData appointmentData, bool deleteSeries)
A ISchedulerInfo object which contains the current time period.
appointmentDataAppointmentDataA AppointmentData which represents the apointment that shoud be deleted.
deleteSeriesboolSpecified wether to delete the recurring series if the specified appointment is recurrence master.
Returns:Deletes the appointment.
public IEnumerable<T> DeleteAppointment<T>(ISchedulerInfo schedulerInfo, T appointmentData, bool deleteSeries) where T : IAppointmentData, new()
The scheduler info.
appointmentDataTThe appointment data.
deleteSeriesboolThe delete series.
Returns:IEnumerable<T>
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
public IEnumerable<T> GetAppointment<T>(ISchedulerInfo schedulerInfo, Appointment appointment) where T : IAppointmentData, new()
IEnumerable<T>
Gets the appointments corresponding to specified time period
public IEnumerable<AppointmentData> GetAppointments(ISchedulerInfo schedulerInfo)
Contains the current time period
Returns:Gets the appointments.
public IEnumerable<T> GetAppointments<T>(ISchedulerInfo schedulerInfo) where T : IAppointmentData, new()
The scheduler info.
Returns:IEnumerable<T>
Returns the resources of all appointments within the specified time period.
public IEnumerable<ResourceData> GetResources(ISchedulerInfo schedulerInfo)
The time period
Returns:Gets the resources.
public IEnumerable<T> GetResources<T>(ISchedulerInfo schedulerInfo) where T : IResourceData, new()
The scheduler info.
Returns:IEnumerable<T>
Inserts the specified appointment and returns the available appointments.
public IEnumerable<AppointmentData> InsertAppointment(ISchedulerInfo schedulerInfo, AppointmentData appointmentData)
A ISchedulerInfo object which contains the current time period.
appointmentDataAppointmentDataA AppointmentData object which contains the appointment properties.
Returns:Inserts the appointment.
public IEnumerable<T> InsertAppointment<T>(ISchedulerInfo schedulerInfo, T appointmentData) where T : IAppointmentData, new()
The scheduler info.
appointmentDataTThe appointment data.
Returns:IEnumerable<T>
Removes all recurrence exceptions of the specified recurrence master and returns the available appointments.
public IEnumerable<AppointmentData> RemoveRecurrenceExceptions(ISchedulerInfo schedulerInfo, AppointmentData masterAppointmentData)
A ISchedulerInfo object which contains the current time period.
masterAppointmentDataAppointmentDataA AppointmentData object which is the recurrence master.
Returns:Removes the recurrence exceptions.
public IEnumerable<T> RemoveRecurrenceExceptions<T>(ISchedulerInfo schedulerInfo, T masterAppointmentData) where T : IAppointmentData, new()
The scheduler info.
masterAppointmentDataTThe master appointment data.
Returns:IEnumerable<T>
Updates the specified appointment and returns the available appointments.
public IEnumerable<AppointmentData> UpdateAppointment(ISchedulerInfo schedulerInfo, AppointmentData appointmentData)
A ISchedulerInfo object which contains the current time period.
appointmentDataAppointmentDataA AppointmentData object which contains the appointment properties.
Returns:Updates the appointment.
public IEnumerable<T> UpdateAppointment<T>(ISchedulerInfo schedulerInfo, T appointmentData) where T : IAppointmentData, new()
The scheduler info.
appointmentDataTThe appointment data.
Returns:IEnumerable<T>