def METHOD_NAME(connection_string, service):
    # Split into key=value pairs removing empties, then split the pairs into a dict
    config = dict(s.split('=', 1) for s in connection_string.split(';') if s)
    # Authentication
    account_name = config.get('AccountName')
    account_key = config.get('AccountKey')
    sas_token = config.get('SharedAccessSignature')
    # Emulator
    is_emulated = config.get('UseDevelopmentStorage')
    # Basic URL Configuration
    protocol = config.get('DefaultEndpointsProtocol')
    endpoint_suffix = config.get('EndpointSuffix')
    # Custom URLs
    endpoint = config.get(_CONNECTION_ENDPOINTS[service])
    endpoint_secondary = config.get(_CONNECTION_ENDPOINTS_SECONDARY[service])
    return _ServiceParameters(service,
                              account_name=account_name,
                              account_key=account_key,
                              sas_token=sas_token,
                              is_emulated=is_emulated,
                              protocol=protocol,
                              endpoint_suffix=endpoint_suffix,
                              custom_domain=endpoint,
                              custom_domain_secondary=endpoint_secondary)