static void Main(string[] args)
{
Func<ISession> connectionFactory = () =>
new SmtpServerSession(new AzureBlobStorageSmtpServerCommandHandler(), new NullLog(), new SmtpServerSessionConfiguration());
var smtpServer = new Server(connectionFactory, new NullLog(), new ServerConfiguration());
var task = smtpServer.RunAsync();
task.Wait();
}