Пример #1
0
        public static void Bind(Container container, IConfiguration configuration)
        {
            CQRSConfigurator.Configure(container);
            PersistenceServicesConfigurator.Configure(container);

            ServicesConfigurator.Configure(container);
            PersistenceServicesConfigurator_MongoDB.Configure(container, configuration);
            NotificationServicesConfigurator.Configure(container);

            if (Convert.ToBoolean(configuration.GetSection("GenericSettings").GetSection("Fake").Value))
            {
                PersistanceServicesConfigurator_Json.Configure(container);
            }
            else
            {
                ExternalAPIFakeServicesConfigurator.Configure(container);
            }
        }
Пример #2
0
 public static void Bind(Container container)
 {
     CQRSConfigurator.Configure(container);
     ServicesConfigurator.Configure(container);
 }