static void Main(string[] args) { IConfigurationRoot configuration = LoadConfiguration(); IServiceProvider provider = ServiceConfiguration.CreateServiceProvider(configuration); ICloner cloner = provider.GetService <ICloner>(); cloner.CloneSolution(); Console.ReadKey(); }
static void Main(string[] args) { IConfigurationRoot configuration = LoadConfiguration(); IServiceProvider provider = ServiceConfiguration.CreateServiceProvider(configuration); IMigrator migrator = provider.GetService <IMigrator>(); migrator.Migrate(); Console.ReadKey(); }