Skip to content
/ CocoHub Public

An implementation of google's dapper by .NET Core.

License

Notifications You must be signed in to change notification settings

clawit/CocoHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CocoHub

An implementation of google's dapper by .NET Core.

How to use in your code

  1. Add reference to the nuget package of Fody
Install-Package Fody
  1. Add reference to the nuget package of Cocohub.Tracer.Fody
Install-Package Cocohub.Tracer.Fody
  1. Add reference to the nuget package of Tracer.Cocohub
'Install-Package Tracer.Cocohub
  1. Add FodyWeavers.xml

  2. Add code

public void ConfigureServices(IServiceCollection services)
{
  ...
  services.AddCocohub();
  ...
}

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IServiceProvider svp)
{
  ...
  //remember always to call this brfore UseMvc()
  app.UseCocohub();
  
  app.UseMvc();
  ...
}