Laser Cat Eyes is a network monitoring tool that helps mobile app developers diagnose issues between their apps and backend services.
you can use dotnetstandart SDK's if your app is running under .netcore 3.1
- LaserCatEyes is available through Nuget. First, install NuGet. Then, install LaserCatEyes.EndpointListener from the package manager console:
PM> Install-Package LaserCatEyes.EndpointListener
- In
Startup
classConfigure
method inject middleware
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
...
if (env.IsDevelopment())//This is a debugging tool, you don't want to run it in production, right!?
{
...
//Seriously don't run it in production environment
app.UseLaserCatEyesEndpointListenerMiddleware();
}
...
}
- In
Startup
classConfigureServices
method inject add Endpoint Listener
public void ConfigureServices(IServiceCollection services)
{
...
if (env.IsDevelopment())//This is a debugging tool, you don't want to run it in production, right!?
{
...
//Seriously don't run it in production environment
services.AddLaserCatEyesEndpointListener(MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL);
//OR (more option will be available soon)
services.AddLaserCatEyesHttpListener(option =>
{
option.AppKey = MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL;
option.AspCoreEnvironment = "STAGE";
option.Version = "1.2.3.4";
option.BuildNumber = "1";
});
}
...
}
Betalgo, [email protected]