Exemple #1
0
        public CtpQuote(string pAbsoluteFilePath)
        {
            loader = new AssembyLoader(pAbsoluteFilePath);
            Directory.CreateDirectory("log");

            _api = ((Create)loader.Invoke("CreateApi", typeof(Create)))();
            _spi = ((Create)loader.Invoke("CreateSpi", typeof(Create)))();
            (loader.Invoke("RegisterSpi", typeof(DelegateRegisterSpi)) as DelegateRegisterSpi)?.Invoke(_api, _spi);
        }
Exemple #2
0
        public ctp_quote(string pFile)
        {
            loader = new AssembyLoader(pFile);
            Directory.CreateDirectory("log");

            _api = (loader.Invoke("CreateApi", typeof(Create)) as Create)();
            _spi = (loader.Invoke("CreateSpi", typeof(Create)) as Create)();
            (loader.Invoke("RegisterSpi", typeof(DelegateRegisterSpi)) as DelegateRegisterSpi)(_api, _spi);
        }
Exemple #3
0
 public IntPtr Release()
 {
     return(((DelegateRelease)loader.Invoke("Release", typeof(DelegateRelease)))(_api));
 }
Exemple #4
0
 public IntPtr Release()
 {
     return((loader.Invoke("Release", typeof(DeleRelease)) as DeleRelease)(_api));
 }