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
0
votes
0 answers

Windows Community Toolkit IoC :: Is it || Will it be capable to add IoC Modules by other vendors or its own ones?

Is Windows Community Toolkit IoC anyhow capable to receive pre-configured modules by NInject, for example ? DryIoC is having modules on its roadmap so maybe that will become also neat so that we can deploy the dependency configurations to the Unit…
0
votes
2 answers

Use IServiceCollection extensions with DryIoc

There are many extensions for the IServiceCollection - in my case I use AddHttpClient. My scenario is that I register general stuff in the ConfigureServices method in the Startup.cs where IServiceCollection is used to register services. Everything…
Christoph Mett
  • 369
  • 3
  • 16
0
votes
1 answer

Prism.DRYIoc Cannot switch off ThrowOnRegisteringDisposableTransient

I have view with IDIsposable implemented and during registration, Prism throwing exception that it will not track this instance. I did the following: var container =…
Denis
  • 334
  • 4
  • 17
0
votes
1 answer

Prism, accessing DryIoC container from AppDelegate

I want to access the IoC Container from the FinishedLoading and the RegisteredForRemoteNotifications/OpenUrl functions in the App Delegate, is this possible? I tried to access the container after the App was initialised in the Finishedloading…
Jjohnny
  • 21
  • 2
0
votes
1 answer

How can I remove the duplication in IoC containers for two nearly-identical applications?

I've got two applications (in the same solution) that depend on the same shared library (separate project). This shared library does most of the work and takes in some services as interface dependencies. My IoC container for each application looks…
redcurry
  • 2,381
  • 2
  • 24
  • 38
0
votes
1 answer

DryIoc ASP.Net Core 3.1 DbContext store in Scope Container

I am using DryIoc (last release version) for Dependency Injection. In my application (Asp.net Core 3.1), I am using Entity Framework. My AppDbContext hinerits DbContext and implements IDisposable I also use UnitOfWork pattern and the class is…
Adrien
  • 121
  • 2
  • 9
0
votes
0 answers

Prism navigation/view discovery ignores container scopes

I am facing the following problem with Prism and DryIoC. My contaier is set up with different scopes for reusing dependencies within those scopes. This works fine on injected dependencies. But as soon as I use Prisms navigation…
stiefel
  • 1
  • 2
0
votes
1 answer

DryIoc - inject a Func with additional parameters as a Factory-method

In my implementation, I need to dynamically resolve a service, based on the servicekey. Therefor, I want to pass a Func, but can't get that working. Any help on this is appreciated. Let's have the following implemention: public interface…
BerDev
  • 1,457
  • 1
  • 8
  • 16
0
votes
1 answer

DryIoc Container Exception only in RELEASE mode for XF w/ Prism Android App

I am getting the following exception, but only in the RELEASE build for a Xamarin.Forms Android app built with Prism w/ DryIoc container and the Popups Plugin (which the exception is referring to). The app runs fine in DEBUG. I am only using SDK…
Mark Z.
  • 2,127
  • 16
  • 33
0
votes
1 answer

DryIoc: Enabling 'throwIfUnresolved' always throw an exception

I want to know name of dependencies that are missed (not injected)! I Use this extensions: DryIoc.dll v4.0.7 DryIoc.WebApi.dll v4.0.0 DryIoc.Web.dll v4.0.0 and I tried to use throwIfUnresolved parameter to solve the problem Like this: public…
user11023035
0
votes
1 answer

Convert Autofac Open Generic Interface Registration to DryIoc Registration

I want to register a mediator Im using from github, which provides a sample for registering it using Autofac. I think my problem lies with this Autofac line: builder.RegisterAssemblyTypes(assembly) .AsClosedTypesOf(typeof(IMessageHandler<,>)) …
FinalFortune
  • 635
  • 10
  • 25
0
votes
2 answers

Instantiating a New View/ViewModel Instance Using Prism/MVVM

I'm new to WPF/MVVM and I'm working on a project where I've integrated Dragablz tab controls in such a way where I need the equivalent of new OEEView() to instantiate a new Window into the content area of a new tab object. However, in the ctor of…
Adam Kehl
  • 3
  • 3
0
votes
1 answer

How to host DryIoc based Prism WPF application inside windows forms?

I have developed a Prism based WPF application using DryIoc container now I want to host it inside the windows forms application, But I couldn't find out how to host this application inside windows forms using element host. DryIoc bootstrapper…
Karthik Mahalingam
  • 1,071
  • 8
  • 10
0
votes
1 answer

Register and unregister services in Dryioc

I am creating application in Xamarin.Forms using Prism.Forms. It works quite well using Unity IOC. Because Unity lacks of some features I want to move to Dryioc. Because components (for example pages) of application changes at runtime so I need to…
raV720
  • 564
  • 3
  • 27
0
votes
1 answer

Alternative way to create shell in Prism.Windows 7.1.0?

As of this writing, the upcoming Prism.Windows 7.1.0 from MyGet Package is missing override method CreateShell() and I really wonder if it's gonna be moved into another method or it'll be gone in the final release. If so, what's the alternative…
Little doe
  • 184
  • 2
  • 10