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
1 answer

The "LinkAssemblies" task failed unexpectedly after Xamarin Forms update to 3.1

I have recently updated my solution from Xamarin Forms 2.5 to 3.1. I have installed the package Prism.DryIoc.Forms 7.0.0.396 on the different applications (UWP, IOS, Android). Everything works as expected since the update with UWP but when I try to…
IRONicMAN
  • 484
  • 1
  • 5
  • 13
0
votes
2 answers

DRYIOC Parameterless controller

I setup dryIoc with MVC because it's an mvc application but i recently just added an API controller to the project. I get error when i call the API controller. The MVC controllers are working fine An error occurred when trying to create a…
0
votes
1 answer

What is the proper way to register view with viewmodels in Prism.DryIoc

I'm using the Prism Template Pack for Visual Studio for Mac to generate a new project (tried both shared and pcl) then updating to 7.0.0.340-ci. Is registration of the views to view models done by convention? When I try to run this app it throws…
R. J.
  • 437
  • 5
  • 15
0
votes
1 answer

DryIoc: Register with a different Dependency of a Dependency

How can I override a Dependency of a Dependency in a Register-Statement? For Example: class A { public A(IB b) {} } class MyService { public MyService(A a) {} } cnt.Register(made: Parameters.Of.Type(serviceKey: "otherIB")); //…
user2429841
  • 83
  • 2
  • 8
0
votes
1 answer

DryIOC: Registering a generic type throws: Implementation type is not specified when using automatic constructor selection

I want to register a generic base repository that accepts ,entity and entity key, I have the IBaseRepo and it's implementation. I used this line of code below container.Register(typeof(IRepository<,>), typeof(RepositoryBase<,>), made:…
0
votes
2 answers

How can I remove (set to null) a registered singleton type in DryIoC?

I have a requirement to completely delete an instance that is already resolved by DryIoC container (but not unregister the type). I don't know if this is possible? If I don't use any IoC container and just declare singletons myself I of course can…
Hopeless
  • 4,397
  • 5
  • 37
  • 64
0
votes
1 answer

DryIoC - Register equivalent in Unity Prism

What is the equivalent of this code(DryIoC) in Unity? Container.Register( Reuse.Singleton ); This is a sample code from HamburgerMenu project in Prism Xamarin Thanks!
Jeric Cruz
  • 1,899
  • 1
  • 14
  • 29
0
votes
1 answer

How to pass a Dependency from a Test Project to a Concrete Implementation in DryIoc

I'm sorry I don't have much code to share because I'm not sure how this would work. I have a test project called API.Tests and I'm writing tests for the NewsController within the API project. I'm not sure how I would pass a dependency from Tests to…
Christopher Johnson
  • 635
  • 2
  • 7
  • 21
0
votes
1 answer

How to register IEnumerable In DryIoc Mvc Controller like Autofac Enumeration (IEnumerable, IList, ICollection)

Test Code With Autofac is Ok,but with DryIoc is error. How to make this work. public class HomeController : Controller { private readonly ITestAppService _testAppService; private readonly IEnumerable
0
votes
1 answer

Inject property with value from another property of another registered object?

I'm not so sure that DryIoc is worth my time. It looks like lightweight and supported well in cross-platform environment (with Xamarin). But I feel a bit difficult working with it (in term of exploring everything myself). The DryIoc community is…
Hopeless
  • 4,397
  • 5
  • 37
  • 64
0
votes
0 answers

How can I get PRISM to inject Transient dependencies into view?

we are making a Xamarin application that uses PRISM library with DryIoc for DI. We have some services registered as Transient or Scoped in a .NET Core dependency injection simple IServiceCollection, which we adapt onto DryIoc. The problem that we…
AlexDRL
  • 159
  • 6
0
votes
1 answer

Unable to select constructor with argument resolved from another registered instance property

The following example will register the property of the applicationconfiguration instance into the container, the next registration will then use that property for the constructor of the console writer. container.Register( Made.Of(r…
Identity
  • 1,553
  • 1
  • 22
  • 44
0
votes
1 answer

Creating DbContext at runtime using DryIoc with Asp.Net Web Api app

I want to do something like this Autofac line below with DryIoC builder.RegisterType ().InstancePerLifetimeScope().WithParameter(new NamedParameter("connectionString", "")); I have a CoreDBContext that has the connection string of…
0
votes
1 answer

DryIoc in XamarinAndroid Register Singleton is working but normal Register doesn't working

I have a MyGameView class inherits from IMyGameView interface and AndroidGameView class from OpenTK. So, if i register MyGameView class with singleton it is working but if i register as normal registration, application doesn't answer and output text…
0
votes
1 answer

Using DryIoc with a dependency and primitive values

I am registering an implementation to be created for an interface. This implementations constructor has three paramaters: public ProfileImageService(ISqlConnection connection, string localStorageLocation, string serverPath) I have already…
Richard Mannion
  • 289
  • 5
  • 17
1 2 3
15
16