DataService Constructor (String, HttpClient) Breeze.sharp
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: 0.6.0.5 (0.6.0.5)
Syntax

public DataService(
	string serviceName,
	HttpClient httpClient = null
)

Parameters

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

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

Reference