C# Class SobekCM.Core.MicroservicesClient.MicroservicesClient_Configuration

Exibir arquivo Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Public Methods

Method Description
Add_Endpoint ( string Key, MicroservicesClient_Endpoint Endpoint ) : void

Add a new single endpoint to this configuration

Add_Endpoint ( string Key, string URL, Microservice_Endpoint_Protocol_Enum Protocol ) : void

Add a new single endpoint to this configuration

Add_Endpoint ( string Key, string URL, string Protocol ) : void

Add a new single endpoint to this configuration

Change_Base_URL ( string Original, string New ) : void

Change the base URL for the microservices endpoints

MicroservicesClient_Configuration ( ) : System

Constructor for a new instance of the MicroservicesClient_Configuration class

MicroservicesClient_Configuration ( ) : System.Collections.Generic

Constructor for a new instance of the MicroservicesClient_Configuration class

this ( string Key ) : MicroservicesClient_Endpoint

Reference a single microservices client endpoint configuration, via the lookup key

Private Methods

Method Description
build_dictionary ( ) : void

Method Details

Add_Endpoint() public method

Add a new single endpoint to this configuration
public Add_Endpoint ( string Key, MicroservicesClient_Endpoint Endpoint ) : void
Key string Key used for subsequent lookups from this configuration
Endpoint MicroservicesClient_Endpoint Fully pre-constructed microservice client endpoint configuration object
return void

Add_Endpoint() public method

Add a new single endpoint to this configuration
public Add_Endpoint ( string Key, string URL, Microservice_Endpoint_Protocol_Enum Protocol ) : void
Key string Key used for subsequent lookups from this configuration
URL string Complete URL for this microservices endpoint
Protocol Microservice_Endpoint_Protocol_Enum Protocol to use when connecting to this endpoint, via the URL ( JSON or ProtoBuf )
return void

Add_Endpoint() public method

Add a new single endpoint to this configuration
public Add_Endpoint ( string Key, string URL, string Protocol ) : void
Key string Key used for subsequent lookups from this configuration
URL string Complete URL for this microservices endpoint
Protocol string Protocol to use when connecting to this endpoint, via the URL ( JSON or ProtoBuf )
return void

Change_Base_URL() public method

Change the base URL for the microservices endpoints
public Change_Base_URL ( string Original, string New ) : void
Original string Original URL, which must match EXACTLY the ones present in the microservices
New string New URL to replace that with
return void

MicroservicesClient_Configuration() public method

Constructor for a new instance of the MicroservicesClient_Configuration class
public MicroservicesClient_Configuration ( ) : System
return System

MicroservicesClient_Configuration() public method

Constructor for a new instance of the MicroservicesClient_Configuration class
public MicroservicesClient_Configuration ( ) : System.Collections.Generic
return System.Collections.Generic

this() public method

Reference a single microservices client endpoint configuration, via the lookup key
public this ( string Key ) : MicroservicesClient_Endpoint
Key string Key to find the microservices client endpoint configuration
return MicroservicesClient_Endpoint