Skip to content

betalgo/LCE-DotNet-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome

LaserCatEyes DotNet SDK - currently in BETA program

.NET

LaserCatEyes.EndpointListener

LaserCatEyes.HttpClientListener

LaserCatEyes.HttpClientListener.DotNetStandard

LaserCatEyes.DataServiceSdk

LaserCatEyes.DataServiceSdk.DotNetStandard

LaserCatEyes.WCFListener

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

How do I get started?

You need to get APP_KEY from Laser-Cat-Eyes web portal There are different ways to integrate Laser Cat Eyes to your project, feel free to pick one of them or you can enjoy all of them same time.

  1. You can install iOS or Android(not avaliable yet) libraries to your application which will provide more insgiht about device.
  2. You can install which will show you all incoming requests to your .Net server.
  3. You can install which will show you all outgoing request from your .Net server.
  4. You can install which will show you all outgoing WCF/SOAP network calls from your .Net server.
  5. You can develop your custom listener using

you can use dotnetstandart SDK's if your app is running under .netcore 3.1

Hot to get your APP_KEY :

  1. Create an account from Laser-Cat-Eyes web portal
  2. Create an app
  3. After the hitting save button you should be able to see your APP KEY

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.EndpointListener
  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.UseLaserCatEyesEndpointListenerMiddleware();           
        }
       ...
    }
  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.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";
           });               
        }
       ...
    }

Installation & Implementation of HttpClient Listener

  1. LaserCatEyes is available through Nuget. First, install NuGet. Then, install LaserCatEyes.HttpClientListener from the package manager console:
PM> Install-Package LaserCatEyes.HttpClientListener
  1. In Startup class ConfigureServices method inject add Endpoint Listener

To listen all HttpClients

    public void ConfigureServices(IServiceCollection services)
    {
        if (CurrentEnvironment.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.AddLaserCatEyesHttpClientListener(MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL);
            services.AddLaserCatEyesHttpClientListener(option =>
            {
                option.AppKey = "";
                option.AspCoreEnvironment = "";
                option.Version = "1.2.3.4";
                option.BuildNumber = "1";
            });
        }
    }

or

Listen only selected HttpClients

    public void ConfigureServices(IServiceCollection services)
    {
        if (CurrentEnvironment.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.AddLaserCatEyesHttpClientListener(MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL, listenAllHttpClients: false);
            services.AddHttpClient("myClient", c =>
            {
                //your settings
            }).AddLaserCatEyesHttpClientListener();
        }
    }

Author

Betalgo, [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages