You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

About

This page explains how the code is tied together, what the files are all about and so on.

The code

Root

Source fileDescription
Config.jsonThis is the json file that contains the configuration that is used throughout the application.
ips.txtFile that contains a list of ips that was used in the early stages of development
IService1.cs

Public Interfae for the service. 

This defines what methods clients can see and invoke.

Service1.svcThe endpoint svc file, this gives teh binding at the client end the correct information for consuming the WCF service.
Web.Config

The configuration of the binding and communication protocols. 

(VERY DELICATE, DONT TOUCH UNLESS YOU ARE 100% SURE WQHAT YOU ARE DOING)

Core

Containing ccore functionality.

Source fileDescription
Engine.csThis is the main file for controlling the core functionality in receiving, validating and sending procedure.
Entities/MessageDTODataTransferObject that is used for sending data to the integration api

Global

Containing logic and properties that should be available everywhere in the application. 
The classes are all static for easier access.

Source fileDescription
ApiExceptionHelperThe functionality for checking and throwing exceptions to the client is handled in here.
ClassHelperConvenient methods for class information
CredentialsHelperCreds worker
InvokerHelperInformation from the invoker
JsonHelperDeserializing json
ValidationHelperValidate message data
XmlHelperWhen xml logging is on, this converts the bytearray to xml readable string.
FileLog

Logging to a file.

This class should not be invoked directly, use the Log.cs file instead.

LogThe main entry for logging in the application, this class handles the rest.
TraceLogTo be deleted
XmlLogLogging the xml message if set in config
ConfigThe extracted configuration values from the config.json file is stored in here after the service is started.
EnumsAll Enums used in the application are located in here along with convenient methods for converting value to int and the other way as well.

Outgoing

Classes for the communication to the integration api.

Source fileDescription
ApiComClass for handeling the input from engine.cs and sending to the integration api
ApiComBaseBase class for the underlying functionality in sending to the api

xx

  • No labels