Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
109 views

I am attempting to migrate an ASP.NET Core application from using IWebHostBuilder to WebApplicationBuilder. I understand that you can no longer call UseStartup. One useful thing about the old model ...
Andrew Shepherd's user avatar
0 votes
0 answers
31 views

I need to use Deckor.NET https://github.com/lawrence-laz/Decor.NET/tree/master to add attribute on method. Application is created in .NET and using Dependency injection with Transient and Func. When ...
Robert's user avatar
  • 2,711
1 vote
1 answer
48 views

I have an ASP.NET MVC app running on .NET 4.7.1 that is using Castle Windsor (5.0.0) as its DI container. Since this version of MVC uses a ServiceLocator pattern, I'm wrapping the container inside of ...
David Jessee's user avatar
0 votes
1 answer
63 views

(I use logging as an example here, but it could be any type.) I have a multiple components that would like to write to the same log file. I know that I can resolve ILoggerFactory and get the same ...
John V's user avatar
  • 1,393
1 vote
0 answers
771 views

We tried to update to ASP.NET Boilerplate to the newest version and .NET 8. This works fine except that we are using Serilog instead of the default logger. We tried to do the hosting with WebHost....
user23464220's user avatar
1 vote
1 answer
728 views

I'm implementing a dotnet Maui app, and got to the point when I'd need some aspects to hanlde errors and certain responses. In the past, I implemented interceptors using Castle Windsor, but how can I ...
balintn's user avatar
  • 1,533
0 votes
1 answer
347 views

We are using NServiceBus version 7.5 and Windsor Container. We load dependencies to a Windsor container. The dependencies are (for example) from loading FromAssemblyContaining. We load existing ...
Projector's user avatar
0 votes
2 answers
177 views

Here is an example using Castle Windsor Component.For<MultiInstanceFactory>().UsingFactoryMethod<MultiInstanceFactory>(k => t => (IEnumerable<object>)k.ResolveAll(t)); Where ...
Egli Becerra's user avatar
  • 1,040
0 votes
1 answer
555 views

In the .NET 4.6 project, we used castle Windsor as a Dependency resolver. The following code resolves all the dependencies within the current project. IWindsorContainer container = new ...
Harry S's user avatar
  • 11
4 votes
1 answer
555 views

I am trying to get my component to be resolved in my Web API project. I am using this code snippet for registering which works fine in my UnitTest project. Program.cs var builder = WebApplication....
codingjoe's user avatar
  • 840
1 vote
0 answers
2k views

we try at the moment to migrate an application from a very old .NET Core 1.1 to .NET 6. In this application we are using CastleWindsor 4.1.1 as dependency injection framework. Now we are at the point ...
mburm's user avatar
  • 1,525
1 vote
0 answers
113 views

When I try to run my test case I am getiing this exception: System.TypeLoadException Could not load type 'Castle.Core.Pair`2' from assembly 'Castle.Core, Version=5.0.0.0, Culture=neutral, ...
Bulent Hamutci's user avatar
2 votes
1 answer
1k views

There is a class with private constructor, and the only way to get instances of that class is to call static method CreateInstance(). Is it possible to add this class to DI and how? I am using the ...
npirate's user avatar
  • 23
1 vote
0 answers
75 views

Prerequisites: Castle Windsor 4.1.0 Net Framework 4.7.2 A large sequence of parallel requests Parties: API controller Service A as a singleton (default lifestyle for Castle Windsor) Service B as a ...
AllmanTool's user avatar
  • 1,604
0 votes
1 answer
619 views

