Questions tagged [dryioc]

DryIoc is small, fast, capable IoC Container for .NET

DryIoc provides modern take on IoC/DI automation with Simplicity of use, Performance, and Features in mind.

236 questions
2
votes
1 answer

Converting Prism application container from Autofac to DryIoc, ReactiveUI Viewmodels are not automatically registered as they were

We're updating an old .Net Framework application to .Net 7 and with it, many of it's dependencies. The application is built on Prism (currently version 6.3.0) and it's corresponding Autofac implementation. Newer versions of prism no longer support…
JWard
  • 41
  • 3
2
votes
1 answer

DryIoc: Registering a collection of dependencies of the same implementation with different constructor parameters

I have a service, let's call it SearchService that is using several endpoints, each of them handling a specific language. The endpoints are represented by Client classes that are initialized based on the contents of a configuration file. I'd like to…
2
votes
2 answers

System.MissingMethodException Message=Method not found: DryIoc.Rules DryIoc.Rules.WithoutFastExpressionCompiler()

I am using Prism.DryIoc.Extensions(v8.0.62) and Prism.DryIoc.Forms(v8.1.97) which internally is using DryIoc.dll v4.7.3 and v4.7.7 respectively for my Xamarin.Forms project. I also have a nuget update for my project which is internally using…
Anoop H.N
  • 1,244
  • 1
  • 15
  • 31
2
votes
2 answers

Is it possible to switch Azure functions standard DI container for another?

Currently I am using DI in azure functions the standard way public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { /*Register dependencies*/ …
2
votes
1 answer

Is it possible to customize DryIOC type matching to workaround embedded Interop COM assemblies type mismatch?

We are currently working on a Prism project using DryIoc as the backing container and we are running into problems with the embedding of Interop assemblies for our COM interop. In the past, when we had issues like this, for instance, with…
2
votes
1 answer

Scoped Unit of Work Resolution in Prism Xamarin with DryIoc

In a Prism Xamarin app with DryIoc as container, I have a Unit of Work which is referenced by several other components which are then referenced from view models. It looks something like this (interface declarations skipped for briefness): public…
Vladimir
  • 1,425
  • 16
  • 31
2
votes
2 answers

Get the list of registered view for navigation with Prism

I am working on a modular application with Prism DryIoc on WPF In my modules I have views registered for navigation like this public void RegisterTypes(IContainerRegistry containerRegistry) { …
Alex R
  • 347
  • 2
  • 10
2
votes
1 answer

Container has different rules for .net 5 web app and test project

I have a small .net 5 WebApi app, using DryIoc. I am now trying to set up an xUnit test suite for this app, but the integration tests fail immediately because one of the registrations has multiple constructors, even though I am using the same rules…
Anduril
  • 1,236
  • 1
  • 9
  • 33
2
votes
1 answer

DI - resolving instance using parameter (Prism using DryIoc)

I've been searching over the web how could I resolve instance using Prism DryIOC that uses parameter during runtime, but to luck yet. For example, I have a class: internal sealed class ItemInfoHelper : IItemInfoHelper { //ctor public…
Oleksii
  • 1,479
  • 1
  • 19
  • 35
2
votes
1 answer

DryIoC pass param to constructor of open generic service based on generic type parameter

Let say that I have this service and two strategies for it: public class SomeService : ISomeService { public SomeService(ICurrentDbContext context, IStrategy? delete = null) : base(context, delete ?? new…
2
votes
2 answers

How to prevent DryIoc to dispose singletons on child container dispose

I want to use child container from DryIoc, but somehow it is disposing singletons from parent container. How can I create child container which resolves the singleton instances, but does not dispose them? [Test] public void Test1() { …
user234878
  • 68
  • 5
2
votes
2 answers

Xamarin Prism Unable to navigate to LoginPageViewModel

I am trying to make my Xamarin Project use MVVM with Prism and DryIoc. I mostly want to use AutoRegistration like below: [AutoRegisterForNavigation] ... protected override void RegisterTypes(IContainerRegistry containerRegistry) { //Pages …
2
votes
1 answer

Operation is not supported on this platform exception on Xamarin iOS

I am using DryIoC container, and while trying to resolve one of the implementations am getting below error: Operation is not supported on this platform exception on Xamarin iOS The resolve work's fine for the first time, but when I try to call…
Dishant
  • 1,545
  • 12
  • 29
2
votes
0 answers

Use DryIoC in FreshMVVM

In the README.md of the FreshMVVM repo it is explained which interface has to be implemented to use any other IoC container besides the built-in version of TinyIoC. Is there anyone here who already created a implementation for DryIoC and get it to…
2
votes
1 answer

DryIoc Scope and Reuse

I would like to register two services, A & B, with different lifetimes. My use case is simmilar to "Browser" and "Tabs". I have one scope over the executable lifetime (browser) and one "subScope" for each tab. I want A to be a singleton in the…
Nefarion
  • 872
  • 2
  • 8
  • 28
1 2
3
15 16