Click or drag to resize

ScoringProgramDataConnectorHttpClient Class

Exchanges information with the dataconnector using http.
Inheritance Hierarchy

Namespace: BridgeSystems.Bridgemate.DataConnector.ScoringProgramClient
Assembly: BridgeSystems.Bridgemate.DataConnector.ScoringProgramClient (in BridgeSystems.Bridgemate.DataConnector.ScoringProgramClient.dll) Version: 5.0.1014.1+c0d6f9bc4d7d415f4cee902c0a8eb3b5237ddd44
Syntax
C#
public class ScoringProgramDataConnectorHttpClient : ScoringProgramDataConnectorClientCommandManager, 
	IScoringProgramClient

The ScoringProgramDataConnectorHttpClient type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberApiUrlRoot Constructs the full url for the webservice based on whether it is hosted in local host or in the cloud.
Public propertyCredentials The information needed to get access to the http channel for the data communicator.
Public propertyIsActive Always returns true.
(Overrides DataConnectorClientCommandManagerTCommandIsActive)
Public propertyIsSending Only one request can be sent at the same time. So let asynchronous code always check, set and reset this property before, while and after sending a request. Feel free to make more nifty implementations.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public propertyLastHandrecordQueueItemId The id of the last handrecord queue item downloaded from the Data Connector. You can use this to internally accept this item (and all before of the same type).
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public propertyLastParticipantQueueItemId The id of the last participant queue item downloaded from the Data Connector. You can use this to internally accept this item (and all before of the same type).
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public propertyLastPlayerDataQueueItemId The id of the last player data queue item downloaded from the Data Connector. You can use this to internally accept this item (and all before of the same type).
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public propertyLastResultQueueItemId The id of the last result queue item downloaded from the Data Connector. You can use this to internally accept this item (and all before of the same type).
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public propertyLoggingSource The source of the logging records.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public propertyTimeOutInMilliSeconds The timeout for establishing a connection with the Data Connector. If not set the default value DefaultTimeOutInMilliSeconds will be used.
(Inherited from DataConnectorClientCommandManagerTCommand)
Public propertyStatic memberUseLocalHost If set to true will make the client communicate with the local host hosted webservice. Used for debugging only.
Top
Methods
 NameDescription
