DataService Class Breeze.sharp
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

SystemObject
  Breeze.SharpDataService

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

public class DataService : IJsonSerializable

The DataService type exposes the following members.

Constructors

  NameDescription
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.
Top
Methods

  NameDescription
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.)
Top
Properties

  NameDescription
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
Top
Remarks

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

Reference