Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can't seem to get rid of this error
public void Configure(IApplicationBuilder app, IGreeter GetGreeting )
{
app.Run(async (context) =>
{

var greeting = Greeter.GetGreeting();

await context.Response.WriteAsync(greeting);
});
I've tried creating a separate instance of the class, but that creates other problems.

What I have tried:

I've tried creating a separate instance of the class, but that creates other problems because the Greeter class takes IConfigure as a parameter and a separate instance does not meet this requirement.
Posted
Comments
Sergey Alexandrovich Kryukov 18-May-16 19:26pm    
I'm not quite sure what do you mean by "ASP.NET core". The confusion comes from the fact that there is the platform alternative to .NET, not just in implementation, but also by specs, called ".NET Core" — it has some intersection with .NET CLR, but none of them is the subset of another. And I read that .NET Core can also be used as a server-side technology, but never tried it and never found an available hosting service using this. Is that what you mean, or you mean something else?
—SA
Member 12532076 18-May-16 20:09pm    
It's .Net Core
Sergey Alexandrovich Kryukov 18-May-16 20:22pm    
Thank you for answering. I doubt that your information will be enough to help you though.
—SA
Member 12532076 18-May-16 20:31pm    
What would you need?
Sergey Alexandrovich Kryukov 18-May-16 21:00pm    
Sorry, I personally need nothing. I've read about .NET Core only recently, know very little about it.
You should know much better what would you need to tell someone who can help you.
Imagine that someone asked you the same question; would you then consider this information as sufficient?

Look at your own post, you say "creates other problems". What problems? Are there compilation errors, exceptions? You say "get rid of this error". What error? And so on...

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900