Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoSpeedrun authored Sep 28, 2019
1 parent 237833d commit b49ef8b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@ public class EmpresaController : Controller
}

```

### IServiceCollection

Se você estiver utilizando o AspNet Core:

``` c#
public void ConfigureServices(IServiceCollection services)
{
services.Configure<CookiePolicyOptions>(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<IViaCepService>(serviceProvider => ViaCepService.Default());
}
```

## Dependências

[Newtonsoft.Json](http://www.newtonsoft.com/json) >= 11.0.1

0 comments on commit b49ef8b

Please sign in to comment.