vault unlocking WIP

This commit is contained in:
TheXamlGuy
2024-05-03 19:33:32 +01:00
parent 7582f63a68
commit abcff30da6
9 changed files with 92 additions and 43 deletions
+5 -5
View File
@@ -73,29 +73,29 @@ public class Publisher(ISubscriptionManager subscriptionManager,
public Task PublishUI<TMessage>(object key,
CancellationToken cancellationToken = default)
where TMessage : new() =>
Publish(new TMessage(), args => dispatcher.InvokeAsync(async () => await args()),
Publish(new TMessage(), args => dispatcher.Invoke(async () => await args()),
key, cancellationToken);
public Task PublishUI<TMessage>(TMessage message,
CancellationToken cancellationToken = default)
where TMessage : notnull =>
Publish(message, args => dispatcher.InvokeAsync(async () => await args()),
Publish(message, args => dispatcher.Invoke(async () => await args()),
null, cancellationToken);
public Task PublishUI<TMessage>(TMessage message,
object key,
CancellationToken cancellationToken = default)
where TMessage : notnull =>
Publish(message, args => dispatcher.InvokeAsync(async () => await args()),
Publish(message, args => dispatcher.Invoke(async () => await args()),
key, cancellationToken);
public Task PublishUI<TMessage>(CancellationToken cancellationToken = default)
where TMessage : new() =>
Publish(new TMessage(), args => dispatcher.InvokeAsync(async () => await args()),
Publish(new TMessage(), args => dispatcher.Invoke(async () => await args()),
null, cancellationToken);
public Task PublishUI(object message,
CancellationToken cancellationToken = default) => Publish(message, args =>
dispatcher.InvokeAsync(async () => await args()),
dispatcher.Invoke(async () => await args()),
null, cancellationToken);
}