public static async Task<LoopbackHost> Start(IPlatibusConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) { if (configuration == null) throw new ArgumentNullException("configuration"); var host = new LoopbackHost(configuration); await host.Init(cancellationToken); return host; }
private static async Task <LoopbackHost> StartAsync( ILoopbackConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) { var host = new LoopbackHost(configuration); await host.Init(cancellationToken); return(host); }