CustomAdaptor with dependency injection

Hello

In the documentation for the DataManager I found the following:

DataManager uses Activator.CreateInstance method to create custom adaptor instance. Injecting services into custom adaptor class, is not supported while using this approach. To inject and use services, provide custom adaptor as a Blazor component by extending DataAdaptor class


I don't understand how to provide the custom adaptor as a Blazor component, can you give a sample of this?


Best regards

Heiðar Jónsson


4 Replies 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team December 1, 2020 11:49 AM UTC

Hi Heidar, 

Greetings from Syncfusion support. 

We have validated your query and we suggest you to refer the below documentation to provide custom adaptor as a component. 


Please get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 


Marked as answer

HH Heidar Holmberg Jonsson December 4, 2020 10:36 AM UTC

Awesome, thanks for the quick reply :D


JP Jeevakanth Palaniappan Syncfusion Team December 7, 2020 04:25 AM UTC

Hi Heidar, 

Thanks for the update. Please get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 



KC Kevin Cabral January 1, 2023 12:28 AM UTC

Awesome question.


Loader.
Up arrow icon