Skip to content

Commit

Permalink
text update
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhantolga committed Feb 2, 2021
1 parent 7e0c1a3 commit f19ed52
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions DotNet/Setup-EndpointListener.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,20 @@ PM> Install-Package LaserCatEyes.EndpointListener
```csharp
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
...
if (env.IsDevelopment())//This is a debugging tool, you don't want to run it in prodcution, right!?
{
...
//Seriously do NOT run it in production environment
app.UseLaserCatEyesEndpointListenerMiddleware();
}
...
}
```
3. In ``Startup`` class ``ConfigureServices`` method inject Endpoint Listener

```csharp
public void ConfigureServices(IServiceCollection services)
{
...
if (env.IsDevelopment())//This is a debugging tool, you don't want to run it in prodcution, right!?
{
...
//Seriously do NOT run it in production environment
services.AddLaserCatEyesEndpointListener(MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL);
//OR
Expand All @@ -47,7 +42,6 @@ PM> Install-Package LaserCatEyes.EndpointListener
option.BuildNumber = "1";
});
}
...
}
```

Expand Down

0 comments on commit f19ed52

Please sign in to comment.