Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
One of the dependencies I'm using for a pipeline task in Ucommerce needs to be injected using the castle Windsor container that they use.
By injecting the content service, I now need to inject a whole host of additional services.
I'm trying to register the first one. the UmbracoDatabaseFactory here, but it's not working
<component id="UmbracoDatabaseFactory" service="Umbraco.Core.Persistence.IUmbracoDatabaseFactory', Umbraco.Core" type="Umbraco.Core.Persistence.UmbracoDatabaseFactory, Umbraco.Core" />
The service is correct, but the type doesn't appear to match. Is it because the type isn't public? https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Core/Persistence/UmbracoDatabaseFactory.cs
Hi Mark,
I have tried to register the component as you did, and I got an error complaining about parameters.
After adding parameters and restarting the app, the website started up.
Have you tried adding parameters? It should look something like this:
<component id="UmbracoDatabaseFactory" service="Umbraco.Core.Persistence.IUmbracoDatabaseFactory, Umbraco.Core" type="Umbraco.Core.Persistence.UmbracoDatabaseFactory, Umbraco.Core" > <parameters> <connectionStringName/> <connectionString/> <providerName/> </parameters> </component>
If that does not work, can you expand on the errors you are getting?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using Umbraco Content service in Castle Windsor container in Ucommerce.
Hi,
One of the dependencies I'm using for a pipeline task in Ucommerce needs to be injected using the castle Windsor container that they use.
By injecting the content service, I now need to inject a whole host of additional services.
I'm trying to register the first one. the UmbracoDatabaseFactory here, but it's not working
The service is correct, but the type doesn't appear to match. Is it because the type isn't public? https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Core/Persistence/UmbracoDatabaseFactory.cs
Hi Mark,
I have tried to register the component as you did, and I got an error complaining about parameters.
After adding parameters and restarting the app, the website started up.
Have you tried adding parameters? It should look something like this:
If that does not work, can you expand on the errors you are getting?
is working on a reply...