diff --git a/src/Uno.Foundation/Deferral.cs b/src/Uno.Foundation/Deferral.cs index 27ef1661e307..5aa046408c1e 100644 --- a/src/Uno.Foundation/Deferral.cs +++ b/src/Uno.Foundation/Deferral.cs @@ -24,6 +24,8 @@ public Deferral([In] DeferralCompletedHandler handler) /// public void Complete() => _handler?.Invoke(); - public void Close() { } + public void Close() => Complete(); + + public void Dispose() => Complete(); } } diff --git a/src/Uno.Foundation/Generated/2.0.0.0/Windows.Foundation/Deferral.cs b/src/Uno.Foundation/Generated/2.0.0.0/Windows.Foundation/Deferral.cs index f08e1e5542e4..075f76304620 100644 --- a/src/Uno.Foundation/Generated/2.0.0.0/Windows.Foundation/Deferral.cs +++ b/src/Uno.Foundation/Generated/2.0.0.0/Windows.Foundation/Deferral.cs @@ -10,13 +10,7 @@ public partial class Deferral : global::System.IDisposable // Skipping already declared method Windows.Foundation.Deferral.Deferral(Windows.Foundation.DeferralCompletedHandler) // Forced skipping of method Windows.Foundation.Deferral.Deferral(Windows.Foundation.DeferralCompletedHandler) // Skipping already declared method Windows.Foundation.Deferral.Complete() - #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ - [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] - public void Dispose() - { - global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Foundation.Deferral", "void Deferral.Dispose()"); - } - #endif + // Skipping already declared method Windows.Foundation.Deferral.Dispose() // Processing: System.IDisposable } }