Beispiel #1
0
        public static ISatLibrary GetLibrary(ModeloSat modelo, SatConfig config, string pathDll, Encoding encoding)
        {
            switch (modelo)
            {
            case ModeloSat.Cdecl: return(new SatCdecl(config, pathDll, encoding));

            case ModeloSat.StdCall: return(new SatStdCall(config, pathDll, encoding));

            default: throw new NotImplementedException("Modelo não impementado !");
            }
        }
Beispiel #2
0
        public SatStdCall(SatConfig config, string pathDll, Encoding encoding) : base(config, pathDll, encoding)
        {
            ModeloStr = "StdCall";

            AddMethod <Delegates.AssociarAssinatura>("AssociarAssinatura");
            AddMethod <Delegates.AtivarSAT>("AtivarSAT");
            AddMethod <Delegates.AtualizarSoftwareSAT>("AtualizarSoftwareSAT");
            AddMethod <Delegates.BloquearSAT>("BloquearSAT");
            AddMethod <Delegates.CancelarUltimaVenda>("CancelarUltimaVenda");
            AddMethod <Delegates.ComunicarCertificadoICPBRASIL>("ComunicarCertificadoICPBRASIL");
            AddMethod <Delegates.ConfigurarInterfaceDeRede>("ConfigurarInterfaceDeRede");
            AddMethod <Delegates.ConsultarNumeroSessao>("ConsultarNumeroSessao");
            AddMethod <Delegates.ConsultarSAT>("ConsultarSAT");
            AddMethod <Delegates.ConsultarStatusOperacional>("ConsultarStatusOperacional");
            AddMethod <Delegates.DesbloquearSAT>("DesbloquearSAT");
            AddMethod <Delegates.EnviarDadosVenda>("EnviarDadosVenda");
            AddMethod <Delegates.ExtrairLogs>("ExtrairLogs");
            AddMethod <Delegates.TesteFimAFim>("TesteFimAFim");
            AddMethod <Delegates.TrocarCodigoDeAtivacao>("TrocarCodigoDeAtivacao");
            AddMethod <Delegates.ConsultarUltimaSessaoFiscal>("ConsultarUltimaSessaoFiscal");
        }