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