-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
62 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
using System.IO; | ||
using System.IO; | ||
using System.Reflection; | ||
using log4net; | ||
using log4net.Config; | ||
using log4net.Repository; | ||
using WireMock.Net.ConsoleApplication; | ||
|
||
namespace WireMock.Net.Console.NETCoreApp | ||
namespace WireMock.Net.Console.NETCoreApp; | ||
|
||
static class Program | ||
{ | ||
static class Program | ||
{ | ||
private static readonly ILoggerRepository LogRepository = LogManager.GetRepository(Assembly.GetEntryAssembly()); | ||
private static readonly ILog Log = LogManager.GetLogger(typeof(Program)); | ||
private static readonly ILoggerRepository LogRepository = LogManager.GetRepository(Assembly.GetEntryAssembly()); | ||
private static readonly ILog Log = LogManager.GetLogger(typeof(Program)); | ||
|
||
static void Main(params string[] args) | ||
{ | ||
XmlConfigurator.Configure(LogRepository, new FileInfo("log4net.config")); | ||
static void Main(params string[] args) | ||
{ | ||
XmlConfigurator.Configure(LogRepository, new FileInfo("log4net.config")); | ||
|
||
MainApp.Run(); | ||
} | ||
MainApp.Run(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using System.IO; | ||
using System.IO; | ||
using log4net.Config; | ||
|
||
namespace WireMock.Net.ConsoleApplication | ||
namespace WireMock.Net.ConsoleApplication; | ||
|
||
static class Program | ||
{ | ||
static class Program | ||
static void Main(params string[] args) | ||
{ | ||
static void Main(params string[] args) | ||
{ | ||
XmlConfigurator.Configure(new FileInfo("log4net.config")); | ||
XmlConfigurator.Configure(new FileInfo("log4net.config")); | ||
|
||
MainApp.Run(); | ||
} | ||
MainApp.Run(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
using log4net.Config; | ||
using WireMock.Server; | ||
using WireMock.Settings; | ||
|
||
namespace WireMock.Net.StandAlone.Net452 | ||
{ | ||
public class Program | ||
{ | ||
static void Main(params string[] args) | ||
{ | ||
XmlConfigurator.Configure(new FileInfo("log4net.config")); | ||
|
||
if (WireMockServerSettingsParser.TryParseArguments(args, out var settings)) | ||
{ | ||
settings.Logger.Debug("WireMock.Net server arguments [{0}]", string.Join(", ", args.Select(a => $"'{a}'"))); | ||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
using log4net.Config; | ||
using WireMock.Server; | ||
using WireMock.Settings; | ||
|
||
WireMockServer.Start(settings); | ||
namespace WireMock.Net.StandAlone.Net452; | ||
|
||
Console.WriteLine("Press any key to stop the server"); | ||
Console.ReadKey(); | ||
} | ||
} | ||
} | ||
public class Program | ||
{ | ||
static void Main(params string[] args) | ||
{ | ||
XmlConfigurator.Configure(new FileInfo("log4net.config")); | ||
|
||
if (WireMockServerSettingsParser.TryParseArguments(args, out var settings)) | ||
{ | ||
Console.WriteLine("WireMock.Net server arguments [{0}]", string.Join(", ", args.Select(a => $"'{a}'"))); | ||
|
||
WireMockServer.Start(settings); | ||
|
||
Console.WriteLine("Press any key to stop the server"); | ||
Console.ReadKey(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
using System; | ||
using System.Linq; | ||
using WireMock.Server; | ||
using WireMock.Settings; | ||
|
||
namespace WireMock.Net.StandAlone.Net461 | ||
{ | ||
static class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
if (WireMockServerSettingsParser.TryParseArguments(args, out var settings)) | ||
{ | ||
settings.Logger.Debug("WireMock.Net server arguments [{0}]", string.Join(", ", args.Select(a => $"'{a}'"))); | ||
using System; | ||
using System.Linq; | ||
using WireMock.Server; | ||
using WireMock.Settings; | ||
|
||
WireMockServer.Start(settings); | ||
namespace WireMock.Net.StandAlone.Net461; | ||
|
||
Console.WriteLine("Press any key to stop the server"); | ||
Console.ReadKey(); | ||
} | ||
} | ||
} | ||
static class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
if (WireMockServerSettingsParser.TryParseArguments(args, out var settings)) | ||
{ | ||
Console.WriteLine("WireMock.Net server arguments [{0}]", string.Join(", ", args.Select(a => $"'{a}'"))); | ||
|
||
WireMockServer.Start(settings); | ||
|
||
Console.WriteLine("Press any key to stop the server"); | ||
Console.ReadKey(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters