void IZeroOption.Load(bool first) { ToolsOption option = ConfigurationHelper.Get <ToolsOption>(sectionName); if (option == null) { return; } EnableMessageReConsumer = option.EnableMessageReConsumer; EnableHealthCheck = option.EnableHealthCheck; EnableReverseProxy = option.EnableReverseProxy; ReverseProxyMap = option.ReverseProxyMap; ReceiptService = option.ReceiptService; ReceiptApi = option.ReceiptApi; EnableReceipt = option.EnableReceipt && ReceiptService.IsNotBlank() && ReceiptApi.IsNotBlank(); JwtIssue = option.JwtIssue; JwtAppSecretByte = option.JwtAppSecret?.ToUtf8Bytes(); EnableJwtToken = option.EnableJwtToken && JwtIssue.IsNotBlank() && JwtAppSecretByte != null; }
public void Init() { instance = new ReceiptApi(); }