SHARE
TWEET

Untitled

a guest Dec 13th, 2018 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public IServiceProvider ConfigureServices(IServiceCollection services)
  2.     {
  3.         services.AddMvc(config =>
  4.         {
  5.             config.ModelBinderProviders.Insert(0, new Piranha.Manager.Binders.AbstractModelBinderProvider());
  6.         });
  7.         services.AddPiranhaApplication();
  8.         services.AddPiranhaFileStorage();
  9.         services.AddPiranhaImageSharp();
  10.         services.AddDbContext<Db>(options =>
  11.             options.UseMySql("server=localhost;port=3306;database=piranha-mysql;uid=root;password="));
  12.         services.AddPiranhaManager();
  13.         services.AddPiranhaMemCache();
  14.  
  15.         return services.BuildServiceProvider();
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top