Esempio n. 1
0
        public ProcedureSignature GetProcedureSignature(string service, string procedure)
        {
            if (!Signatures.ContainsKey(service))
            {
                throw new RPCException("Service " + service + " not found");
            }
            var serviceSignature = Signatures [service];

            if (!serviceSignature.Procedures.ContainsKey(procedure))
            {
                throw new RPCException("Procedure " + procedure + " not found, in Service " + service);
            }
            return(serviceSignature.Procedures [procedure]);
        }
Esempio n. 2
0
        public ServiceSignature GetServiceSignature(ProcedureCall call)
        {
            string service = call.Service;

            if (call.ServiceId > 0)
            {
                service = GetServiceNameById(call.ServiceId);
            }
            if (!Signatures.ContainsKey(service))
            {
                throw new RPCException("Service \"" + service + "\" not found");
            }
            return(Signatures [service]);
        }
Esempio n. 3
0
        public ProcedureSignature GetProcedureSignature(Request request)
        {
            if (!Signatures.ContainsKey(request.Service))
            {
                throw new RPCException("Service " + request.Service + " not found");
            }
            var service = Signatures [request.Service];

            if (!service.Procedures.ContainsKey(request.Procedure))
            {
                throw new RPCException("Procedure " + request.Procedure + " not found, " +
                                       "in Service " + request.Service);
            }
            return(service.Procedures [request.Procedure]);
        }
        public void Load()
        {
            ForEachRowSafe((sr, bRowsetStart) => {
                int nEsignatureID = sr["EsignatureID"];

                if (!Signatures.ContainsKey(nEsignatureID))
                {
                    var oSignature = new Esignature(nEsignatureID);
                    sr.Fill(oSignature);
                    Signatures[oSignature.ID] = oSignature;
                }                 // if

                Esigner oSigner = sr.Fill <Esigner>();
                Signatures[nEsignatureID].Signers[oSigner.ID] = oSigner;

                return(ActionResult.Continue);
            });
        }         // Load