コード例 #1
0
        public object OnGetRequested(object sender, RESTEventArgs args)
        {
            ReturnGetRequestHandler getRequestedEvent = getRequested;

            if (getRequestedEvent != null)
            {
                return(getRequestedEvent.Invoke(sender, args));
            }
            return(args);
        }
コード例 #2
0
        // GET encoders/<int value>
        public object Get(int id)
        {
            RESTEventArgs args = new RESTEventArgs();

            return(RESTEvent.e_RESTEvent.OnGetRequested(id, args));
        }
コード例 #3
0
        // GET encoders
        public object Get()
        {
            RESTEventArgs args = new RESTEventArgs();

            return(RESTEvent.e_RESTEvent.OnGetRequested(this, args));
        }