Laser Cat Eyes is a network monitoring tool that helps mobile app developers diagnose issues between their apps and other services.
- Create an account from Laser-Cat-Eyes web portal
- Create an app
- After the hitting save button you should be able to see your APP KEY
- LaserCatEyes is available through Nuget. First, install NuGet. Then, install LaserCatEyes.WCFListener from the package manager console:
PM> Install-Package LaserCatEyes.WCFListener
- In
Startup
classConfigureServices
method inject add Endpoint Listener
public void ConfigureServices(IServiceCollection services)
{
if (CurrentEnvironment.IsDevelopment())
{
//This is a debugging tool, you don't want to run it in production, right!?
services.AddLaserCatEyesWCFListener(MY_APP_KEY_FROM_LASER_CAT_EYES_PORTAL);
}
}
public class ChannelFactoryHandler<T> : IChannelFactoryHandler<T> where T : class
{
public ChannelFactoryHandler(ChannelFactory<T> channelFactory, IEndpointBehavior endpointBehavior)
{
if (CurrentEnvironment.IsDevelopment())
{
channelFactory.Endpoint.EndpointBehaviors.Add(endpointBehavior);
}
}
Betalgo, [email protected]