Skip to content

Commit

Permalink
Reverted DinkPdf changes because it doen't work on Linux, mac
Browse files Browse the repository at this point in the history
  • Loading branch information
thiennn committed Mar 6, 2019
1 parent 20af421 commit 45a84bc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 101 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using SimplCommerce.Infrastructure.Helpers;
using SimplCommerce.Infrastructure.Modules;
using SimplCommerce.Module.Core.Services;
using System.IO;

namespace SimplCommerce.Module.DinkToPdf
{
public class ModuleInitializer : IModuleInitializer
{
public void ConfigureServices(IServiceCollection serviceCollection)
{
var context = new CustomAssemblyLoadContext();
context.LoadUnmanagedLibrary(Path.Combine(Directory.GetCurrentDirectory(), "libwkhtmltox.dll"));

serviceCollection.AddSingleton(typeof(IConverter), new SynchronizedConverter(new PdfTools()));
serviceCollection.AddTransient<IPdfConverter, DinkToPdfConverter>();
}
Expand Down
63 changes: 0 additions & 63 deletions src/SimplCommerce.Infrastructure/Helpers/CurrentDirectoryHelper.cs

This file was deleted.

4 changes: 0 additions & 4 deletions src/SimplCommerce.WebHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Serilog;
using SimplCommerce.Infrastructure.Helpers;
using SimplCommerce.Module.Core.Extensions;

namespace SimplCommerce.WebHost
Expand All @@ -15,9 +14,6 @@ public static void Main(string[] args)
{
try
{
//TODO: Remove this fix for 2.2 `SetCurrentDirectory` when/if move to dotnet 3.0
CurrentDirectoryHelper.SetCurrentDirectory();

BuildWebHost2(args).Run();
}
catch(Exception ex)
Expand Down

0 comments on commit 45a84bc

Please sign in to comment.