I have a .NET Standard 2.0 library which has DI set up in the following way, container.Register(Component.For<IMyFactory>() .ImplementedBy<MyFactory>() .DependsOn(Dependency....
tRuEsAtM's user avatar
  • 3,751
0 votes
1 answer
63 views

I read the following code for Windsor installer. public class MessagingInstaller : IWindsorInstaller { public void Install(IWindsorContainer container, IConfigurationStore store) { var ...
ca9163d9's user avatar
  • 29.6k
1 vote
1 answer
2k views

I have a ASP.NET Core Web API, whose Program.cs looks like below, using Castle.Windsor; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services....
tRuEsAtM's user avatar
  • 3,751
0 votes
0 answers
381 views

Is there a way to use MS Dependency Injection with Castle Windsor. I am trying to use a third party library and unfortunately they only support MS Dependency Injection installation. (https://www....
Owais F's user avatar
  • 321
8 votes
1 answer
4k views

I have recently used NuGet to upgrade Castle Core to 5.0.0 and Castle Windsor to 5.1.1 in my existing ASP.NET Web Project. Castle Windsor was working perfectly before the upgrade. Now whenever I call: ...
Jackie P's user avatar
0 votes
1 answer
23 views

I currently register a large number of classes using this one-line syntax: container.Register(Classes.FromThisAssembly().BasedOn<IWidgetViewModel>().WithService.Base().LifestyleSingleton()); ...
Andrew Stephens's user avatar
0 votes
1 answer
69 views

I have a service IService and an implementation StrategyService like that: interface IService { // interface declaration here } class StrategyService: IService { IService[] services; ...
Hemel's user avatar
  • 313
2 votes
0 answers
66 views

I'm using Castle Windsor as IOC in a Web Application, in this Web application I'm also using SignalR. To instanciate my signalR Hub i'm using a class that implements the IHubActivator SignalR ...
ZeniFlow's user avatar
1 vote
0 answers
65 views

I don't know if my analyse is correct or not. But i'm facing some memory leak with castle and SignalR. It's a well known "issue" for Transient registered components see for example (SignalR ...
ZeniFlow's user avatar
0 votes
1 answer
108 views

I support a WPF application with multiple build configurations (local, dev, stage, etc) that uses Castle Windsor for dependency injection, and click-once for deployment. I had to update the ...
foldinglettuce's user avatar
0 votes
1 answer
107 views

I am writing a list of filters as a chain and each filter has the next link in its constructor so if a certain chain link can't handle the request it passes it along until it can. public class ...
misha130's user avatar
  • 5,786
1 vote
1 answer
78 views

I have an interface IImportCommand<T> public interface IImportCommand<T> where T : ImportModelBase { DateTime Date { get; set; } List<T> Items { get; set; } } implemented ...
demo's user avatar
  • 6,295
0 votes
1 answer
57 views

Suppose I have the following: public interface IFileHandler<TLocation,TRow> { ... } //loads file in some location using record format defined in RowTypeA //e.g. RowTypeA records exist in files ...
Denis's user avatar
  • 12.1k
0 votes
1 answer
209 views

I am dealing with the following problem - I was able to use NLog with Windsor Castle after many tries, but it only works if I log a message string to a file. Now I want to save the custom log ...
axern's user avatar
  • 47
0 votes
1 answer
3k views

I have this console application project where I use EF6 with postgresql, Quartz and Mass Transit and as DI I use Castle Winsdor. The goal of the project is to check periodically a folder (or folders) ...
Daniel's user avatar
  • 103
2 votes
0 answers
57 views

I have a service interface that uses generics. That interface has multiple implementations. Those implementations also use generics and provide multiple concrete components for the closed service ...
Chrisgh's user avatar
  • 1,016
0 votes
1 answer
335 views

I'm going around in circles with this. Is there any way to use the Castle Windsor dependency injection adapter (https://github.com/volosoft/castle-windsor-ms-adapter) with Azure Function apps? The ...
Øyvind's user avatar
  • 1,610
1 vote
1 answer
73 views

Assume I have interfaces A, B, C, D, and E, and F. I am trying to set up a windsor container in such a way that my application has two instances of D, lets call them D1 and D2. A is bound with ...
Bogey's user avatar
  • 5,916
-1 votes
1 answer
51 views

I am moving a console application from .NET 4.6 to .NET 5. At the same time the idea is to get rid of Castle.Windsor and start using the builtin Dependency Injection present in Microsoft.Extensions. I ...
Antonio Costa's user avatar
5 votes
2 answers
3k views

My simple line of code Db.CoverageParts.Add(newPart); is blowing the following exception from EF Core 5.0.6 / Castle 4.4.1 with Lazy Loading enabled: System.NotImplementedException HResult=...
pbristow's user avatar
  • 2,205
0 votes
1 answer
381 views

I am new to using Castle Windsor I have a couple of registered dependencies using Castle Windsor. I would like to dispose and remove one of these injected dependency at a particular time. How can I do ...
moe1792's user avatar
  • 29
0 votes
0 answers
440 views

While upgrading Castle.Windsor to version 5, I found out that the PerWebRequest is removed from LifestyleTypes enum. In my application I am registering the components with different lifestyles like ...
applied ai's user avatar
1 vote
0 answers
142 views

I've a custom service that I've written into a Ucommerce pipeline task, but that is implementing the Umbraco ContentService. This has meant that I've also needed to inject that service into container ...
Roffers's user avatar
  • 701
1 vote
0 answers
97 views

I am trying to upgrade Castle.Windsor lib from 2.5.3 to 5.0.1. I could figure out the deprecated properties, methods and could upgrade the Windsor to newer version but ran into runtime error. So I ...
P Deshpande's user avatar
0 votes
1 answer
387 views

In my Visual Studio environment my project that uses Castle Windsor dependency injection runs correctly. When deployed to a target environment however, it fails to start. Capturing exceptions has show ...
balintn's user avatar
  • 1,533
0 votes
0 answers
126 views

I have added Castle Windsor MVC package to my project to facilitate DI. Is works fine on my local machine. But when I deploy to the server I get this on the page: No parameterless constructor defined ...
CMason's user avatar
  • 29
2 votes
1 answer
122 views

I’ve inherited an ASP.Net web application comprising of VB.Net projects. I’ve added a C# project to the solution, which references several of the VB.Net projects. The application uses Castle Windsor ...
Howard's user avatar
  • 704
0 votes
1 answer
259 views

The problem is that when I'm using the LoggingFacility of Windsor.Castle (WC) the ILogger instance is still a NullLogger instance when the class is being created using a custom factory class. Creating ...
Postie's user avatar
  • 534
0 votes
0 answers
317 views

When I'm trying to run an application that was developed in C# with the use of Windsor.Castle as DI I get an exception at startup and a long stacktrace. The last line is as follows: at System.Windows....
Postie's user avatar
  • 534
0 votes
1 answer
4k views

How to use dependency injection in consumer class. I get error message as "The type 'Esb.Masstransit.RabbitMq.Application.IEventConsumerService' cannot be used as type parameter 'TConsumer' in ...
Chan Lay's user avatar
0 votes
1 answer
462 views

I was using CastleWindsor in my ASP.NETCore2.2 WebAPI project and was working fine. I'm migrating to ASP.NETCore3.1 now and it doesn't look like CastleWindor has offical support for that so I decided ...
Nemesis's user avatar
  • 123
0 votes
1 answer
479 views

For a project I'm using Castle Windsor DI (new for me). The Castle.Core.Logging namespace with its interface Logger has these methods (also with Debug, Error etc): void Fatal(string message, ...
Postie's user avatar
  • 534
2 votes
0 answers
62 views

I have an application which loads different versions of strongly signed assembly at the same time. Classes in each assembly become scanned and installed via WindsorInstaller after assembly load. I ...
cly's user avatar
  • 708
0 votes
1 answer
139 views

I'm using new abp version template (Aspnet MVC+AngularJs) and want to add new class library project to it, when install abp nugget package (5.10.1) to it, got this error: unable to find a version of '...
Omital's user avatar
  • 212
2 votes
2 answers
5k views

This builds on concepts discussed in this question How to manage Castle Windsor dependencies in a nuget library. I am working on a project which uses Castle.Windsor for DI and references several ...
erionpc's user avatar
  • 398
0 votes
0 answers
139 views

I have a peculiar issue that I have run to. I have two abstract classes that inherit from each other. The one at the base of the hierarchy has some properties that I want to be injected by Castle ...
Fotis Spatharakis's user avatar

1
2 3 4 5
56