DataService Constructor (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.

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

public DataService(
	string serviceName,
	HttpClient httpClient = null


Type: SystemString
httpClient (Optional)
Type: System.Net.HttpHttpClient

Note that if an HttpClient is passed in that it MUST be a different instance than that provided to any other DataService. Whether passed in or created by the DataService, the HttpClient will automatically have its BaseAddress set and will be configured to support for a 'application/json' media type request header.
See Also