private static void StartServer(S3Configuration s3Configuration) { using (S3Server = new S3Server(s3Configuration)) { S3Server.Start(); Console.WriteLine("S3Emulator is started"); Console.WriteLine("Service url : {0}", s3Configuration.ServiceUrl); Console.WriteLine("Press <Enter> to stop"); Console.ReadLine(); } }
private static S3Server CreateS3Server() { var s3Configuration = new S3Configuration { ServiceUrl = ServiceUrl, HostPort = HostPort, ProxyPort = ProxyPort, IsProxyEnabled = IsProxyEnabled, DataDirectory = "Data", RunInMemory = true, MaxBytesPerSecond = ThrottledStream.Infinite }; var s3Server = new S3Server(s3Configuration); return s3Server; }