Ejemplo n.º 1
0
        public WonkaBreSource(string psSourceId, string psAPISrvrAddr, int pnAPISrvrPort, string psMethodName, RetrieveDataMethod poRetrievalDelegate)
        {
            SourceId     = psSourceId;
            TypeOfSource = SOURCE_TYPE.SRC_TYPE_API;

            SenderAddress = Password = ContractAddress = ContractABI = "";

            APIServerAddress = psAPISrvrAddr;
            APIServerPort    = pnAPISrvrPort;

            MethodName        = psMethodName;
            SetterMethodName  = "";
            RetrievalDelegate = poRetrievalDelegate;
        }
Ejemplo n.º 2
0
        public WonkaBizSource(string psSourceId, string psAPISrvrAddr, int pnAPISrvrPort, string psMethodName, RetrieveDataMethod poRetrievalDelegate)
        {
            this.SourceId     = psSourceId;
            this.TypeOfSource = SOURCE_TYPE.SRC_TYPE_API;

            this.SenderAddress = this.Password = this.ContractAddress = this.ContractABI = string.Empty;
			this.SqlServer     = this.SqlDatabase = this.SqlUsername = this.SqlPassword = this.SqlQueryOrProcedure = string.Empty;

            this.APIServerAddress = psAPISrvrAddr;
            this.APIServerPort    = pnAPISrvrPort;

            this.MethodName          = psMethodName;
            this.SetterMethodName    = string.Empty;
            this.RetrievalDelegate   = poRetrievalDelegate;
            this.CustomOpRuleBuilder = null;
        }
Ejemplo n.º 3
0
        public WonkaBreSource(string psSourceId, string psSenderAddr, string psPwd, string psContractAddr, string psABI, string psMethodName, string psSetterMethodName, RetrieveDataMethod poRetrievalDelegate)
        {
            SourceId     = psSourceId;
            TypeOfSource = SOURCE_TYPE.SRC_TYPE_CONTRACT;

            SenderAddress   = psSenderAddr;
            Password        = psPwd;
            ContractAddress = psContractAddr;
            ContractABI     = psABI;

            APIServerAddress = "";
            APIServerPort    = -1;

            MethodName        = psMethodName;
            SetterMethodName  = psSetterMethodName;
            RetrievalDelegate = poRetrievalDelegate;
        }
Ejemplo n.º 4
0
        public WonkaBizSource(string psSourceId, string psSqlServer, string psDatabase, string psUsername, string psPassword, string psQueryOrProcedure, RetrieveDataMethod poRetrievalDelegate)
        {
            this.SourceId     = psSourceId;
            this.TypeOfSource = SOURCE_TYPE.SRC_TYPE_STORED_PROCEDURE;

            this.SenderAddress = this.Password = this.ContractAddress = this.ContractABI = string.Empty;

            this.APIServerAddress = string.Empty;
            this.APIServerPort    = -1;
            this.MethodName        = this.SetterMethodName = string.Empty;

			this.SqlServer   = psSqlServer;
			this.SqlDatabase = psDatabase;
			this.SqlUsername = psUsername;
			this.SqlPassword = psPassword;

            this.SqlQueryOrProcedure = psQueryOrProcedure;

            this.RetrievalDelegate   = poRetrievalDelegate;
            this.CustomOpRuleBuilder = null;
        }
Ejemplo n.º 5
0
        public WonkaBizSource(string psSourceId, string psSenderAddr, string psPwd, string psContractAddr, string psABI, string psMethodName, string psSetterMethodName, RetrieveDataMethod poRetrievalDelegate)
        {
            this.SourceId     = psSourceId;
            this.TypeOfSource = SOURCE_TYPE.SRC_TYPE_CONTRACT;

            this.SenderAddress   = psSenderAddr;
            this.Password        = psPwd;
            this.ContractAddress = psContractAddr;
            this.ContractABI     = psABI;

            this.APIWebUrl    = string.Empty;
            this.APIWebMethod = string.Empty;
            this.APIWebParam  = string.Empty;
            this.SqlServer    = this.SqlDatabase = this.SqlUsername = this.SqlPassword = this.SqlQueryOrProcedure = string.Empty;

            this.MethodName          = psMethodName;
            this.SetterMethodName    = psSetterMethodName;
            this.RetrievalDelegate   = poRetrievalDelegate;
            this.CustomOpRuleBuilder = null;
        }