Browse Source

Fixes

pull/11062/head
Nikita Tsukanov 3 years ago
parent
commit
c5ae8bb762
  1. 6
      nukebuild/RefAssemblyGenerator.cs
  2. 8
      src/Avalonia.Base/Threading/IDispatcherImpl.cs

6
nukebuild/RefAssemblyGenerator.cs

@ -111,9 +111,9 @@ public class RefAssemblyGenerator
static void MarkAsUnstable(IMemberDefinition def, MethodReference obsoleteCtor, bool force) static void MarkAsUnstable(IMemberDefinition def, MethodReference obsoleteCtor, bool force)
{ {
if (!force if (!force && (
|| def.HasCustomAttributes == false def.HasCustomAttributes == false
|| def.CustomAttributes.All(a => a.AttributeType.FullName != "Avalonia.Metadata.UnstableAttribute")) || def.CustomAttributes.All(a => a.AttributeType.FullName != "Avalonia.Metadata.UnstableAttribute")))
return; return;
if (def.CustomAttributes.Any(a => a.AttributeType.FullName == "System.ObsoleteAttribute")) if (def.CustomAttributes.Any(a => a.AttributeType.FullName == "System.ObsoleteAttribute"))

8
src/Avalonia.Base/Threading/IDispatcherImpl.cs

@ -6,7 +6,7 @@ using Avalonia.Platform;
namespace Avalonia.Threading; namespace Avalonia.Threading;
[Unstable] [PrivateApi]
public interface IDispatcherImpl public interface IDispatcherImpl
{ {
bool CurrentThreadIsLoopThread { get; } bool CurrentThreadIsLoopThread { get; }
@ -19,7 +19,7 @@ public interface IDispatcherImpl
void UpdateTimer(long? dueTimeInMs); void UpdateTimer(long? dueTimeInMs);
} }
[Unstable] [PrivateApi]
public interface IDispatcherImplWithPendingInput : IDispatcherImpl public interface IDispatcherImplWithPendingInput : IDispatcherImpl
{ {
// Checks if dispatcher implementation can // Checks if dispatcher implementation can
@ -28,14 +28,14 @@ public interface IDispatcherImplWithPendingInput : IDispatcherImpl
bool HasPendingInput { get; } bool HasPendingInput { get; }
} }
[Unstable] [PrivateApi]
public interface IDispatcherImplWithExplicitBackgroundProcessing : IDispatcherImpl public interface IDispatcherImplWithExplicitBackgroundProcessing : IDispatcherImpl
{ {
event Action ReadyForBackgroundProcessing; event Action ReadyForBackgroundProcessing;
void RequestBackgroundProcessing(); void RequestBackgroundProcessing();
} }
[Unstable] [PrivateApi]
public interface IControlledDispatcherImpl : IDispatcherImplWithPendingInput public interface IControlledDispatcherImpl : IDispatcherImplWithPendingInput
{ {
// Runs the event loop // Runs the event loop

Loading…
Cancel
Save