Skip to content

Commit

Permalink
#72 Fix up issues on Stravaig.FamilyTree.Standardiser
Browse files Browse the repository at this point in the history
  • Loading branch information
colinangusmackay committed Jan 9, 2021
1 parent 350dafb commit 7a49cac
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/Stravaig.FamilyTree.Blazor/Program.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
using System;
using System.Net.Http;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Text;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Stravaig.FamilyTree.Blazor.Services;
using Stravaig.FamilyTreeGenerator.Requests.Handlers.Services;

Expand Down
4 changes: 0 additions & 4 deletions src/Stravaig.FamilyTree.Standardiser/Application.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.Extensions.Logging;
using Stravaig.FamilyTree.Standardiser.Extensions;
using Stravaig.Gedcom;
Expand Down
2 changes: 1 addition & 1 deletion src/Stravaig.FamilyTree.Standardiser/CommandLineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public string DestinationFile
set
{
var absolutePath = Path.GetFullPath(value);
_destinationFile = value;
_destinationFile = absolutePath;
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Stravaig.FamilyTree.Standardiser/FileNamer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;

namespace Stravaig.FamilyTree.Standardiser
{
Expand Down
4 changes: 2 additions & 2 deletions src/Stravaig.FamilyTree.Standardiser/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ private static ServiceProvider BuildServiceProvider(CommandLineOptions options)

private static void AddApplicationServices(ServiceCollection services, CommandLineOptions options)
{
services.AddSingleton<CommandLineOptions>(options);
services.AddSingleton<GedcomDatabase>(p=>
services.AddSingleton(options);
services.AddSingleton(p=>
{
CommandLineOptions opts = p.GetRequiredService<CommandLineOptions>();
return GetDatabase(opts.SourceFile);
Expand Down

0 comments on commit 7a49cac

Please sign in to comment.