示例#1
0
        public RithmicClient(ILogReceiver receiver, string adminConnectionPoint, string certFile, string domainServerAddress, string domainName, string licenseServerAddress, string localBrokerAddress, string loggerAddress, string logFileName)
        {
            if (receiver == null)
            {
                throw new ArgumentNullException(nameof(receiver));
            }

            if (!File.Exists(certFile))
            {
                throw new FileNotFoundException(LocalizedStrings.Str3457Params.Put(certFile));
            }

            Callbacks = new RCallbacksImpl(this, receiver);

            var eParams = new REngineParams
            {
                AdmCnnctPt   = adminConnectionPoint,
                AdmCallbacks = new AdmCallbacksImpl(this, receiver),
                AppName      = "StockSharp",
                AppVersion   = GetType().Assembly.GetName().Version.ToString(),
                CertFile     = certFile,
                DmnSrvrAddr  = domainServerAddress,
                DomainName   = domainName,
                LicSrvrAddr  = licenseServerAddress,
                LocBrokAddr  = localBrokerAddress,
                LoggerAddr   = loggerAddress,
                LogFilePath  = logFileName,
            };

            Session = new REngine(eParams);
        }
示例#2
0
		public RithmicClient(ILogReceiver receiver, string adminConnectionPoint, string certFile, string domainServerAddress, string domainName, string licenseServerAddress, string localBrokerAddress, string loggerAddress, string logFileName)
		{
			if (receiver == null)
				throw new ArgumentNullException(nameof(receiver));

			if (!File.Exists(certFile))
				throw new FileNotFoundException(LocalizedStrings.Str3457Params.Put(certFile));

			Callbacks = new RCallbacksImpl(this, receiver);

			var eParams = new REngineParams
			{
				AdmCnnctPt = adminConnectionPoint,
				AdmCallbacks = new AdmCallbacksImpl(this, receiver),
				AppName = "StockSharp",
				AppVersion = GetType().Assembly.GetName().Version.ToString(),
				CertFile = certFile,
				DmnSrvrAddr = domainServerAddress,
				DomainName = domainName,
				LicSrvrAddr = licenseServerAddress,
				LocBrokAddr = localBrokerAddress,
				LoggerAddr = loggerAddress,
				LogFilePath = logFileName,
			};

			Session = new REngine(eParams);
		}