using Microsoft.Extensions.DependencyInjection; using System; namespace Myshipping.Core; /// /// B格 /// public static class BStyleServiceExtension { public static void AddBStyle(this IServiceCollection services, Action configure) { var builder = new BStyleServiceBuilder(); configure(builder); } } public class BStyleServiceBuilder { public void UseDefault() { Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine(@"大简云工作平台"); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(@"http://www.myshipping.net"); Console.ForegroundColor = ConsoleColor.Black; } public void UseOther() { } }