public override IServiceInfo Create(Service binding) { string uri = GetUriFromCredentials(binding.Credentials); string username = GetUsernameFromCredentials(binding.Credentials); string password = GetPasswordFromCredentials(binding.Credentials); if (uri == null) { string host = GetHostFromCredentials(binding.Credentials); int port = GetPortFromCredentials(binding.Credentials); string database = GetStringFromCredentials(binding.Credentials, "name"); if (host != null) { uri = new UriInfo(DefaultUriScheme, host, port, username, password, database).ToString(); } } return(Create(binding.Name, uri, username, password)); }
public UriServiceInfo(String id, String uriString) : base(id) { Info = new UriInfo(uriString); }
public UriServiceInfo(string id, string scheme, string host, int port, string username, string password, string path) : base(id) { Info = new UriInfo(scheme, host, port, username, password, path); }