Skip to content

Latest commit

 

History

History

LaserCatEyes.FunctionEndpointListener

LaserCatEyes DotNet SDK - currently in BETA program

.NET

LaserCatEyes.EndpointListener

Laser Cat Eyes is a network monitoring tool that helps mobile app developers diagnose issues between their apps and backend services.

Installation & Implementation of EnpointListener

  1. LaserCatEyes is available through Nuget. First, install NuGet. Then, install LaserCatEyes.EndpointListener from the package manager console:
PM> Install-Package LaserCatEyes.FunctionEndpointListener
  1. In Startup class Configure 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.UseLaserCatEyesFunctionEndpointListenerMiddleware();           
        }
       ...
    }
  1. In Startup class ConfigureServices 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.AddLaserCatEyesFunctionEndpointListener(MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL);
           //OR (more option will be available soon)
           services.AddLaserCatEyesFunctionEndpointListener(option =>
           {
               option.AppKey = MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL;
               option.AspCoreEnvironment = "STAGE";
               option.Version = "1.2.3.4";
               option.BuildNumber = "1";
           });               
        }
       ...
    }

Author

Betalgo, [email protected]