Open ibondy opened 4 years ago
Just downloaded the project and tried to run tests and none of the persistence test succeeded. Same error for each test: Message: System.ArgumentException : GenericArguments[0], 'Orleans.Persistence.CosmosDB.CosmosDBGrainStorage', on 'Microsoft.Extensions.Options.OptionsMonitor1[TOptions]' violates the constraint of type 'TOptions'. ---- System.TypeLoadException : GenericArguments[0], 'Orleans.Persistence.CosmosDB.CosmosDBGrainStorage', on 'Microsoft.Extensions.Options.OptionsMonitor1[TOptions]' violates the constraint of type parameter 'TOptions'. Stack Trace: RuntimeType.ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e) RuntimeType.MakeGenericType(Type[] instantiation) CallSiteFactory.TryCreateOpenGeneric(ServiceDescriptor descriptor, Type serviceType, CallSiteChain callSiteChain, Int32 slot) CallSiteFactory.TryCreateOpenGeneric(Type serviceType, CallSiteChain callSiteChain) CallSiteFactory.CreateCallSite(Type serviceType, CallSiteChain callSiteChain) <>cDisplayClass7_0.b0(Type type) ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) CallSiteFactory.GetCallSite(Type serviceType, CallSiteChain callSiteChain) ServiceProviderEngine.CreateServiceAccessor(Type serviceType) ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) ServiceProviderEngineScope.GetService(Type serviceType) ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) CosmosDBGrainStorageFactory.Create(IServiceProvider services, String name) line 467 <.ctor>b0() Lazy1.ViaFactory(LazyThreadSafetyMode mode) Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) Lazy1.CreateValue() Lazy1.get_Value() KeyedSingletonService2.GetService(IServiceProvider services) KeyedServiceCollection2.GetService(IServiceProvider services, TKey key) KeyedServiceCollectionExtensions.GetServiceByKey[TKey,TService](IServiceProvider services, TKey key) KeyedServiceCollectionExtensions.GetRequiredServiceByKey[TKey,TService](IServiceProvider services, TKey key) KeyedServiceCollectionExtensions.GetRequiredServiceByName[TService](IServiceProvider services, String name) <>c.b27_2(IServiceProvider s, String n) line 289 <.ctor>b0() Lazy1.ViaFactory(LazyThreadSafetyMode mode) Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) Lazy1.CreateValue() Lazy1.get_Value() KeyedSingletonService2.GetService(IServiceProvider services) <.ctor>b__64_1(IKeyedService2 s) SelectArrayIterator2.MoveNext() Silo.ctor(ILocalSiloDetails siloDetails, IServiceProvider services) RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) <>cDisplayClass1_0.b__0(ServiceProviderEngineScope scope) ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) ServiceProviderEngineScope.GetService(Type serviceType) ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) Host.StartAsync(CancellationToken cancellationToken) ----- Inner Stack Trace ----- RuntimeTypeHandle.Instantiate(Type[] inst) RuntimeType.MakeGenericType(Type[] instantiation)
1[TOptions]' violates the constraint of type 'TOptions'. ---- System.TypeLoadException : GenericArguments[0], 'Orleans.Persistence.CosmosDB.CosmosDBGrainStorage', on 'Microsoft.Extensions.Options.OptionsMonitor
2.GetOrAdd(TKey key, Func
1.ViaFactory(LazyThreadSafetyMode mode) Lazy
1.CreateValue() Lazy
2.GetService(IServiceProvider services) KeyedServiceCollection
2.GetService(IServiceProvider services) <.ctor>b__64_1(IKeyedService
2.MoveNext() Silo.ctor(ILocalSiloDetails siloDetails, IServiceProvider services) RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor
2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor
2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) CallSiteVisitor
Just downloaded the project and tried to run tests and none of the persistence test succeeded. Same error for each test: Message: System.ArgumentException : GenericArguments[0], 'Orleans.Persistence.CosmosDB.CosmosDBGrainStorage', on 'Microsoft.Extensions.Options.OptionsMonitorb0(Type type)
ConcurrentDictionaryb 27_2(IServiceProvider s, String n) line 289
<.ctor>b0()
Lazyb__0(ServiceProviderEngineScope scope)
ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
ServiceProviderEngineScope.GetService(Type serviceType)
ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
Host.StartAsync(CancellationToken cancellationToken)
----- Inner Stack Trace -----
RuntimeTypeHandle.Instantiate(Type[] inst)
RuntimeType.MakeGenericType(Type[] instantiation)
1[TOptions]' violates the constraint of type 'TOptions'. ---- System.TypeLoadException : GenericArguments[0], 'Orleans.Persistence.CosmosDB.CosmosDBGrainStorage', on 'Microsoft.Extensions.Options.OptionsMonitor
1[TOptions]' violates the constraint of type parameter 'TOptions'. Stack Trace: RuntimeType.ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e) RuntimeType.MakeGenericType(Type[] instantiation) CallSiteFactory.TryCreateOpenGeneric(ServiceDescriptor descriptor, Type serviceType, CallSiteChain callSiteChain, Int32 slot) CallSiteFactory.TryCreateOpenGeneric(Type serviceType, CallSiteChain callSiteChain) CallSiteFactory.CreateCallSite(Type serviceType, CallSiteChain callSiteChain) <>cDisplayClass7_0.2.GetOrAdd(TKey key, Func
2 valueFactory) CallSiteFactory.GetCallSite(Type serviceType, CallSiteChain callSiteChain) ServiceProviderEngine.CreateServiceAccessor(Type serviceType) ConcurrentDictionary2.GetOrAdd(TKey key, Func
2 valueFactory) ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) ServiceProviderEngineScope.GetService(Type serviceType) ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) CosmosDBGrainStorageFactory.Create(IServiceProvider services, String name) line 467 <.ctor>b0() Lazy1.ViaFactory(LazyThreadSafetyMode mode) Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) Lazy1.CreateValue() Lazy
1.get_Value() KeyedSingletonService2.GetService(IServiceProvider services) KeyedServiceCollection
2.GetService(IServiceProvider services, TKey key) KeyedServiceCollectionExtensions.GetServiceByKey[TKey,TService](IServiceProvider services, TKey key) KeyedServiceCollectionExtensions.GetRequiredServiceByKey[TKey,TService](IServiceProvider services, TKey key) KeyedServiceCollectionExtensions.GetRequiredServiceByName[TService](IServiceProvider services, String name) <>c.1.ViaFactory(LazyThreadSafetyMode mode) Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) Lazy1.CreateValue() Lazy
1.get_Value() KeyedSingletonService2.GetService(IServiceProvider services) <.ctor>b__64_1(IKeyedService
2 s) SelectArrayIterator2.MoveNext() Silo.ctor(ILocalSiloDetails siloDetails, IServiceProvider services) RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor
2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor
2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) CallSiteVisitor
2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) CallSiteVisitor
2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) <>cDisplayClass1_0.