-
-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider extension method for IConfiguration #1012
Comments
@itgoran what are your thoughts on this idea? Does it make sense? |
@rockfordlhotka Also, I would like to suggest that we add the extension method under the namespace |
I think it should go in |
@itgoran I'll do this, as I'm working on a similar change for aspnet core. |
…config integration in .NET Core
…ervice for use in .NET Core DI scenarios
@itgoran another thought I had is that maybe there should be a Something like this: public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Error");
}
app.UseStaticFiles();
app.UseCookiePolicy();
app.UseMvc();
app.UseCsla();
} Though as I think about this it really doesn't work does it, because we need access to that |
I had similar thoughts when I was making CSLA configuration for dotnet core. The reasons for this are the following:
|
I have created an I'm still working through the details of that, because it seems that the CI container can't create generic types, which is really what would be ideal. But still, having a |
The case for Csla doesn't do DI with .net core yet, but perhaps with items like #1104 this might come into play.
You can resolve it from |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Instead of code like this to configure CSLA:
perhaps we should have an extension method to allow something like this:
or
This extension method would look something like this:
The text was updated successfully, but these errors were encountered: