コード例 #1
0
        public static void AfterCallback(IntPtr req)
        {
            var workreq = PermaRequest.GetObject <WorkRequest>(req);

            workreq.after();
            workreq.Dispose();
        }
コード例 #2
0
        static public void StaticEnd(IntPtr ptr, int status)
        {
            var obj = PermaRequest.GetObject <CallbackPermaRequest>(ptr);

            if (obj == null)
            {
                throw new Exception("Target is null");
            }
            else
            {
                obj.End(ptr, status);
            }
        }
コード例 #3
0
        public static void BeforeCallback(IntPtr req)
        {
            var workreq = PermaRequest.GetObject <WorkRequest>(req);

            workreq.before();
        }
コード例 #4
0
 public static void StaticEnd(IntPtr ptr)
 {
     PermaRequest.GetObject <FileSystemRequest>(ptr).End(ptr);
 }