예제 #1
0
        public static void AfterCallback(IntPtr req)
        {
            var workreq = PermaRequest.GetObject <WorkRequest>(req);

            workreq?.after?.Invoke();
            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 StaticEnd(IntPtr ptr)
 {
     PermaRequest.GetObject <FileSystemRequest>(ptr)?.End(ptr);
 }
예제 #4
0
        public static void BeforeCallback(IntPtr req)
        {
            var workreq = PermaRequest.GetObject <WorkRequest>(req);

            workreq?.before?.Invoke();
        }