Add example infrastructure

* Add "Shared" projects for all examples
* Update "Colors" example with better TrueColor demo
* Use same namespace for all examples
This commit is contained in:
Patrik Svensson
2021-04-11 22:47:26 +02:00
committed by Phil Scott
parent 2fe2bb3c32
commit 3545e0f6b5
74 changed files with 271 additions and 355 deletions

View File

@ -1,8 +1,7 @@
using Logging.Commands;
using Serilog.Core;
using Spectre.Console.Cli;
namespace Logging
namespace Spectre.Console.Examples
{
public class LogInterceptor : ICommandInterceptor
{

View File

@ -1,7 +1,7 @@
using Serilog.Core;
using Serilog.Core;
using Serilog.Events;
namespace Logging
namespace Spectre.Console.Examples
{
internal class LoggingEnricher : ILogEventEnricher
{

View File

@ -1,8 +1,8 @@
using System;
using System;
using Microsoft.Extensions.DependencyInjection;
using Spectre.Console.Cli;
namespace Logging
namespace Spectre.Console.Examples
{
public sealed class TypeRegistrar : ITypeRegistrar
{

View File

@ -1,8 +1,8 @@
using System;
using System;
using Microsoft.Extensions.DependencyInjection;
using Spectre.Console.Cli;
namespace Logging
namespace Spectre.Console.Examples
{
public sealed class TypeResolver : ITypeResolver
{