public static void QueueThis(this INativeObject nativeObject, DelegateInvoker invoker) { NativeSession nativeSession = (NativeSession)nativeObject.Session; nativeSession.Queue(invoker); }