You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
772 B
C#
32 lines
772 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
|
|
namespace Myshipping.Core;
|
|
|
|
/// <summary>
|
|
/// B格
|
|
/// </summary>
|
|
public static class BStyleServiceExtension
|
|
{
|
|
public static void AddBStyle(this IServiceCollection services, Action<BStyleServiceBuilder> 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()
|
|
{
|
|
|
|
}
|
|
} |