コード例 #1
0
        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;
        }
コード例 #2
0
 public void Init()
 {
     instance = new ReceiptApi();
 }