Add event sender customer sample that would use local .\lib and .\include SDK for 3P portal downloads page

This commit is contained in:
Max Golovanov 2018-11-07 14:05:05 -08:00
Родитель db30858b81
Коммит b66764d998
5 изменённых файлов: 353 добавлений и 0 удалений

Двоичные данные
examples/EventSender/EventSender.cpp Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,222 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>EventSender</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>
</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>$(ProjectDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(ProjectDir)\lib\$(Configuration)\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>ClientTelemetry.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>deploy-dll.cmd $(Configuration) $(Platform) $(OutDir)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>
</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>$(ProjectDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(ProjectDir)\lib\$(Configuration)\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>ClientTelemetry.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>deploy-dll.cmd $(Configuration) $(Platform) $(OutDir)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>
</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>$(ProjectDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(ProjectDir)\lib\$(Configuration)\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>ClientTelemetry.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>deploy-dll.cmd $(Configuration) $(Platform) $(OutDir)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>
</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>$(ProjectDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(ProjectDir)\lib\$(Configuration)\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>ClientTelemetry.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>deploy-dll.cmd $(Configuration) $(Platform) $(OutDir)</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="EventSender.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="deploy-dll.cmd" />
<None Include="include\Version.hpp.template" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="include\AggregatedMetric.hpp" />
<ClInclude Include="include\aria.h" />
<ClInclude Include="include\CAPIClient.hpp" />
<ClInclude Include="include\CorrelationVector.hpp" />
<ClInclude Include="include\ctmacros.hpp" />
<ClInclude Include="include\DebugEvents.hpp" />
<ClInclude Include="include\Enums.hpp" />
<ClInclude Include="include\EventProperties.hpp" />
<ClInclude Include="include\EventProperty.hpp" />
<ClInclude Include="include\IAFDClient.hpp" />
<ClInclude Include="include\IAuthTokensController.hpp" />
<ClInclude Include="include\IBandwidthController.hpp" />
<ClInclude Include="include\IECSClient.hpp" />
<ClInclude Include="include\IHttpClient.hpp" />
<ClInclude Include="include\ILogConfiguration.hpp" />
<ClInclude Include="include\ILogger.hpp" />
<ClInclude Include="include\ILogManager.hpp" />
<ClInclude Include="include\ISemanticContext.hpp" />
<ClInclude Include="include\LogConfiguration.hpp" />
<ClInclude Include="include\LogManager.hpp" />
<ClInclude Include="include\LogManagerBase.hpp" />
<ClInclude Include="include\LogManagerProvider.hpp" />
<ClInclude Include="include\LogSessionData.hpp" />
<ClInclude Include="include\NullObjects.hpp" />
<ClInclude Include="include\TransmitProfiles.hpp" />
<ClInclude Include="include\Variant.hpp" />
<ClInclude Include="include\VariantType.hpp" />
<ClInclude Include="include\Version.h" />
<ClInclude Include="include\Version.hpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

Просмотреть файл

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="EventSender.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="deploy-dll.cmd" />
<None Include="include\Version.hpp.template">
<Filter>Header Files</Filter>
</None>
</ItemGroup>
<ItemGroup>
<ClInclude Include="include\AggregatedMetric.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\aria.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\CAPIClient.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\CorrelationVector.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\ctmacros.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\DebugEvents.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\Enums.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\EventProperties.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\EventProperty.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\IAFDClient.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\IAuthTokensController.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\IBandwidthController.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\IECSClient.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\IHttpClient.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\ILogConfiguration.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\ILogger.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\ILogManager.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\ISemanticContext.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\LogConfiguration.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\LogManager.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\LogManagerBase.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\LogManagerProvider.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\LogSessionData.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\NullObjects.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\TransmitProfiles.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\Variant.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\VariantType.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\Version.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\Version.hpp">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>

Просмотреть файл

@ -0,0 +1,4 @@
@echo off
set PROJECT_DIR=%~dp0
copy %PROJECT_DIR%\lib\%1\%2\*.* %3
exit /b 0

Просмотреть файл

@ -7,6 +7,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloAria", "HelloAria\Hell
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloAriaCS", "HelloAriaCS\HelloAriaCS.csproj", "{65AFA0E2-F9A2-4309-87E7-E419D59583C1}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EventSender", "EventSender\EventSender.vcxproj", "{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@ -31,6 +33,14 @@ Global
{65AFA0E2-F9A2-4309-87E7-E419D59583C1}.Release|x64.Build.0 = Release|x64
{65AFA0E2-F9A2-4309-87E7-E419D59583C1}.Release|x86.ActiveCfg = Release|x86
{65AFA0E2-F9A2-4309-87E7-E419D59583C1}.Release|x86.Build.0 = Release|x86
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Debug|x64.ActiveCfg = Debug|x64
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Debug|x64.Build.0 = Debug|x64
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Debug|x86.ActiveCfg = Debug|Win32
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Debug|x86.Build.0 = Debug|Win32
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Release|x64.ActiveCfg = Release|x64
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Release|x64.Build.0 = Release|x64
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Release|x86.ActiveCfg = Release|Win32
{7DBFBA1F-520D-4C93-A33E-DD92FD4F9222}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE