Open
Description
I don't know how to use this lib, I did't found any doc, example or unit test.
Is this correct?
Server:
builder.Services.AddArbitrer(options =>
{
options.Behaviour = ArbitrerBehaviourEnum.ImplicitRemote;
options.SetAsLocalRequest<UpdateDeviceRequest>();
options.ListenForNotification<DeviceStatusChangedNotification>();
});
Client:
services.AddArbitrer(options =>
{
// 設定為遠端模式
options.Behaviour = ArbitrerBehaviourEnum.ImplicitRemote;
// 註冊遠端請求
options.SetAsRemoteRequest<UpdateDeviceRequest>();
options.SetAsRemoteRequests(() => [typeof(DeviceStatusChangedNotification)]);
});
Metadata
Metadata
Assignees
Labels
No labels