schangxiang@126.com
2024-09-06 05f2a20bb792169bf7b8a101af8718b96449f55a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using Microsoft.Extensions.DependencyInjection;
using System;
 
namespace iWare.Wms.Web.Core
{
    /// <summary>
    /// B格
    /// </summary>
    internal static class BStyleServiceExtension
    {
        public static void AddBStyle(this IServiceCollection services, Action<BStyleServiceBuilder> configure)
        {
            var builder = new BStyleServiceBuilder(services);
            configure(builder);
        }
    }
 
    internal class BStyleServiceBuilder
    {
        private IServiceCollection serviceCollection;
 
        public BStyleServiceBuilder(IServiceCollection services)
        {
            serviceCollection = services;
        }
 
        public void UseDefault()
        {
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine(@"  ___      _           _         _   _  _____ _____
 / _ \    | |         (_)       | \ | ||  ___|_   _|
/ /_\ \ __| |_ __ ___  _ _ __   |  \| || |__   | |
|  _  |/ _` | '_ ` _ \| | '_ \  | . ` ||  __|  | |
| | | | (_| | | | | | | | | | |_| |\  || |___  | |
\_| |_/\__,_|_| |_| |_|_|_| |_(_)_| \_/\____/  \_/  ");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(@"
 
gitee: https://gitee.com/zuohuaijun/Admin.NET");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(@"期待您的PR,让.net更好!
 
");
        }
 
        public void UseOther()
        {
            System.Console.WriteLine(@"另一个BStyle");
        }
    }
}