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)
{
if (!force
|| def.HasCustomAttributes == false
|| def.CustomAttributes.All(a => a.AttributeType.FullName != "Avalonia.Metadata.UnstableAttribute"))
if (!force && (
def.HasCustomAttributes == false
|| def.CustomAttributes.All(a => a.AttributeType.FullName != "Avalonia.Metadata.UnstableAttribute")))
return;
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;
[Unstable]
[PrivateApi]
public interface IDispatcherImpl
{
bool CurrentThreadIsLoopThread { get; }
@ -19,7 +19,7 @@ public interface IDispatcherImpl
void UpdateTimer(long? dueTimeInMs);
}
[Unstable]
[PrivateApi]
public interface IDispatcherImplWithPendingInput : IDispatcherImpl
{
// Checks if dispatcher implementation can
@ -28,14 +28,14 @@ public interface IDispatcherImplWithPendingInput : IDispatcherImpl
bool HasPendingInput { get; }
}
[Unstable]
[PrivateApi]
public interface IDispatcherImplWithExplicitBackgroundProcessing : IDispatcherImpl
{
event Action ReadyForBackgroundProcessing;
void RequestBackgroundProcessing();
}
[Unstable]
[PrivateApi]
public interface IControlledDispatcherImpl : IDispatcherImplWithPendingInput
{
// Runs the event loop

Loading…
Cancel
Save