示例#1
0
    public async Task Start()
    {
        leftStartable = await RawEndpoint.Create(leftConfig).ConfigureAwait(false);

        rightStartable = await RawEndpoint.Create(rightConfig).ConfigureAwait(false);

        leftSubscribeRouter  = CreateSubscribeRouter(leftStartable.Settings.Get <TransportInfrastructure>());
        rightSubscribeRouter = CreateSubscribeRouter(rightStartable.Settings.Get <TransportInfrastructure>());

        leftEndpoint = await leftStartable.Start().ConfigureAwait(false);

        rightEndpoint = await rightStartable.Start().ConfigureAwait(false);
    }
示例#2
0
 async Task Create()
 {
     endpoint = await RawEndpoint.Create(config).ConfigureAwait(false);
 }