8000 More docs? · Issue #2 · ppossanzini/arbitrer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
More docs? #2
Open
Open
@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

      0