UnifiedFeed SDK is a client library that enables easier integration with the Betradar XML feeds. SDK exposes XML feed service interface in a more user-friendly way and isolates the client from having to do XML feed parsing, proper connection handling, error recovery, event queuing, data caching and dispatching.
I got the following exception when running the application under .net 7 with macbook M1, May I know any workaround for this?
Unhandled exception. System.TypeInitializationException: The type initializer for 'Sportradar.OddsFeed.SDK.Entities.REST.Internal.Deserializer`1' threw an exception.
---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'Sportradar.OddsFeed.SDK.API.Internal.ConfiguredConnectionFactory' from assembly 'Sportradar.OddsFeed.SDK, Version=1.28.0.0, Culture=neutral, PublicKeyToken=null' because the parent type is sealed.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Sportradar.OddsFeed.SDK.Entities.REST.Internal.Deserializer`1..cctor()
System.TypeLoadException: Could not load type 'Sportradar.OddsFeed.SDK.API.Internal.ConfiguredConnectionFactory' from assembly 'Sportradar.OddsFeed.SDK, Version=1.28.0.0, Culture=neutral, PublicKeyToken=null' because the parent type is sealed.
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Unity.Processors.ConstructorProcessor.<>c__DisplayClass16_0.<GetResolverDelegate>b__0(BuilderContext& c)
at Unity.Processors.MemberProcessor`2.<>c__DisplayClass8_0.<GetResolver>b__0(BuilderContext& c)
at Unity.Processors.MemberProcessor`2.<>c__DisplayClass8_0.<GetResolver>b__0(BuilderContext& c)
at Unity.Processors.MemberProcessor`2.<>c__DisplayClass8_0.<GetResolver>b__0(BuilderContext& c)
at Unity.UnityContainer.<>c__DisplayClass113_0.<OptimizingFactory>b__0(BuilderContext& c)
at Unity.Strategies.BuildPlanStrategy.PreBuildUp(BuilderContext& context)
at Unity.UnityContainer.<>c.<.ctor>b__73_2(BuilderStrategy[] chain, BuilderContext& context)
at Unity.Builder.BuilderContext.Resolve(Type type, String name, InternalRegistration registration)
at Unity.Builder.BuilderContext.Resolve(Type type, String name)
at Unity.Injection.ResolvedParameter.<GetResolver>b__6_0[TContext](TContext& c)
at Unity.Builder.BuilderContext.Resolve(ParameterInfo parameter, Object value)
at Unity.Processors.ParametersProcessor`1.<>c__DisplayClass7_0.<CreateParameterResolvers>b__0(BuilderContext& context)
at Unity.Processors.ConstructorProcessor.<>c__DisplayClass16_0.<GetResolverDelegate>b__0(BuilderContext& c)
at Unity.Processors.MemberProcessor`2.<>c__DisplayClass8_0.<GetResolver>b__0(BuilderContext& c)
at Unity.Processors.MemberProcessor`2.<>c__DisplayClass8_0.<GetResolver>b__0(BuilderContext& c)
at Unity.Processors.MemberProcessor`2.<>c__DisplayClass8_0.<GetResolver>b__0(BuilderContext& c)
at Unity.UnityContainer.<>c__DisplayClass113_0.<OptimizingFactory>b__0(BuilderContext& c)
at Unity.Strategies.BuildPlanStrategy.PreBuildUp(BuilderContext& context)
at Unity.UnityContainer.<>c.<.ctor>b__73_1(BuilderContext& context)
at Unity.UnityContainer.Unity.IUnityContainer.Resolve(Type type, String name, ResolverOverride[] overrides)
at Sportradar.OddsFeed.SDK.API.Internal.UnityFeedBootstrapper.RegisterBaseTypes(IUnityContainer container, IOddsFeedConfiguration userConfig, ILoggerFactory loggerFactory, IMetricsRoot metricsRoot)
at Sportradar.OddsFeed.SDK.API.Feed..ctor(IOddsFeedConfiguration config, Boolean isReplay, ILoggerFactory loggerFactory, IMetricsRoot metricsRoot)
at Sportradar.OddsFeed.SDK.API.Feed..ctor(IOddsFeedConfiguration config, ILoggerFactory loggerFactory, IMetricsRoot metricsRoot)
I got the following exception when running the application under .net 7 with macbook M1, May I know any workaround for this?