Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

More docs? #2

@flier268

Description

@flier268

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions