Jacko
Jacko
Explore posts from servers
CC#
Created by Jacko on 2/10/2025 in #help
Securing a plugin system:
Is it possible to get the list of functions a wasm plugin has ?
43 replies
CC#
Created by Jacko on 2/10/2025 in #help
Securing a plugin system:
So instead of passing interfaces I’d need to write a compatibility layer that lets the plugin request data from the host application?
43 replies
CC#
Created by Jacko on 2/10/2025 in #help
Securing a plugin system:
That looks really interesting actually
43 replies
CC#
Created by Jacko on 2/10/2025 in #help
Securing a plugin system:
That would be interesting but can it use interfaces from C sharp? The idea is to have a cli tool that people can add custom plugins to, to suit their purposes
43 replies
CC#
Created by Jacko on 2/10/2025 in #help
Securing a plugin system:
If I was to do a grpc style plugin system how would I register the plugins ?
43 replies
CC#
Created by Jacko on 2/10/2025 in #help
Securing a plugin system:
The issue is I’m trying to use dependency injection to provide access to configuration and input details to the plugins
43 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
The cli reads from a plugins directory containing DLLs and loads all the classes that conform to a specific interface and registers them in the container
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
The cli will be used by others, but they can add to it through plugins. I don’t think there’ll be any issues unless they need to register anything through the plugins which is possible through autofac for more advanced modules anyway
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
That makes sense, I need conditional registration and decorators so I’ll stick with autofac
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
Now I’m debating whether it’s worth using autofac or just go to medi haha
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
What are your use cases that make medi better for it ?
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
I’m also looking into the decorator pattern autofac supports for implementing logging and other features on some interfaces provided by other libraries
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
I’m definitely still looking into autofac to see if it’s required, some of the features like xml configuration for loading in interfaces could be useful to adapt the project for different businesses that might use different log systems or want to store configurations in different formats or on the cloud.
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
Out of curiosity what’s the benefit of using the IServiceCollection interface over just the autofac container? I’m using spectre cli which lets me register any DI system so wasn’t sure if it was just for generic host support
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
Modern dotnet, it’s a brand new project
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
So I’m writing a cli app that has a plugin system so users can add custom functionality and call it from the same cli app, so if you have for example an automation you just register it in the plugins folder and the app will pick it up and execute it for you
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
I know autofac has some assembly loading features so I wasn’t sure whether to use autofac, or Microsoft Di and scrutor together
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
All the plugins will be in a specific folder so I’ll just be searching for all dlls in the folder, then registering all the classes that implement IPlugin
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
Ahh I was considering it related to DI because some DI implementations have features for loading assemblies as certain interfaces and registering them for the rest of the app
74 replies
CC#
Created by Jacko on 2/3/2025 in #help
Question about Dependency Injection:
I’ve also seen scrutor mentioned a lot, would that be a better library to use for my purposes ?
74 replies