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); }
async Task Create() { endpoint = await RawEndpoint.Create(config).ConfigureAwait(false); }