chore: add app settings for transfer, photos, delete batch, and timeouts
Enable portal photos, delete batch size, HTTP timeout, shutdown wait, transfer mode. Compile all new planning/photo/delete/summary sources.main
parent
6b2d980c8a
commit
b99c55a807
|
|
@ -2,7 +2,7 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="HrmsDb"
|
<add name="HrmsDb"
|
||||||
connectionString="SERVER=192.168.90.147;PORT=3306;DATABASE=hrms;UID=utopia;PASSWORD=Utopia01;Connection Timeout=60;"
|
connectionString="SERVER=utopia-industries-rr.c5qech8o9lgg.us-east-1.rds.amazonaws.com;DATABASE=hrms;UID=uind_hrms_user;PASSWORD=UINDHRMS01;"
|
||||||
providerName="MySql.Data.MySqlClient" />
|
providerName="MySql.Data.MySqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<add key="TEMPLATE_JOB_INTERVAL_MINUTES" value="240" />
|
<add key="TEMPLATE_JOB_INTERVAL_MINUTES" value="240" />
|
||||||
<add key="TEMPLATE_SYNC_ENABLED" value="true" />
|
<add key="TEMPLATE_SYNC_ENABLED" value="true" />
|
||||||
<add key="TRANSFER_MODE" value="DEVICE_TO_DB" />
|
<add key="TRANSFER_MODE" value="DEVICE_TO_DB" />
|
||||||
<!-- <add key="TRANSFER_MODE" value="DB_TO_DEVICE" /> -->
|
<add key="TRANSFER_MODE" value="DB_TO_DEVICE" />
|
||||||
<add key="DEVICE_SETTINGS_PATH" value="DeviceSettings.xml" />
|
<add key="DEVICE_SETTINGS_PATH" value="DeviceSettings.xml" />
|
||||||
<add key="TEMPLATE_VERIFY_AFTER_PUSH" value="true" />
|
<add key="TEMPLATE_VERIFY_AFTER_PUSH" value="true" />
|
||||||
<add key="TEMPLATE_DEVICE_DELAY_MS" value="0" />
|
<add key="TEMPLATE_DEVICE_DELAY_MS" value="0" />
|
||||||
|
|
@ -22,6 +22,8 @@
|
||||||
<!-- F710X uses HTTP web API (port 80). Set HDCP only for classic FaceID devices on 9922. -->
|
<!-- F710X uses HTTP web API (port 80). Set HDCP only for classic FaceID devices on 9922. -->
|
||||||
<add key="DEVICE_PROTOCOL" value="HTTP" />
|
<add key="DEVICE_PROTOCOL" value="HTTP" />
|
||||||
<add key="DEVICE_HTTP_PORT" value="80" />
|
<add key="DEVICE_HTTP_PORT" value="80" />
|
||||||
|
<add key="DEVICE_HTTP_TIMEOUT_MS" value="120000" />
|
||||||
|
<add key="DEVICE_DELETE_BATCH_SIZE" value="20" />
|
||||||
<add key="DEVICE_FACE_BACKUPNUM" value="50" />
|
<add key="DEVICE_FACE_BACKUPNUM" value="50" />
|
||||||
<!-- Hanvon HDCP device type string used in DeviceInfo(...) when DEVICE_PROTOCOL=HDCP -->
|
<!-- Hanvon HDCP device type string used in DeviceInfo(...) when DEVICE_PROTOCOL=HDCP -->
|
||||||
<add key="DEVICE_TYPE" value="HW_HDCP" />
|
<add key="DEVICE_TYPE" value="HW_HDCP" />
|
||||||
|
|
@ -29,9 +31,12 @@
|
||||||
<add key="DEVICE_USERNAME" value="admin" />
|
<add key="DEVICE_USERNAME" value="admin" />
|
||||||
<add key="DEVICE_PASSWORD" value="12345678" />
|
<add key="DEVICE_PASSWORD" value="12345678" />
|
||||||
<!-- Remove attendance from device only after successful DB batch insert -->
|
<!-- Remove attendance from device only after successful DB batch insert -->
|
||||||
|
<add key="SERVICE_SHUTDOWN_WAIT_SECONDS" value="300" />
|
||||||
<add key="ATTENDANCE_DELETE_AFTER_INSERT" value="true" />
|
<add key="ATTENDANCE_DELETE_AFTER_INSERT" value="true" />
|
||||||
<add key="DB_CONNECTION_RETRY_ATTEMPTS" value="3" />
|
<add key="DB_CONNECTION_RETRY_ATTEMPTS" value="3" />
|
||||||
<add key="DB_CONNECTION_RETRY_DELAY_MS" value="2000" />
|
<add key="DB_CONNECTION_RETRY_DELAY_MS" value="2000" />
|
||||||
|
<add key="EnableEmployeePhotoSource" value="true" />
|
||||||
|
<add key="EmployeePhotoBaseUrl" value="https://portal.utopiaindustries.pk/uind/employee-photo/" />
|
||||||
</appSettings>
|
</appSettings>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,24 @@
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<PublishUrl>\\192.168.2.15\Edata\Deployments-by-DotNet-Team\Deployment-By-Mustafa\Hanvon_Att_Service\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Unc</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||||
|
<WebPage>publish.htm</WebPage>
|
||||||
|
<ApplicationRevision>1</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
|
@ -35,6 +53,18 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<StartupObject />
|
<StartupObject />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ManifestCertificateThumbprint>AA58AFA5D821853F31625FE5CB9C07A28BCE1E6B</ManifestCertificateThumbprint>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ManifestKeyFile>HanvonF710XAttendanceService_TemporaryKey.pfx</ManifestKeyFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<GenerateManifests>true</GenerateManifests>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<SignManifests>true</SignManifests>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="BouncyCastle.Crypto, Version=1.8.5.0, Culture=neutral, PublicKeyToken=0e99375e54769942">
|
<Reference Include="BouncyCastle.Crypto, Version=1.8.5.0, Culture=neutral, PublicKeyToken=0e99375e54769942">
|
||||||
<HintPath>packages\BouncyCastle.1.8.5\lib\BouncyCastle.Crypto.dll</HintPath>
|
<HintPath>packages\BouncyCastle.1.8.5\lib\BouncyCastle.Crypto.dll</HintPath>
|
||||||
|
|
@ -82,6 +112,7 @@
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Web.Extensions" />
|
<Reference Include="System.Web.Extensions" />
|
||||||
<Reference Include="System.ServiceProcess" />
|
<Reference Include="System.ServiceProcess" />
|
||||||
|
|
@ -94,6 +125,7 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="ApplicationPaths.cs" />
|
||||||
<Compile Include="Attendance.cs" />
|
<Compile Include="Attendance.cs" />
|
||||||
<Compile Include="AttendanceDAO.cs" />
|
<Compile Include="AttendanceDAO.cs" />
|
||||||
<Compile Include="AttendanceMachine.cs" />
|
<Compile Include="AttendanceMachine.cs" />
|
||||||
|
|
@ -101,7 +133,18 @@
|
||||||
<Compile Include="AttendanceMachineFaceTemplateDAO.cs" />
|
<Compile Include="AttendanceMachineFaceTemplateDAO.cs" />
|
||||||
<Compile Include="AttendanceMachineUser.cs" />
|
<Compile Include="AttendanceMachineUser.cs" />
|
||||||
<Compile Include="AttendanceMachineUserDAO.cs" />
|
<Compile Include="AttendanceMachineUserDAO.cs" />
|
||||||
|
<Compile Include="DbToDeviceFaceErrors.cs" />
|
||||||
|
<Compile Include="DbToDeviceFaceErrorsTests.cs" />
|
||||||
|
<Compile Include="DbToDeviceSummary.cs" />
|
||||||
|
<Compile Include="DbToDeviceSummaryTests.cs" />
|
||||||
|
<Compile Include="DbToDevicePlanning.cs" />
|
||||||
|
<Compile Include="DbToDevicePlanningTests.cs" />
|
||||||
<Compile Include="DeviceSettingsConfig.cs" />
|
<Compile Include="DeviceSettingsConfig.cs" />
|
||||||
|
<Compile Include="EmployeePhotoSourceSettings.cs" />
|
||||||
|
<Compile Include="HrmsEmployeeDAO.cs" />
|
||||||
|
<Compile Include="HrmsEmployeeMappingTests.cs" />
|
||||||
|
<Compile Include="HrmsEmployeePhotoClient.cs" />
|
||||||
|
<Compile Include="HrmsEmployeePhotoClientTests.cs" />
|
||||||
<Compile Include="LogService.cs" />
|
<Compile Include="LogService.cs" />
|
||||||
<Compile Include="ProjectInstaller.cs">
|
<Compile Include="ProjectInstaller.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
|
|
@ -110,13 +153,21 @@
|
||||||
<DependentUpon>ProjectInstaller.cs</DependentUpon>
|
<DependentUpon>ProjectInstaller.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="HanvonHttpApiClient.cs" />
|
<Compile Include="HanvonHttpApiClient.cs" />
|
||||||
|
<Compile Include="HanvonHttpDiagnostics.cs" />
|
||||||
<Compile Include="HanvonF710XWindowsService.cs">
|
<Compile Include="HanvonF710XWindowsService.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="HanvonF710XWindowsService.Designer.cs">
|
<Compile Include="HanvonF710XWindowsService.Designer.cs">
|
||||||
<DependentUpon>HanvonF710XWindowsService.cs</DependentUpon>
|
<DependentUpon>HanvonF710XWindowsService.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="MachineUserDeleteBatcher.cs" />
|
||||||
|
<Compile Include="MachineUserDeleteSettings.cs" />
|
||||||
|
<Compile Include="MachineUserDeleteSync.cs" />
|
||||||
|
<Compile Include="MachineUserDeleteSyncTests.cs" />
|
||||||
<Compile Include="MachineScope.cs" />
|
<Compile Include="MachineScope.cs" />
|
||||||
|
<Compile Include="NedoTemplateConverter.cs" />
|
||||||
|
<Compile Include="NedoTemplateConverterTests.cs" />
|
||||||
|
<Compile Include="NedoPhotoPreprocessor.cs" />
|
||||||
<Compile Include="TemplateParser.cs" />
|
<Compile Include="TemplateParser.cs" />
|
||||||
<Compile Include="TemplateTransferRunner.cs" />
|
<Compile Include="TemplateTransferRunner.cs" />
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
|
|
@ -127,6 +178,7 @@
|
||||||
<None Include="DeviceSettings.xml">
|
<None Include="DeviceSettings.xml">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
<None Include="HanvonF710XAttendanceService_TemporaryKey.pfx" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -134,5 +186,17 @@
|
||||||
<DependentUpon>ProjectInstaller.cs</DependentUpon>
|
<DependentUpon>ProjectInstaller.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
Loading…
Reference in New Issue