// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { var dependencies = new ServiceDependency(); dependencies.Register(services); services.AddScoped <OperationErrorHandler>(); services.AddMvc().AddJsonOptions(options => { options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); }); }
private void ContainerConfiguration() { var servicesContainer = new ServiceDependency(); _services = servicesContainer.Register(_serviceCollections); }
private static void Register(ContainerBuilder containerBuilder) { RepositoryDependency.Register(containerBuilder); ServiceDependency.Register(containerBuilder); }