08 2022 档案
摘要:Encoding.UTF8.GetBytes(string.Format("{0}#{1}", "name", "pwd"))).ToUpper(); public static string GetMD5(byte[] bytes) { // Create a new instance of th
阅读全文
摘要:1.先创建一个类: public static class MyServiceProvider { public static IServiceProvider ServiceProvider { get; set; } } 2.Startup.cs中Configure方法中添加 MyService
阅读全文
摘要:dynamic type = (new Program()).GetType(); string currentDirectory = Path.GetDirectoryName(type.Assembly.Location);
阅读全文