﻿using Autofac;
using NServiceBus.Logging;

namespace Reservations.Config
{
	public class ContainerSetup
	{
		private static readonly ILog Log = LogManager.GetLogger<ContainerSetup>();

		public static IContainer Create()
		{
			Log.Info("Initializing dependency injection...");

			var builder = new ContainerBuilder();
			return builder.Build();
		}
	}
}