« first day (2559 days earlier)      last day (1590 days later) » 

 
8 hours later…
8:39 AM
Morningtz
 
8:54 AM
Ciao Markus
 
Morning all :-)
 
9:49 AM
Good morning
 
Hmm, so it's pretty easy to create a RestAPI with core. However, how do I do if I'd like to have it as a feature in my regular program?
 
10:08 AM
Morning
Fortunately, not so much with my answers. When surfing for solutions, there are deleted answers that have a bunch of down votes.
For me, it's just posting a question and worrying if it gets hit in the first few minutes
It's a new condition: StackOverflow Question Anxiety Disorder (SOQAD)!
If the question survives the first 5 minutes, SOQAD symptoms subside :)
@Markus Hi Markus, are you trying to put rest in WPF?
 
10:31 AM
@Markus I did that with OWIN hosting, it was really easy.
 
owin, I'll have a look at it. Well not WPF per se.. but I want my WPF program to also host a Rest while it's running.
I think that's one of the problem with MVC... like in python or node you know exactly when you have a rest, you simply create one. But in c# it's not that clear. You can create a project that is mvc, but it's hard to decode what's exactly makes it a rest
I would like to have it as a dll, so I can call it / set it up from my model or something.
 
You can also create WebAPI project which is basically REST
 
mhmm, but does it become a dll?
(you mean a ASP.NET Core Web Application)?
 
Yes it then becomes a dll, I did exactly what you are trying to do. A REST API that can be started from anywhere
And yes, web core application. When you select that project you get options for MVC, SPA, Empty, etc ...
 
10:47 AM
@Markus It's very easy with a Core application
Once created you can pretty much steal everything from Startup.cs and put it in your own app (sans IIS Integration)
 
@RUDI! :) long time.
I use NHibernate as ORM, as I understand it, that's a .Net lib (not standard (I might be wrong)), so I'm a bit scared that I have to use .Net?
(scared because setting up the Core is so freaking easy, and I didn't think .Net was the same)
 
NHibernate is NetStandard 2.0
 
11:41 AM
is it... that's good I guess
how is it... can you call a core from .net?
 
Yes
But you can't do it other way, so you can't call net from core
 
12:04 PM
But if it's REST you're "calling" it over HTTP, so there's no boundary of technology
 
'morning
gb: 'afternoon
 
12:35 PM
@RudiVisser I think Markus was talking about code calling i.e. libraries or NuGet packages.
Hi Lynn
 
12:49 PM
@RudiVisser Yes, so it's a bit special... I'm not sure that this is the best solution, but the thing located in the database (on the server), some of it will need to be able to sync to the local computer. So basically I need to run the database and server from my application as well as on a server, and if the server is down it will access the local server instead.
 
 
1 hour later…
1:58 PM
No, .NET Framework can't call .NET core libraries
but both can call .NET Standard
of course, if you go across HTTP the underlying tech doesn't matter as Rudi says
Thank's for the example Rudi, I'll see what I can come up with
@Alex Ah, I have the same thing the few times I post a question. Some might say that is a healthy fear that means our questions should be of higher quality :)
 
2:28 PM
I know. But in between all the tasks, it's hard sometimes to get the question quite right :)
I need to do async/await in my brain for the task!
 
2:39 PM
@RudiVisser I think you just need to solve this for "p2":
The fact that you "know" p2 with the extra rates doesn't buy you anything... I don't think
Solving should be pretty simple, just distribute the multiplications and subtract everything that doesn't have a p2 term
divide by whatever is on p2
I'm not sure if/how the need for a 0 minimum on the T - p1 - p2 affects the overall answer
oh, those are backwards
Its p1 + p2 - Tx
basically, I think the solution can only be trusted if p1 + p2 is >= t1 and t2
 
 
7 hours later…
9:36 PM
Too many unknown variables in 2nd case @RudiVisser
 
9:49 PM
If you have an items inclusive cost you also need the amount charged for aat and vat.
 

« first day (2559 days earlier)      last day (1590 days later) »