public RestHubLifetimeManager(string hubName, ServiceEndpoint endpoint, string productInfo, string appName) { _restApiProvider = new RestApiProvider(endpoint); _productInfo = productInfo; _appName = appName; _hubName = hubName; }
public RestHubLifetimeManager(ServiceManagerOptions serviceManagerOptions, string hubName, string productInfo) { _restApiProvider = new RestApiProvider(serviceManagerOptions.ConnectionString); _productInfo = productInfo; _appName = serviceManagerOptions.ApplicationName; _hubName = hubName; }
public RestHubLifetimeManager(string hubName, ServiceEndpoint endpoint, string productInfo, string appName, JsonSerializerSettings jsonSerializerSettings) { _restApiProvider = new RestApiProvider(endpoint); _productInfo = productInfo; _appName = appName; _hubName = hubName; _restClient.JsonSerializerSettings = jsonSerializerSettings; }
internal ServiceManager(ServiceManagerOptions serviceManagerOptions, string productInfo) { _serviceManagerOptions = serviceManagerOptions; _endpoint = new ServiceEndpoint(_serviceManagerOptions.ConnectionString, EndpointType.Secondary); _endpointProvider = new ServiceEndpointProvider(_endpoint, Options.Create(new ServiceOptions { ApplicationName = _serviceManagerOptions.ApplicationName, Proxy = serviceManagerOptions.Proxy }).Value); _serverNameProvider = new DefaultServerNameProvider(); _productInfo = productInfo; _restClient = new RestClient(); _restApiProvider = new RestApiProvider(_serviceManagerOptions.ConnectionString); }
public RestHubLifetimeManager(ServiceManagerOptions serviceManagerOptions, string hubName) { _restApiProvider = new RestApiProvider(serviceManagerOptions.ConnectionString, hubName); }