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

DryIoc with MediatR: IAsyncRequestHandler Resolve exception

DryIoc can't seem to Resolve a IAsyncRequestHandler.It throws"An exception of type 'DryIoc.ContainerException' occurred in DryIoc.dll but was not handled in user code Additional information: Unable to resolve MediatR.IRequestHandler. Where no…
DMVC
  • 240
  • 1
  • 2
  • 15
0
votes
1 answer

Open Generics with injected primitive

How can I register an Open Generic type with another open generic and primitive injected in the constructor?See example below.In this example, Resolve is throwing "Unable to resolve String as parameter "connectionString"" exception. (you can check…
DMVC
  • 240
  • 1
  • 2
  • 15
0
votes
2 answers

Using DryIOC in an OWIN-based ASP.NET WebAPI doesn't work

I have a simple app which uses an OWIN-Startup class to configure itself. BUT, I'm not able to get it to work! Here is my configuration: public void Configuration(IAppBuilder appBuilder) { var httpConfiguration = new HttpConfiguration(); …
amiry jd
  • 27,021
  • 30
  • 116
  • 215
0
votes
0 answers

DryIoC convention mapping how?

I want to set the DryIoC container to a default convention mapping (for example: resolve IFoo to Foo and IBar to Bar). How can this be achieved ?
Patrick Peters
  • 9,456
  • 7
  • 57
  • 106
0
votes
1 answer

Unable to resolve XXX. Where no service registrations found and number of Rules.FallbackContainers: 0 and number of Rules.UnknownServiceResolvers: 0

My app gets error in last line: var ioc= new DryIoc.Container(); var Task = DryIoc.Resolver.Resolve(ioc); Error received: Unable to resolve XXX. Where no service registrations found and number of Rules.FallbackContainers: 0 and number…
P.K.
  • 1,746
  • 6
  • 25
  • 62
0
votes
1 answer

DryIoc RegisterInitializer for logging resolution errors?

Looking at the documentation for DryIoc I see there is a way to register an initializer func that could be used to log successful resolutions. Is there anyway to log failed resolutions using RegisterInitializer or similar?
Keir
  • 483
  • 3
  • 10
0
votes
1 answer

DryIoc and ExpressMapper

I'm using DryIoc and ExpressMapper. I wrap ExpressMapper inside another class and at some point it should be use to map to a type with a parametrized constructor. Actually it's when I map a view model to a business model. The parameter is an…
Serge Intern
  • 2,669
  • 3
  • 22
  • 39
0
votes
1 answer

Automatically registering all ViewModel and View files

I am looking into using DryIoc with Caliburn.Micro, and I could like to automatically register all ViewModels and Views. In AutoFac you can do something like this builder.RegisterAssemblyTypes(AssemblySource.Instance.ToArray()) .Where(type =>…
kasperhj
  • 10,052
  • 21
  • 63
  • 106
0
votes
1 answer

Implementation of the NServiceBus/MassTransit IContainer with DryIoc or LightInject

I had used DryIoc and LightInject in most of my .Net Web API 2+ solutions. Using new architecture, I would prefer to use NServiceBus or MassTransit for my next ESB implementation. However, I could not find any useful code reference that could help…
0
votes
1 answer

DryIoc: cannot register using Made

I'm using the DryIoc container at the moment. In the documentation it is shown how to register using Made: c.Register(made: Made.Of(() => new Foo(Arg.Of()))); I like this very much, however in my case the compiler doesn't…
Andrey K.
  • 665
  • 8
  • 29
-1
votes
1 answer

DryIoC with Prism crashes on HUAWEI only

I am facing the following error on my Xamarin.Forms app. Interpreter.TryInterpretAndUnwrapContainerException (DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, System.Boolean useFec, System.Object&…
lawiluk
  • 577
  • 4
  • 13
1 2 3
15
16