예제 #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);
        }
예제 #2
0
        protected override ITunnelResultSet GetResult(CommandBehavior behaviour, GetResultCaller caller)
        {
            int limit = (behaviour & CommandBehavior.SchemaOnly) != 0 ? 0 : -1;

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