using SinochemInternetPlusApp.Communicator; using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading; using Wayne.Lib; using Wayne.Lib.Log; namespace SinochemInternetPlusApp { public class FdcCommunicator { /// /// 0 for not started, 1 for started already. /// private int isStarted = 0; private const string DEFAULT_FDC_SERVER_CONNECT_STRING = "Host=127.0.0.1,Port=4710,ClientId=101,ClientName=PetroChinaProxy,PortB=4710,PortC=4710"; private readonly string concreteFdcServerConnString = string.Empty; //private readonly DebugLogger debugLogger = // new DebugLogger(new IdentifiableEntity(0, "FC2PosProxyMain", "", null)); static NLog.Logger debugLogger = NLog.LogManager.LoadConfiguration("nlog.config").GetLogger("PumpHandler"); private bool autoAuthorizePumpWhenCalling = false; /// /// The Fdc communicator works as a FDC client which connected to FC. /// /// somehow, still need to communicate the Message Router public FdcCommunicator() { } public bool IsStarted { get { return this.isStarted == 1; } } } }