DataService Class
A DataService instance is used to encapsulate the details of a single 'service'; this includes a serviceName, a dataService adapterInstance, and whether the service has server side metadata.
Inheritance Hierarchy


Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: (

public class DataService : IJsonSerializable

The DataService type exposes the following members.


Public methodDataService(JNode)
For internal use only.
Public methodDataService(String, HttpClient)
Constructs a new DataService with the option to use an already configured HttpClient. If one is not provided then the DataService will create one internally. In either case it will be available via the HttpClient property.

Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAsync(String)
Public methodGetAsync(String, CancellationToken)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPostAsync
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Public propertyAdapter
Public propertyStatic memberDefaultHttpMessageHandler
The Default HttpMessageHandler to be used in the event that Breeze creates the HttpClient automatically for this service.
Public propertyHasServerMetadata
Public propertyHttpClient
Returns the HttpClient used by this data service. This reference may be used to customize headers, buffer sizes and timeouts.
Public propertyJsonResultsAdapter
Public propertyServerMetadata
Public propertyServiceName
Public propertyUseJsonP

You can construct an EntityManager with either a serviceName or a DataService instance, if you use a serviceName then a DataService is constructed for you. The same applies to the MetadataStore.FetchMetadata method, i.e. it takes either a serviceName or a DataService instance. Each metadataStore contains a list of DataServices, each accessible via its ‘serviceName’. ( see MetadataStore.GetDataService and MetadataStore.addDataService). The ‘addDataService’ method is called internally anytime a MetadataStore.FetchMetadata call occurs with a new dataService ( or service name).
See Also