diff --git a/README.md b/README.md index 066902b..f33ad63 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,26 @@ public class EmpresaController : Controller } ``` + +### IServiceCollection + +Se vocĂȘ estiver utilizando o AspNet Core: + +``` c# +public void ConfigureServices(IServiceCollection services) +{ + services.Configure(options => + { + // This lambda determines whether user consent for non-essential cookies is needed for a given request. + options.CheckConsentNeeded = context => true; + options.MinimumSameSitePolicy = SameSiteMode.None; + }); + + services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); + services.AddScoped(serviceProvider => ViaCepService.Default()); +} +``` + ## DependĂȘncias [Newtonsoft.Json](http://www.newtonsoft.com/json) >= 11.0.1