Skip to content

Commit

Permalink
v1.52.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrovat committed Apr 26, 2022
1 parent c0eeeb8 commit 85ab409
Show file tree
Hide file tree
Showing 34 changed files with 432 additions and 119 deletions.
14 changes: 14 additions & 0 deletions ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ The package contains:
For more information please contact [email protected] or visit https://iodocs.betradar.com/unifiedsdk/index.html

CHANGE LOG:
2022-04-26 1.52.0
Separate HttpClient for critical (summary, player profile, competitor profile and variant market description) and other requests
Added configuration option for fast HttpClient in OperationManager (default timeout 5s)
Added GetTimelineEventsAsync to ISportDataProvider - extended with ISportDataProviderV11
Improved merging of competitor profile
Modified sliding expiration of profile cache items to avoid GC congestion
Improved how SportDataProvider is handling exceptions
Improved metrics and logging for raw data events
Improved metrics with app and system metrics
Added metrics for SemaphorePool
Fixed exception handling in DataRouterManager
Extended RawApiDataEventArgs with RequestParams, RequestTime and Language
Other minor improvements for observability

2022-02-23 1.51.0
Added BetradarName to IRound (extended with IRoundV3)
Fix: ICompetition competitors did not expose IsVirtual correctly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.51.0.0")]
[assembly: AssemblyFileVersion("1.51.0.0")]
[assembly: AssemblyVersion("1.52.0.0")]
[assembly: AssemblyFileVersion("1.52.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Sportradar.OddsFeed.SDK, Version=1.51.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Sportradar.OddsFeed.SDK.1.51.0\lib\net45\Sportradar.OddsFeed.SDK.dll</HintPath>
<Reference Include="Sportradar.OddsFeed.SDK, Version=1.52.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Sportradar.OddsFeed.SDK.1.52.0\lib\net45\Sportradar.OddsFeed.SDK.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
Expand Down
16 changes: 8 additions & 8 deletions example/Sportradar.OddsFeed.SDK.DemoProject/log4net.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<appender name="DebugAppender" type="log4net.Appender.DebugAppender">
<immediateFlush value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

<!-- Console appender writes to console -->
<appender name="ConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
<filter type="log4net.Filter.StringMatchFilter">
<stringToMatch value="Registering performance counter" />
Expand Down Expand Up @@ -53,7 +53,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; %thread&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -74,7 +74,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; %thread&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

Expand Down Expand Up @@ -108,7 +108,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %thread&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -125,7 +125,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; %thread&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -142,7 +142,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; %thread&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -159,7 +159,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

Expand Down
6 changes: 3 additions & 3 deletions example/Sportradar.OddsFeed.SDK.DemoProject/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="net45" />
<package id="NETStandard.Library" version="1.6.1" targetFramework="net45" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net45" />
<package id="Sportradar.OddsFeed.SDK" version="1.51.0" targetFramework="net45" />
<package id="Sportradar.OddsFeed.SDK" version="1.52.0" targetFramework="net45" />
<package id="System.Collections" version="4.3.0" targetFramework="net45" />
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net45" />
<package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net45" />
Expand All @@ -20,7 +20,7 @@
<package id="System.IO.Compression" version="4.3.0" targetFramework="net45" />
<package id="System.Linq" version="4.3.0" targetFramework="net45" />
<package id="System.Linq.Expressions" version="4.3.0" targetFramework="net45" />
<package id="System.Net.Http" version="4.3.0" targetFramework="net45" />
<package id="System.Net.Http" version="4.3.4" targetFramework="net45" />
<package id="System.Net.Primitives" version="4.3.0" targetFramework="net45" />
<package id="System.ObjectModel" version="4.3.0" targetFramework="net45" />
<package id="System.Reflection" version="4.3.0" targetFramework="net45" />
Expand All @@ -34,7 +34,7 @@
<package id="System.Runtime.Numerics" version="4.3.0" targetFramework="net45" />
<package id="System.Text.Encoding" version="4.3.0" targetFramework="net45" />
<package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="net45" />
<package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="net45" />
<package id="System.Text.RegularExpressions" version="4.3.1" targetFramework="net45" />
<package id="System.Threading" version="4.3.0" targetFramework="net45" />
<package id="System.Threading.Tasks" version="4.3.0" targetFramework="net45" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net45" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<appender name="DebugAppender" type="log4net.Appender.DebugAppender">
<immediateFlush value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}, %level %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

<!-- Console appender writes to console -->
<appender name="ConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%logger{1}&#9; %level&#9; %message%newline" />
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
<filter type="log4net.Filter.StringMatchFilter">
<stringToMatch value="Registering performance counter" />
Expand All @@ -28,7 +28,7 @@
</mapping>
<mapping>
<level value="DEBUG" />
<foreColor value="White" />
<foreColor value="CYAN" />
</mapping>
<mapping>
<level value="WARN" />
Expand All @@ -40,6 +40,23 @@
</mapping>
</appender>

<appender name="FileAppenderExample" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString">
<conversionPattern value="../../Logs/Example/logExample-%date{yyyyMMdd}.log" />
</file>
<encoding type="System.Text.UTF8Encoding" />
<appendToFile value="true" />
<rollingStyle value="Composite" />
<datePattern value="yyyyMMdd" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="100MB" />
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

<appender name="FileAppenderExec" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString">
<conversionPattern value="../../Logs/Execution/logExec-%date{yyyyMMdd}.log" />
Expand All @@ -57,7 +74,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -74,7 +91,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -91,13 +108,13 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; %logger{1}&#9; %message%newlinee" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %message%newline" />
</layout>
</appender>

<appender name="FileAppenderClient" type="log4net.Appender.RollingFileAppender">
<appender name="FileAppenderInteraction" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString">
<conversionPattern value="../../Logs/Iteration/logClient-%date{yyyyMMdd}.log" />
<conversionPattern value="../../Logs/Interaction/logInteraction-%date{yyyyMMdd}.log" />
</file>
<encoding type="System.Text.UTF8Encoding" />
<appendToFile value="true" />
Expand All @@ -108,7 +125,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -125,7 +142,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -142,7 +159,7 @@
<staticLogFileName value="true" />
<preserveLogFileNameExtension value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{HH:mm:ss,fff}&#9; %level&#9; %logger{1}&#9; %message%newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff}&#9; %level&#9; [%thread]&#9; %logger{1}&#9; %message%newline" />
</layout>
</appender>

Expand All @@ -154,49 +171,57 @@
<appender-ref ref="FileAppenderExec"/>
</root>

<!-- This section configures the log where execution message are written. You can set the level and appender which will process the log entries. Please note that each appender
referenced by the <appender-ref /> tag has to be defined first. If either the level or the appender list is not specified it will be taken from the RootLog -->
<logger name="Sportradar.OddsFeed.SDK.Execution" additivity="false">
<level value="INFO"/>
<!-- Logs from the DemoProject are logged only to debug output & console -->
<logger name="Sportradar.OddsFeed.SDK.DemoProject" additivity="false">
<level value="DEBUG"/>
<appender-ref ref="DebugAppender"/>
<appender-ref ref="ConsoleAppender"/>
<appender-ref ref="FileAppenderExample" />
</logger>

<!-- This section configures the log where execution message are written. You can set the level and appender which will process the log entries. Please note that each appender
referenced by the <appender-ref /> tag has to be defined first. If either the level or the appender list is not specified it will be taken from the RootLog -->
<logger name="Sportradar.OddsFeed.SDK" additivity="false">
<level value="DEBUG"/>
<!-- <appender-ref ref="DebugAppender"/> -->
<!-- <appender-ref ref="ConsoleAppender"/> -->
<appender-ref ref="FileAppenderExec"/>
</logger>

<!-- This section configures AMQP traffic log. You can set the level and appender which will process the log entries. Please note that each appender
referenced by the <appender-ref /> tag has to be defined first. If either the level or the appender list is not specified it will be taken from the RootLog -->
<logger name="Sportradar.OddsFeed.SDK.FeedTraffic" additivity="false">
<level value="INFO"/>
<logger name="Sportradar.OddsFeed.SDK.FeedTraffic" additivity="false">
<level value="DEBUG"/>
<appender-ref ref="FileAppenderFeed"/>
</logger>

<!-- This section configures REST traffic log. You can set the level and appender which will process the log entries. Please note that each appender
referenced by the <appender-ref /> tag has to be defined first. If either the level or the appender list is not specified it will be taken from the RootLog -->
<logger name="Sportradar.OddsFeed.SDK.RestTraffic" additivity="false">
<level value="INFO"/>
<level value="DEBUG"/>
<appender-ref ref="FileAppenderRest"/>
</logger>

<!-- This section configures the log for client interaction log. You can set the level and appender which will process the log entries. Please note that each appender
referenced by the <appender-ref /> tag has to be defined first. If either the level or the appender list is not specified it will be taken from the RootLog -->
<logger name="Sportradar.OddsFeed.SDK.ClientIteration" additivity="true">
<level value="ALL"/>
<appender-ref ref="FileAppenderClient"/>
<logger name="Sportradar.OddsFeed.SDK.ClientInteraction" additivity="false">
<level value="DEBUG"/>
<appender-ref ref="FileAppenderInteraction"/>
</logger>

<!-- This section configures the log used by the caching component within the SDK. You can set the level and appender which will process the log entries. Please note that each appender
referenced by the <appender-ref /> tag has to be defined first. If either the level or the appender list is not specified it will be taken from the RootLog -->
<logger name="Sportradar.OddsFeed.SDK.Cache" additivity="true">
<logger name="Sportradar.OddsFeed.SDK.Cache" additivity="false">
<level value="INFO"/>
<appender-ref ref="FileAppenderCache"/>
</logger>

<!-- This section configures the log statistic component within the SDK. You can set the level and appender which will process the log entries. Please note that each appender
referenced by the <appender-ref /> tag has to be defined first. If either the level or the appender list is not specified it will be taken from the RootLog -->
<logger name="Sportradar.OddsFeed.SDK.Stats" additivity="true">
<level value="ALL"/>
<logger name="Sportradar.OddsFeed.SDK.Stats" additivity="false">
<level value="INFO"/>
<appender-ref ref="FileAppenderStats"/>
</logger>

</log4net>

</configuration>
Binary file added nuget/Sportradar.OddsFeed.SDK.1.51.0.nupkg
Binary file not shown.
Binary file added nuget/Sportradar.OddsFeed.SDK.1.52.0.nupkg
Binary file not shown.
Binary file added src/SportEventHierarchy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/Sportradar.OddsFeed.SDK.API/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.51.0.0")]
[assembly: AssemblyFileVersion("1.51.0.0")]
[assembly: AssemblyVersion("1.52.0.0")]
[assembly: AssemblyFileVersion("1.52.0.0")]
4 changes: 2 additions & 2 deletions src/Sportradar.OddsFeed.SDK.Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.51.0.0")]
[assembly: AssemblyFileVersion("1.51.0.0")]
[assembly: AssemblyVersion("1.52.0.0")]
[assembly: AssemblyFileVersion("1.52.0.0")]
36 changes: 36 additions & 0 deletions src/Sportradar.OddsFeed.SDK.Docs/Content/Code Snippets1.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- This is an example code snippets file -->
<examples>
<item id="ClassDefinition#Define">
<sampleCode language="CSharp">
public class CSharpClass()
{
// Members go here
}
</sampleCode>
<sampleCode language="VisualBasic">
Public Class VBClass
' Members go here
End Class
</sampleCode>
</item>

<item id="CreateInstance#Local">
<sampleCode language="CSharp">
CSharpClass x = new CSharpClass();
</sampleCode>
<sampleCode language="VisualBasic">
Dim x As VBClass = New VBClass()
</sampleCode>
</item>

<item id="CreateInstance#Static">
<sampleCode language="CSharp">
public static CSharpClass sharedInstance = new CSharpClass();
</sampleCode>
<sampleCode language="VisualBasic">
Public Shared sharedInstance As VBClass = New VBClass()
</sampleCode>
</item>
</examples>

Loading

0 comments on commit 85ab409

Please sign in to comment.