Esempio n. 1
0
            protected override bool call(AutoCSer.WebView.CallBase call, ref AutoCSer.UnmanagedStream responseStream)
            {
                switch (call.CallMethodIndex)
                {
                    #region LOOP Methods
                    #region NOT IsAjaxLoad
                    #region NOT IsAsynchronous
                case @MethodIndex:
                {
                    #region IF MethodParameters.Length
                    @ParameterTypeName parameter = new @ParameterTypeName();
                    #region IF Attribute.IsFirstParameter
                    #region IF IsFristParameterValueType
                    if (call.ParseParameter(ref parameter /*PUSH:FristParameter*/.@ValueTypeParameterName /*PUSH:FristParameter*/))
                    #endregion IF IsFristParameterValueType
                    #region NOT IsFristParameterValueType
                    {
                        if (call.ParseParameterAny(ref parameter /*PUSH:FristParameter*/.@ParameterName /*PUSH:FristParameter*/))
                        #endregion NOT IsFristParameterValueType
                        #endregion IF Attribute.IsFirstParameter
                        #region NOT Attribute.IsFirstParameter
                        {
                            if (call.ParseParameter(ref parameter))
                            #endregion NOT Attribute.IsFirstParameter
                            #endregion IF MethodParameters.Length
                            {
                                @WebCallMethodType.FullName value = (@WebCallMethodType.FullName) /*NOTE*/ (object) /*NOTE*/ call;
                                value./*PUSH:Method*/ @MethodName/*PUSH:Method*/ (/*LOOP:MethodParameters*//*AT:ParameterRef*/ parameter.@ParameterName /*AT:ParameterJoin*//*LOOP:MethodParameters*/);
                                repsonseCall(value, ref responseStream);
                                return(true);
                            }
                        }
                    }
                }
                    #region IF MethodParameters.Length
                    return(false);

                    #endregion IF MethodParameters.Length
                    #endregion NOT IsAsynchronous
                    #endregion NOT IsAjaxLoad
                    #endregion LOOP Methods
                default: return(false);
                }
            }
Esempio n. 2
0
        protected override bool call(AutoCSer.WebView.CallBase call)
        {
            switch (call.CallMethodIndex)
            {
            case 2:
            {
                _p1 parameter = new _p1();
                if (call.ParseParameter(ref parameter))
                {
                    ((AutoCSer.TestCase.WebPerformance.WebCallAsynchronous)call).Xor(parameter.left, parameter.right);
                    return(true);
                }
            }
                return(false);

            default: return(false);
            }
        }
Esempio n. 3
0
        protected override bool call(AutoCSer.WebView.CallBase call, ref AutoCSer.UnmanagedStream responseStream)
        {
            switch (call.CallMethodIndex)
            {
            case 1:
            {
                _p1 parameter = new _p1();
                if (call.ParseParameter(ref parameter))
                {
                    AutoCSer.TestCase.WebPerformance.WebCall value = (AutoCSer.TestCase.WebPerformance.WebCall)call;
                    value.Add(parameter.left, parameter.right);
                    repsonseCall(value, ref responseStream);
                    return(true);
                }
            }
                return(false);

            default: return(false);
            }
        }