修改项目模板改为 SDK模式
This commit is contained in:
1 parent
bdf87cf0dd
commit
6e995a5bdb
19 files changed
+442
-19306
No files matched your search
+62
-387
@@ -1,388 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.props" Condition="Exists('..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.props')" />
|
||||
<Import Project="..\packages\chromiumembeddedframework.runtime.win-x86.138.0.34\build\chromiumembeddedframework.runtime.win-x86.props" Condition="Exists('..\packages\chromiumembeddedframework.runtime.win-x86.138.0.34\build\chromiumembeddedframework.runtime.win-x86.props')" />
|
||||
<Import Project="..\packages\chromiumembeddedframework.runtime.win-x64.138.0.34\build\chromiumembeddedframework.runtime.win-x64.props" Condition="Exists('..\packages\chromiumembeddedframework.runtime.win-x64.138.0.34\build\chromiumembeddedframework.runtime.win-x64.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{6461D807-B1C8-45F0-B388-E0CA1A418DE0}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>AllBase</RootNamespace>
|
||||
<AssemblyName>AllBase</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<CodeAnalysisLogFile>..\bin\AllBase.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
|
||||
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
|
||||
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSetDirectories>;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
|
||||
<CodeAnalysisRuleDirectories>;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<CodeAnalysisLogFile>..\bin\AllBase.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
|
||||
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
|
||||
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSetDirectories>;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
|
||||
<CodeAnalysisRuleDirectories>;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<LangVersion>12.0</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<LangVersion>12.0</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="CefSharp, Version=138.0.340.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CefSharp.Common.138.0.340\lib\net462\CefSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CefSharp.Core, Version=138.0.340.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CefSharp.Common.138.0.340\lib\net462\CefSharp.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CefSharp.WinForms, Version=138.0.340.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CefSharp.WinForms.138.0.340\lib\net462\CefSharp.WinForms.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="NaiBa.Util, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DllReference\NaiBa.Util.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.SQLite, Version=1.0.109.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DllReference\System.Data.SQLite.DLL</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="zxing, Version=0.12.0.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DllReference\zxing.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AdslHelper.cs" />
|
||||
<Compile Include="AutoSizeFormClass.cs" />
|
||||
<Compile Include="Base64Encode.cs" />
|
||||
<Compile Include="BaseClass.cs">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Compile>
|
||||
<Compile Include="BaseEncrypt.cs" />
|
||||
<Compile Include="BaseRegex.cs" />
|
||||
<Compile Include="BaseWork.cs" />
|
||||
<Compile Include="BindableBase.cs" />
|
||||
<Compile Include="CacheHelper.cs" />
|
||||
<Compile Include="CollectBase.cs" />
|
||||
<Compile Include="CommonPassword.cs" />
|
||||
<Compile Include="ConvertExtension.cs" />
|
||||
<Compile Include="EnumHelper.cs" />
|
||||
<Compile Include="Extension\Extensions.cs" />
|
||||
<Compile Include="Extension\JTokenExtension.cs" />
|
||||
<Compile Include="Extension\LinqExtension.cs" />
|
||||
<Compile Include="FileBase.cs" />
|
||||
<Compile Include="GetHtml.cs" />
|
||||
<Compile Include="GetProxyHtml.cs" />
|
||||
<Compile Include="Helper\CommonSimRequest.cs" />
|
||||
<Compile Include="Helper\DataOpenSSL.cs" />
|
||||
<Compile Include="Helper\EnvironmentHelper.cs" />
|
||||
<Compile Include="Helper\FissionDataBaseConfig.cs" />
|
||||
<Compile Include="Helper\GB18030EncodingProvider.cs" />
|
||||
<Compile Include="Helper\GlobalConfig.cs" />
|
||||
<Compile Include="Helper\UDE.cs" />
|
||||
<Compile Include="HttpUtility.cs" />
|
||||
<Compile Include="IECookies.cs" />
|
||||
<Compile Include="ImageBuild.cs" />
|
||||
<Compile Include="ImageCut.cs" />
|
||||
<Compile Include="ImageErWeiMa.cs" />
|
||||
<Compile Include="IPLocationSearch.cs" />
|
||||
<Compile Include="JsonHelper.cs" />
|
||||
<Compile Include="LogSave.cs" />
|
||||
<Compile Include="Md5Base.cs" />
|
||||
<Compile Include="Model\Config\WxTalkFormShopMainInfo.cs" />
|
||||
<Compile Include="Model\Config\WxShopKfStatistics.cs" />
|
||||
<Compile Include="Model\Config\WxShopMainStatistics.cs" />
|
||||
<Compile Include="Model\Config\WxShopUploadInfo.cs" />
|
||||
<Compile Include="Model\Data\ProductLatestOutAmountInfo.cs" />
|
||||
<Compile Include="Model\Data\WXBuyUrlNotesInfo.cs" />
|
||||
<Compile Include="Model\Data\WXOrderDecryptAddressInfo.cs" />
|
||||
<Compile Include="Model\DBModel\oem.cs" />
|
||||
<Compile Include="Model\DBModel\oms_wei_external_procurement_log.cs" />
|
||||
<Compile Include="Model\DBModel\oms_wei_order.cs" />
|
||||
<Compile Include="Model\DBModel\user_payment_record.cs" />
|
||||
<Compile Include="Model\DBModel\user_points_record_info.cs" />
|
||||
<Compile Include="Model\DBModel\wx_qualification_image_info.cs" />
|
||||
<Compile Include="Model\Param\CollectManage\FissionSettingParam.cs" />
|
||||
<Compile Include="Model\Param\OrderManage\FreightTemplateParam.cs" />
|
||||
<Compile Include="Model\Param\DyProductManage\DyCategoryParam.cs" />
|
||||
<Compile Include="Model\Param\FissionManage\FissionData.cs" />
|
||||
<Compile Include="Model\Param\FissionManage\FissionDataModel.cs" />
|
||||
<Compile Include="Model\Param\FissionManage\FissionRoot.cs" />
|
||||
<Compile Include="Model\Param\DyProductManage\SameProductCheckParam.cs" />
|
||||
<Compile Include="Model\Param\DyProductManage\ViolateParam.cs" />
|
||||
<Compile Include="Model\Param\DyProductManage\QualificationConfig.cs" />
|
||||
<Compile Include="Model\Param\DyProductManage\ViolateRuleParam.cs" />
|
||||
<Compile Include="Model\Param\PDDCouponParam\PDDActivityMarketingParam.cs" />
|
||||
<Compile Include="Model\Param\PDDCouponParam\PDDCouponParam.cs" />
|
||||
<Compile Include="Model\Param\OutServerGoodsParam.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PDDActivitySubmitParamV2.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PddEditProdStockQuantity.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PddRelationParam.cs" />
|
||||
<Compile Include="Model\Param\ToolsManage\ADSLAccountParam.cs" />
|
||||
<Compile Include="Model\Param\ToolsManage\ProductMappingExportInfo.cs" />
|
||||
<Compile Include="Model\Param\ToolsManage\ProductMappingImportParam.cs" />
|
||||
<Compile Include="Model\Param\VDianManage\VDianParam.cs" />
|
||||
<Compile Include="Model\Param\VDianManage\VDianUploadSettingParam.cs" />
|
||||
<Compile Include="Model\Param\WXParam\WXCateAuthParam.cs" />
|
||||
<Compile Include="Model\Param\WXParam\WXCoupon.cs" />
|
||||
<Compile Include="Model\Param\WXParam\WXPreCreateOrderWaybillOnlineParam.cs" />
|
||||
<Compile Include="Model\Param\WXParam\WXUploadProductInfoRecommendParam.cs" />
|
||||
<Compile Include="Model\Result\1688\_1688ClientProductInfo.cs" />
|
||||
<Compile Include="Model\Result\1688\_1688OneProductListInfo.cs" />
|
||||
<Compile Include="Model\Result\1688\_1688OutProductInfo.cs" />
|
||||
<Compile Include="Model\Result\BuyerLoginInfo.cs" />
|
||||
<Compile Include="Model\Result\JST\JSTOrderInfo.cs" />
|
||||
<Compile Include="Model\Result\JST\JSTListProductSkuInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\ApiPddGoodsCatRuleInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDActivityResult\ActivityListProdInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDActivityResult\ActEnrollV3GoodsRuleInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PddBuyerAfterSaleLiteInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PddBuyerOrderLiteInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PddCatInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PddClientInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDFrontProductInfo2.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDFrontProductInfo3.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDFrontProductInfo5.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDFrontProductInfo4.cs" />
|
||||
<Compile Include="Model\Result\PlatformType.cs" />
|
||||
<Compile Include="Model\Result\Result.cs" />
|
||||
<Compile Include="Model\Result\VDianShopLoginInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\DSRShopScoreInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxActivityData.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXAddressInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXClientProductInfoLite.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxConsignmentOrderInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXFinderTalentInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXGetEditProductInfoLite.cs" />
|
||||
<Compile Include="Model\Param\WXParam\WXGetShortTitleParam.cs" />
|
||||
<Compile Include="Model\Param\WXParam\WXUploadProductInitParam.cs" />
|
||||
<Compile Include="Model\Param\WXParam\WXUploadProductParam.cs" />
|
||||
<Compile Include="Model\Result\JitCardCodeInfo.cs" />
|
||||
<Compile Include="Model\Result\JSTDownProdSkuInfo.cs" />
|
||||
<Compile Include="Model\Result\JSTListProductInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDCouponResult\PDDActivityToolGoodsListInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDCouponResult\PDDActivityToolSkuDiscountListInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDCouponResult\PDDActivityToolGoodsSkuListInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDCouponResult\PDDCouponGoodsListInfo.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PDDActivityPriceCheckParam.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PDDActivitySubmitParam.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PDDActivitySubmitParam20981.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PDDProdDecorationCommitParam.cs" />
|
||||
<Compile Include="Model\Param\PDDProdParam\PDDProductUploadParam.cs" />
|
||||
<Compile Include="Model\Param\SalesManage\PromotionAddParam.cs" />
|
||||
<Compile Include="Model\Param\SalesManage\TemuActivityParam.cs" />
|
||||
<Compile Include="Model\Param\ShopManage\TemuShopSettingParam.cs" />
|
||||
<Compile Include="Model\Param\TemuProductManage\TemuProductWords.cs" />
|
||||
<Compile Include="Model\Param\TemuProductManage\TemuSizeSpecParam.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDActivitiInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDActivityRuleInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDActivitySuggestPriceInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDChanceProductInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDFrontProductInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDPropRefPidNameMap.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDShopListProductInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDMaterialInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDProductDecorationInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDProductDetailInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDProductInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDProductPropertyInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDProductTemplateInfo.cs" />
|
||||
<Compile Include="Model\Result\PDDResult\PDDSizeSpecInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuActivityInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuActivityMatchProductInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuCategoryTemplateInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDBProdMapResult.cs" />
|
||||
<Compile Include="Model\Result\TemuForChainProductInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDBExtCodePriceInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDBProductPurchasePriceInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDBProductSelect.cs" />
|
||||
<Compile Include="Model\Result\TemuGoodsQualityInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuListProductInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDBOrderInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuPriceAdjustInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuDetailProductInfo.cs" />
|
||||
<Compile Include="Model\Param\TemuProductManage\TemuProductParam.cs" />
|
||||
<Compile Include="Model\Result\KJDDBProduct.cs" />
|
||||
<Compile Include="Model\Result\TemuResult\AdsDetailInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuResult\AdsMallGoodsInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuResult\AiSkuImgInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuResult\TemuSizeConfigResult\TemuSizeConfigInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuResult\TemuWebClientProductInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuReturnPackageDetailInfo.cs" />
|
||||
<Compile Include="Model\Result\TemuStockInfo.cs" />
|
||||
<Compile Include="Model\Param\UploadManage\UploadCommissionParam.cs" />
|
||||
<Compile Include="Model\Param\UploadManage\UploadErrorParam.cs" />
|
||||
<Compile Include="Model\Result\AddressAreaInfo.cs" />
|
||||
<Compile Include="Model\Result\ShopLoginInfo.cs" />
|
||||
<Compile Include="Model\Result\CatePropertyResponseInfo.cs" />
|
||||
<Compile Include="Model\Result\FreightTemplateInfo.cs" />
|
||||
<Compile Include="Model\Result\ViolateInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\GetCateOnShelfInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\GetProdCateInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxCatInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXLiveObjectInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXOemWithdrawalInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOnlineWaybillDeliveryInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOptimizeExpressInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOptimizeFeedbackOrderInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOptimizeOrderAfterSaleInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOptimizeProductEvaluationInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOptimizeLinerCgiInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOrderExpressInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOrderInfoLite.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxOptimizeOrderWayBillInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXShopDefaultAddressInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WXShopTokenInfo.cs" />
|
||||
<Compile Include="Model\Result\WXResult\WxTaxMoneyInfo.cs" />
|
||||
<Compile Include="MultiThreadClient.cs" />
|
||||
<Compile Include="OutExcel.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Randomx.cs" />
|
||||
<Compile Include="RsaBase.cs" />
|
||||
<Compile Include="Segment.cs" />
|
||||
<Compile Include="ShopInfo.cs" />
|
||||
<Compile Include="SignHelper.cs" />
|
||||
<Compile Include="BaseSpecialConfig.cs" />
|
||||
<Compile Include="SqlHelper.cs" />
|
||||
<Compile Include="SqliteHelper.cs" />
|
||||
<Compile Include="TempFileReadWrite.cs" />
|
||||
<Compile Include="Threadx.cs" />
|
||||
<Compile Include="TreadTime.cs" />
|
||||
<Compile Include="WebClientx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ZipHelper.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\chromiumembeddedframework.runtime.win-x64.138.0.34\build\chromiumembeddedframework.runtime.win-x64.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\chromiumembeddedframework.runtime.win-x64.138.0.34\build\chromiumembeddedframework.runtime.win-x64.props'))" />
|
||||
<Error Condition="!Exists('..\packages\chromiumembeddedframework.runtime.win-x86.138.0.34\build\chromiumembeddedframework.runtime.win-x86.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\chromiumembeddedframework.runtime.win-x86.138.0.34\build\chromiumembeddedframework.runtime.win-x86.props'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.props'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.targets" Condition="Exists('..\packages\CefSharp.Common.138.0.340\build\CefSharp.Common.targets')" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>AllBase</RootNamespace>
|
||||
<AssemblyName>AllBase</AssemblyName>
|
||||
<LangVersion>12.0</LangVersion>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<!--<OutputPath>..\bin\</OutputPath>-->
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<Platforms>AnyCPU;x64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<!-- NuGet 包引用 -->
|
||||
<PackageReference Include="CefSharp.Common" Version="138.0.340" />
|
||||
<PackageReference Include="CefSharp.WinForms" Version="138.0.340" />
|
||||
<PackageReference Include="chromiumembeddedframework.runtime.win-x86" Version="138.0.34" />
|
||||
<PackageReference Include="chromiumembeddedframework.runtime.win-x64" Version="138.0.34" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- 本地 DLL 引用(不在 NuGet 上,保留 HintPath) -->
|
||||
<Reference Include="NaiBa.Util">
|
||||
<HintPath>..\DllReference\NaiBa.Util.dll</HintPath>
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.SQLite">
|
||||
<HintPath>..\DllReference\System.Data.SQLite.DLL</HintPath>
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="zxing">
|
||||
<HintPath>..\DllReference\zxing.dll</HintPath>
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- 框架引用 -->
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -6,4 +6,9 @@
|
||||
<PropertyGroup>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="WebClientx.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,340 +0,0 @@
|
||||
using CefSharp;
|
||||
using NaiBa.Util.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AllBase
|
||||
{
|
||||
public class RequestHandler : IRequestHandler
|
||||
{
|
||||
public List<string> IgnoreList = new List<string>();
|
||||
public List<string> NotIgnoreList = new List<string>();
|
||||
public string UserAgent = string.Empty;
|
||||
public List<Cookie> CookieList = new List<Cookie>(); // 留作测试使用
|
||||
|
||||
public event Action<string, string, string> ResourceLoadComplete; // requestUrl, postData, responseData
|
||||
public event Action<string, string, string> ResourceRedirect; // requestUrl, postData, redirectUrl
|
||||
|
||||
bool IRequestHandler.OnBeforeBrowse(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, bool isRedirect)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IRequestHandler.OnOpenUrlFromTab(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, WindowOpenDisposition targetDisposition, bool userGesture)
|
||||
{
|
||||
return OnOpenUrlFromTab(browserControl, browser, frame, targetUrl, targetDisposition, userGesture);
|
||||
}
|
||||
|
||||
protected virtual bool OnOpenUrlFromTab(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, WindowOpenDisposition targetDisposition, bool userGesture)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IRequestHandler.OnCertificateError(IWebBrowser browserControl, IBrowser browser, CefErrorCode errorCode, string requestUrl, ISslInfo sslInfo, IRequestCallback callback)
|
||||
{
|
||||
//NOTE: If you do not wish to implement this method returning false is the default behaviour
|
||||
// We also suggest you explicitly Dispose of the callback as it wraps an unmanaged resource.
|
||||
//callback.Dispose();
|
||||
//return false;
|
||||
|
||||
//NOTE: When executing the callback in an async fashion need to check to see if it's disposed
|
||||
if (!callback.IsDisposed)
|
||||
{
|
||||
using (callback)
|
||||
{
|
||||
//To allow certificate
|
||||
//callback.Continue(true);
|
||||
//return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void IRequestHandler.OnPluginCrashed(IWebBrowser browserControl, IBrowser browser, string pluginPath)
|
||||
{
|
||||
// TODO: Add your own code here for handling scenarios where a plugin crashed, for one reason or another.
|
||||
}
|
||||
|
||||
CefReturnValue IRequestHandler.OnBeforeResourceLoad(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IRequestCallback callback)
|
||||
{
|
||||
if (NotIgnoreList.Any())
|
||||
{
|
||||
if (NotIgnoreList.Where(p => request.Url.Contains(p)).Any())
|
||||
{
|
||||
return CefReturnValue.Continue;
|
||||
}
|
||||
}
|
||||
if (IgnoreList.Any())
|
||||
{
|
||||
if (IgnoreList.Where(p => request.Url.Contains(p)).Any())
|
||||
{
|
||||
return CefReturnValue.Cancel;
|
||||
}
|
||||
}
|
||||
NameValueCollection headers = request.Headers;
|
||||
if (!string.IsNullOrEmpty(UserAgent))
|
||||
{
|
||||
headers["User-Agent"] = UserAgent;
|
||||
}
|
||||
request.Headers = headers;
|
||||
return CefReturnValue.Continue;
|
||||
}
|
||||
|
||||
bool IRequestHandler.GetAuthCredentials(IWebBrowser browserControl, IBrowser browser, IFrame frame, bool isProxy, string host, int port, string realm, string scheme, IAuthCallback callback)
|
||||
{
|
||||
//NOTE: If you do not wish to implement this method returning false is the default behaviour
|
||||
// We also suggest you explicitly Dispose of the callback as it wraps an unmanaged resource.
|
||||
|
||||
callback.Dispose();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IRequestHandler.OnSelectClientCertificate(IWebBrowser browserControl, IBrowser browser, bool isProxy, string host, int port, X509Certificate2Collection certificates, ISelectClientCertificateCallback callback)
|
||||
{
|
||||
//NOTE: If you do not wish to implement this method returning false is the default behaviour
|
||||
// We also suggest you explicitly Dispose of the callback as it wraps an unmanaged resource.
|
||||
|
||||
return OnSelectClientCertificate(browserControl, browser, isProxy, host, port, certificates, callback);
|
||||
}
|
||||
|
||||
protected virtual bool OnSelectClientCertificate(IWebBrowser browserControl, IBrowser browser, bool isProxy, string host, int port, X509Certificate2Collection certificates, ISelectClientCertificateCallback callback)
|
||||
{
|
||||
callback.Dispose();
|
||||
return false;
|
||||
}
|
||||
|
||||
void IRequestHandler.OnRenderProcessTerminated(IWebBrowser browserControl, IBrowser browser, CefTerminationStatus status)
|
||||
{
|
||||
// TODO: Add your own code here for handling scenarios where the Render Process terminated for one reason or another.
|
||||
// browserControl.Load(CefExample.RenderProcessCrashedUrl);
|
||||
}
|
||||
|
||||
bool IRequestHandler.OnQuotaRequest(IWebBrowser browserControl, IBrowser browser, string originUrl, long newSize, IRequestCallback callback)
|
||||
{
|
||||
//NOTE: If you do not wish to implement this method returning false is the default behaviour
|
||||
// We also suggest you explicitly Dispose of the callback as it wraps an unmanaged resource.
|
||||
//callback.Dispose();
|
||||
//return false;
|
||||
|
||||
//NOTE: When executing the callback in an async fashion need to check to see if it's disposed
|
||||
if (!callback.IsDisposed)
|
||||
{
|
||||
using (callback)
|
||||
{
|
||||
//Accept Request to raise Quota
|
||||
//callback.Continue(true);
|
||||
//return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void IRequestHandler.OnResourceRedirect(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response, ref string newUrl)
|
||||
{
|
||||
if (ResourceRedirect != null)
|
||||
{
|
||||
string postData = GetPostData(request);
|
||||
ResourceRedirect.Invoke(request.Url, postData, newUrl);
|
||||
}
|
||||
}
|
||||
|
||||
bool IRequestHandler.OnProtocolExecution(IWebBrowser browserControl, IBrowser browser, string url)
|
||||
{
|
||||
return url.StartsWith("mailto");
|
||||
}
|
||||
|
||||
void IRequestHandler.OnRenderViewReady(IWebBrowser browserControl, IBrowser browser)
|
||||
{
|
||||
}
|
||||
|
||||
bool IRequestHandler.OnResourceResponse(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response)
|
||||
{
|
||||
//NOTE: You cannot modify the response, only the request
|
||||
// You can now access the headers
|
||||
//var headers = response.ResponseHeaders;
|
||||
return false;
|
||||
}
|
||||
|
||||
IResponseFilter IRequestHandler.GetResourceResponseFilter(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response)
|
||||
{
|
||||
string cookie = response.ResponseHeaders["Set-Cookie"].ParseToString();
|
||||
if (!string.IsNullOrEmpty(cookie))
|
||||
{
|
||||
SetCookie(cookie);
|
||||
}
|
||||
string contentType = response.ResponseHeaders["Content-Type"];
|
||||
if (string.IsNullOrEmpty(contentType))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if (contentType.Contains("application/json") || contentType.Contains("text/javascript"))
|
||||
{
|
||||
if (ResourceLoadComplete != null)
|
||||
{
|
||||
IResponseFilter filter = FilterManager.CreateFilter(request.Identifier.ToString());
|
||||
return filter;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
void IRequestHandler.OnResourceLoadComplete(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IResponse response, UrlRequestStatus status, long receivedContentLength)
|
||||
{
|
||||
string contentType = response.ResponseHeaders["Content-Type"];
|
||||
if (string.IsNullOrEmpty(contentType))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (contentType.Contains("application/json") || contentType.Contains("text/javascript"))
|
||||
{
|
||||
if (ResourceLoadComplete != null)
|
||||
{
|
||||
JsonFilter jsonFilter = FilterManager.GetFileter(request.Identifier.ToString()) as JsonFilter;
|
||||
if (jsonFilter != null)
|
||||
{
|
||||
UTF8Encoding encoding = new UTF8Encoding();
|
||||
string responseData = encoding.GetString(jsonFilter.DataAll.ToArray());
|
||||
string postData = GetPostData(request);
|
||||
ResourceLoadComplete.Invoke(request.Url, postData, responseData);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private void SetCookie(string cookie)
|
||||
{
|
||||
string[] commaArr = cookie.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string comma in commaArr)
|
||||
{
|
||||
string[] semicolonArr = comma.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string semicolon in semicolonArr)
|
||||
{
|
||||
string temp = semicolon.ParseToString().Trim();
|
||||
if (string.IsNullOrEmpty(temp))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (!temp.Contains("="))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (temp.ToLower().StartsWith("path=") || temp.ToLower().StartsWith("expires=") || temp.ToLower().StartsWith("domain="))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
string[] keyValue = temp.Split('=');
|
||||
Cookie cookieObj = CookieList.Where(p => p.Name == keyValue[0]).FirstOrDefault();
|
||||
if (cookieObj == null)
|
||||
{
|
||||
cookieObj = new Cookie
|
||||
{
|
||||
Name = keyValue[0],
|
||||
Value = keyValue[1]
|
||||
};
|
||||
CookieList.Add(cookieObj);
|
||||
}
|
||||
else
|
||||
{
|
||||
cookieObj.Value = keyValue[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private string GetPostData(IRequest request)
|
||||
{
|
||||
string postData = string.Empty;
|
||||
if (request.PostData != null && request.PostData.Elements.Any())
|
||||
{
|
||||
UTF8Encoding encoding = new UTF8Encoding();
|
||||
postData = encoding.GetString(request.PostData.Elements[0].Bytes);
|
||||
postData = GetHtml.UrlDecode(postData);
|
||||
}
|
||||
return postData;
|
||||
}
|
||||
}
|
||||
|
||||
public class JsonFilter : IResponseFilter
|
||||
{
|
||||
public List<byte> DataAll = new List<byte>();
|
||||
|
||||
public FilterStatus Filter(Stream dataIn, out long dataInRead, Stream dataOut, out long dataOutWritten)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dataIn == null || dataIn.Length == 0)
|
||||
{
|
||||
dataInRead = 0;
|
||||
dataOutWritten = 0;
|
||||
|
||||
return FilterStatus.Done;
|
||||
}
|
||||
|
||||
dataInRead = dataIn.Length;
|
||||
dataOutWritten = Math.Min(dataInRead, dataOut.Length);
|
||||
|
||||
dataIn.CopyTo(dataOut);
|
||||
dataIn.Seek(0, SeekOrigin.Begin);
|
||||
byte[] bs = new byte[dataIn.Length];
|
||||
dataIn.Read(bs, 0, bs.Length);
|
||||
DataAll.AddRange(bs);
|
||||
|
||||
dataInRead = dataIn.Length;
|
||||
dataOutWritten = dataIn.Length;
|
||||
|
||||
return FilterStatus.NeedMoreData;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dataInRead = dataIn.Length;
|
||||
dataOutWritten = dataIn.Length;
|
||||
|
||||
return FilterStatus.Done;
|
||||
}
|
||||
}
|
||||
|
||||
public bool InitFilter()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class FilterManager
|
||||
{
|
||||
private static Dictionary<string, IResponseFilter> dataList = new Dictionary<string, IResponseFilter>();
|
||||
|
||||
public static IResponseFilter CreateFilter(string guid)
|
||||
{
|
||||
lock (dataList)
|
||||
{
|
||||
var filter = new JsonFilter();
|
||||
dataList.Add(guid, filter);
|
||||
|
||||
return filter;
|
||||
}
|
||||
}
|
||||
|
||||
public static IResponseFilter GetFileter(string guid)
|
||||
{
|
||||
lock (dataList)
|
||||
{
|
||||
return dataList[guid];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CefSharp.Common" version="138.0.340" targetFramework="net462" />
|
||||
<package id="CefSharp.WinForms" version="138.0.340" targetFramework="net462" />
|
||||
<package id="chromiumembeddedframework.runtime.win-x64" version="138.0.34" targetFramework="net462" />
|
||||
<package id="chromiumembeddedframework.runtime.win-x86" version="138.0.34" targetFramework="net462" />
|
||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
|
||||
</packages>
|
||||
Reference in new issue
Block a user