Files
ShrinkCommand.Integration.E…/ShrinkCommandEventBusBridgeExtensions.cs
T
cneicy 06157bf15c
Publish UPM package / publish (push) Failing after 1s
chore: initialize standalone UPM package
2026-08-26 02:49:45 +08:00

30 lines
939 B
C#

#nullable enable
using System;
using Cysharp.Threading.Tasks;
namespace ShrinkCommand.Integration
{
public static class ShrinkCommandEventBusBridgeExtensions
{
public static ShrinkCommandService UseEventBusBridge(
this ShrinkCommandService service,
ShrinkCommandEventBusBridgeOptions? options = null)
{
if (service == null)
throw new ArgumentNullException(nameof(service));
ShrinkCommandEventBusBridge.RegisterService(service, options);
return service;
}
public static UniTask<ShrinkCommandExecutionResult> RequestCommandAsync(
this ShrinkCommandService service,
string rawInput,
IShrinkCommandSource? source = null,
string? serviceName = null)
{
return ShrinkCommandEventBusBridge.RequestCommandAsync(rawInput, source, serviceName);
}
}
}