Public methodAcceptQueueData Signals to the Data Connector synchronously that a specific type of queuedata up to the specified id does not need to be sent again.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodAcceptQueueDataAsync Signals to the Data Connector asynchronously that a specific type of queuedata up to the specified id does not need to be sent again.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodAddSession Adds the given session to a known event synchronously. This event must have been sent to the Data Connector previously using an InitDTO.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodAddSessionAsync Adds the given session to a known event asynchronously. This event must have been sent to the Data Connector previously using an InitDTO.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodClearData Instructs the DataConnector to synchronously clear all incoming and outgoing queuedata and to remove al validation data as well. Use with caution!
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodClearDataAsync Instructs the DataConnector to asynchronously clear all incoming and outgoing queuedata and to remove al validation data as well. Use with caution!
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodConnect Checks if the endpoint can be reached by sending a ping request to it.
Public methodConnect(String) Not implemented for http.
(Overrides DataConnectorClientCommandManagerTCommandConnect(String))
Public methodConnectAsync Checks if the endpoint can be reached by sending a ping request to it.
Public methodConnectAsync(String) Not implemented for http.
(Overrides DataConnectorClientCommandManagerTCommandConnectAsync(String))
Public methodContinue Instructs BCS synchronously to continue working with a previously created event.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodContinueAsync Instructs BCS asynchronously to continue working with a previously created event.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodDisconnect Not implemented for http.
Public methodDisconnectAsync Not implemented for http.
Public methodDisposeReleases all resources used by the ScoringProgramDataConnectorHttpClient
Protected methodDispose(Boolean)Releases the unmanaged resources used by the ScoringProgramDataConnectorHttpClient and optionally releases the managed resources
(Overrides DataConnectorClientCommandManagerTCommandDispose(Boolean))
Public methodDoesSessionExist Does an synchronous check on if the session with the given guid exists.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodDoesSessionExistAsync Does an asynchronous check on if the session with the given guid exists.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodGetAllMovements Returns the movements synchronously for the given session as they are in use by BCS.Mind that the Data Connector itself creates updates to enact movement changes.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodGetAllMovementsAsync Returns the movements asynchronously for the given session as they are in use by BCS.Mind that the Data Connector itself creates updates to enact movement changes.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodGetMovement Returns the movement for the given section synchronously as it is in use by BCS.Mind that the Data Connector itself creates updates to enact movement changes.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodGetMovementAsync Returns the movement asynchronously for the given section as it is in use by BCS.Mind that the Data Connector itself creates updates to enact movement changes.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodInitialize Instructs BCS to create a new sessions with the provided table domain data (scoring groups, sections, tables, rounds). Player names, Results and Handrecords can be included or can be uploaded later. The latter option is considerably less performant.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodInitializeAsync Instructs BCS to create new sessions with the provided table domain data (scoring groups, sections, tables, rounds). Player names, Results and Handrecords can be included or can be uploaded later. The latter option is considerably less performant.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodStatic memberInstance Returns the singleton instance of the client with its ClubdId and LicenceKey properties set to the values of the parameters.
Public methodStatic memberIsServiceAlive 
Public methodIssueManagementCommand Issue a management command to BCS synchronously. This command can either be a query for information on the location of its scoring file, which sessions it is currently administering or which sessions are know to it, or it can be an instruction to shut down.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodIssueManagementCommandAsync Issue a management command to BCS asynchronously. This command can either be a query for information on the location of its scoring file, which sessions it is currently administering or which sessions are known to it, or it can be an instruction to shut down.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Protected methodLogError Logs an exception.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Protected methodLogMethodEntry(String) Logs the entry to a method with its parameters (if any).
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodLogMethodEntry(String, ValueTupleString, Object) Logs the entry to a method with its parameters (if any),
(Inherited from DataConnectorClientCommandManagerTCommand)
Public methodPing Communicates to the Data Connector synchronously to see if it is responsive. This is done by sending a random piece of data and checking of the Data Connector returns it.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPingAsync Communicates to the Data Connector asynchronously to see if it is responsive. This is done by sending a random piece of data and checking of the Data Connector returns it.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForHandrecords Polls the Data Connector synchronously for new handrecords for the session,
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForHandrecordsAsync Polls the Data Connector asynchronously for new handrecords for the session,
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForParticipations Polls the client queue synchronously for new participations for the specified session.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForParticipationsAsync Polls the client queue asynchronously for new participations for the specified session.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForPlayerData Polls the client queue asynchronously for new player data for the specified session.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForPlayerDataAsync Polls the client queue asynchronously for new player data for the specified session.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForResults Polls the client queue for new boardresults synchronously. Required. The guid of the session to poll participations for.Poll all results for the session, included ones polled before.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodPollForResultsAsync Polls the client queue for new boardresults asynchronously. Required. The guid of the session to poll participations for.Poll all results for the session, included ones polled before.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendBridgemate2Settings Adds or updates the Bridgemate 2 settings for the given sections synchronously. There can and must be one dto per section. The section letters cannot be left out!
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendBridgemate2SettingsAsync Adds or updates the Bridgemate 2 settings for the given sections asynchronously. There can and must be one dto per section. The section letters cannot be left out.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendBridgemate3Settings Adds or updates the Bridgemate 3 settings for the given sections synchronously. There can and must be one dto per section. The section letters cannot be left out!
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendBridgemate3SettingsAsync Adds or updates the Bridgemate 3 settings for the given sections asynchronously. There can and must be one dto per section. The section letters cannot be left out!
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Protected methodSendData The code that handles the actual sending of requests and reading their reponses.
(Overrides ScoringProgramDataConnectorClientCommandManagerSendData(String, ScoringProgramDataConnectorCommands, String, String))
Protected methodSendDataAsync The code that handles the actual sending of requests and reading their reponses.
(Overrides ScoringProgramDataConnectorClientCommandManagerSendDataAsync(String, ScoringProgramDataConnectorCommands, String, String))
Public methodSendHandrecords Sends handrecords synchronously to the BCS queue.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendHandrecordsAsync Sends handrecords asynchronously to the BCS queue.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendParticipations Sends participations asynchronously to the BCS queue.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendParticipationsAsync Sends participations asynchronously to the BCS queue.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendPlayerData Sends PlayerData synchronously to the BCS queue.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendPlayerDataAsync Sends PlayerData asynchronously to the BCS queue.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendResults Sends boardresults synchronously to the BCS queue
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodSendResultsAsync Sends boardresults asynchronously to the BCS queue
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodUpdateMovement Instructs BCS synchronously to update the movement for the given section. Be sure to include the movement for the section after its change. BCS will figure out how to adjust its data to enact the change. Mind that board results will be erased for each table starting from the lowest numbered round with different round data.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodUpdateMovementAsync Instructs BCS asynchronously to update the movement for the given section. Be sure to include the movement for the section after its change. BCS will figure out how to adjust its data to enact the change. Mind that board results will be erased for each table starting from the lowest numbered round with different round data.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodUpdateScoringGroups Instructs BCS synchronously to update the scoringgroups. This can be done to change the scoring method or to rearrange the sections that are attached to them.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Public methodUpdateScoringGroupsAsync Instructs BCS asynchronously to update the scoringgroups. This can be done to change the scoring method or to rearrange the sections that are attached to them.
(Inherited from ScoringProgramDataConnectorClientCommandManager)
Top
Fields
 NameDescription
Public fieldStatic memberApiCall The url to call when the scoring program communicates with the data connector.
Public fieldStatic memberApiPingResponse Part of the expected response from the webservice when sending a Get httprequest to it.
Public fieldStatic memberApiUrlRootWihtoutProtocol Constructs the url for the webservice without the http:// prefix based on whether it is hosted in local host or in the cloud.
Public fieldDataConnectorClientLogger NLog implementation of logging.
(Inherited from DataConnectorClientCommandManagerTCommand)
Protected fieldStatic memberDebugLogger The debug logger
Protected fieldStatic memberErrorLogger The error logger
Public fieldStatic memberLocalHostUrl The full url for the local host hosted webservice. Used for debugging only.
Public fieldStatic memberLocalHostUrlWithoutProtocol The url for the local host hosted webservice without the http:// prefix. Used for debugging only.
Public fieldStatic memberProductionUrl The full url for the webservice.
Public fieldStatic memberProductionUrlWithouProtocol The url for the webservice without the http:// prefix.
Top
See Also