Esempio n. 1
0
        protected override ITunnelResultSet GetResult(CommandBehavior behaviour, GetResultCaller caller)
        {
            int limit = (behaviour & CommandBehavior.SchemaOnly) != 0 ? 0 : -1;
            Dictionary <string, string> pars = new Dictionary <string, string>();

            foreach (TunnelParameter par in Parameters)
            {
                pars[par.ParameterName] = par.Value == null ? null : par.Value.ToString();
            }
            WebResultSet res = WebResultSet.CreateRequest((PtunConnection)Connection, CommandText, limit, pars);

            return(res);
        }
Esempio n. 2
0
        protected override ITunnelResultSet GetResult(CommandBehavior behaviour, GetResultCaller caller)
        {
            int limit = (behaviour & CommandBehavior.SchemaOnly) != 0 ? 0 : -1;

            return(((StunConnection)Connection).ExecuteResultSet(CommandText));
        }
Esempio n. 3
0
 protected abstract ITunnelResultSet GetResult(CommandBehavior behaviour, GetResultCaller caller);