- List of untracked files
git clean -n
/*https://github.com/AutoMapper/AutoMapper/blob/18f974a091c910675eea599e6164e8b70ca3aae8/src/AutoMapper/Execution/ProxyGenerator.cs*/ | |
public static class ProxyGenerator | |
{ | |
private static readonly byte[] privateKey = | |
StringToByteArray( | |
"002400000480000094000000060200000024000052534131000400000100010079dfef85ed6ba841717e154f13182c0a6029a40794a6ecd2886c7dc38825f6a4c05b0622723a01cd080f9879126708eef58f134accdc99627947425960ac2397162067507e3c627992aa6b92656ad3380999b30b5d5645ba46cc3fcc6a1de5de7afebcf896c65fb4f9547a6c0c6433045fceccb1fa15e960d519d0cd694b29a4"); | |
private static readonly byte[] privateKeyToken = StringToByteArray("be96cd2c38ef1005"); | |
private static readonly MethodInfo delegate_Combine = typeof(Delegate).GetRuntimeMethod("Combine", new[] { typeof(Delegate), typeof(Delegate) }); |
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
# https://blog.51cto.com/lixiaosong/1689886 | |
function send-weixin { | |
Param( | |
[Parameter(Mandatory = $True, Position = 1)] | |
[String]$Username, | |
[Parameter(Mandatory = $True, Position = 2)] | |
[String]$Content | |
) | |
$auth_string = https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=【你自己的Corpid】&corpsecret= 【你自己的密码】 | |
$auth_values = Invoke-RestMethod $auth_string |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using AutoGuru.Client.Shared; | |
using AutoGuru.Client.Shared.Dtos; | |
using AutoGuru.Client.Shared.Models; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Logging; |
bool LogAndPropagate(this ILogger logger, Exception exception, string message, params object[] args)
{
logger.LogError(exception, message, args);
return false;
}
bool LogAndHandle(this ILogger logger, Exception exception, string message, params object[] args)