예제 #1
0
 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;
 }
예제 #2
0
        private static async Task <LoopbackHost> StartAsync(
            ILoopbackConfiguration configuration,
            CancellationToken cancellationToken = default(CancellationToken))
        {
            var host = new LoopbackHost(configuration);
            await host.Init(cancellationToken);

            return(host);
        }