Jump to content

MisterWhite

Member
  • Posts

    509
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Profile Information

  • Gender
    Male
  • Location
    Meth Lab

System

  • CPU
    Intel i5-4690k
  • Motherboard
    H97M
  • RAM
    8GB
  • GPU
    R9 380 4GB
  • Storage
    1TB toshiba
  • PSU
    Corsair VS550
  • Operating System
    Windows 10 64bit

Recent Profile Visitors

1,445 profile views
  1. The usual suggestion is to go with a well managed monolith first and only then break it apart if needed into multiple services. Have some sort of bus that bridges dependencies or calling other "services". Start with monolith, but keep microservices principle basically. Try searching for info about "Loosely Coupled Monolith" or "Modular monolith" P.S. microservices are not always the answer. They don't solve all of your problems but for sure introduce more. A whole team should be responsible for that many services P.P.S Only now noticed it is a question from 2019
  2. Curious, why not just deploy your ASPNET CORE app as a windows service instead? What do you need from IIS?
  3. A better place for such question would be on StackOverflow
  4. What you could use is provide access via third-party providers like Facebook, Twitter etc. and then use OpenId Connect in aspnet core. Try to read up on OAuth and OpenId, it's not a simple subject
  5. I believe Scott is referring to this https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-6.0&tabs=visual-studio That, as far as I know would only work with Aspnet web app and not connect well (if any) with something like a React app or mobile app.
  6. I've worked and sometimes still am working with WPF professionally and I would not recommend it for anything bigger and if the project needs rich controls. Only commercial packages (costing hundreds to thousands of $) have enough functionality for bigger apps. I'd say if you need rich UI desktop apps use something like Electron or anything else JS based just because of the free functionality.
  7. Not sure I understand your question. You want to call your API? Is the question how to call an API using WinDev (not familiar with the tool) or using C#?
  8. Yes, sorry about that. In case you use a specific field it's doable. I assumed OP meant varchar type. PostgreSQL is in fact pretty performant with json types.
  9. First of all don't store XML or JSON in a column like that unless there is a good reason for that. Querying/filtering/ordering is not possible in SQL if you do it like that. Also showing class code (that it contains ints. strings etc.) is way easier to read and understand rather than reading text. Furthermore I don't quite understand the output you except, examples would help here too. Say you have ClassA (coded as I understood your text) class ClassA { public string Exampple1 {get; set;} public string Exampple2 {get; set;} public string[] ExampleArray {get; set;} public ClassB[] OtherClassArray {get; set;} } And class ClassB { public string ExamppleB {get; set;} public int Example2B {get; set;} } Now if you want to store this in an SQL database you need at least three tables: - One for ClassA containing and Id, string1, string2. We will later use the unique Id to get other arrays - One for ExampleArray values, it would contain something like and Id, foreign key to the parent object (ClassA) and the actual string value. - Last one for OtherClassArray values, again with Id, foreign key to ClassA, and the two values Since we have a valid SQL schema we can proceed with storing and retrieving the data and of course filtering. Writing the SQL to retrieve all we want is a bit cumbersome, here is where I'd suggest using EntityFramework for such a setup. By using EF (EntityFramework) you wouldn't need to write SQL to create your own tables - it would do it for you based on the class objects we have created (google code first entity framework migrations). Retrieving the data would also be taken care of by EF. If using a framework is out of the question you'd need to write SQL to retrieve all the data yourself and that would require to query the first ClassA table, once you have that you can query ExampleArray and OtherClassArray for the array values by joining on the foreign key.
  10. My network knowledge is not great but as @bowrilla said you can broadcast a message. Using UDP you can send a message to any local network device. Some info I found from a quick google search MSDN https://support.biamp.com/Audia-Nexia/Control/TCP_and_UDP_discovery_methods Now the actual implementation is up to the language you choose and the available tools on it.
  11. Well you can't push to github anonymously. If you haven't setup you login it will ask for it. It is safe to login like this.
  12. Just add to the infinite list, you call ANY API in the backend with some basic Javascript. The submit form box just sends an HTTP POST request. Though if you are just starting PHP would be the simplest to integrate.
  13. PipelineItem.DoSomething() is an async Task method with an await keyword in it, so yes if you plainly invoke a PipelineItem.DoSomthing it will run asynchronously. I am not familiar with ActionBlock and it's implementation so there might something there and how you use testBlock.Complete(); testBlock.Completion.Wait() Keep in mind that an async method runs code synchronously until it encounters an await keyword so private async Task<PipeLineItem> RunIfNotCancelledAsync(Func<Task<PipelineItem>> function) { if (!_isCancelled) return await function(); else return new PipelineItem(true); } runs synchronously if _isCanceled is true. Also try to keep the method naming the same. If it's an async method add Async to ir => DoSomethingAsync() as with RunIfNotCancelledAsync
  14. Not really sure what the problem is here. If you want to create a back-end API for your Angular based website just start a simple ASP.NET core API project in VS. On controller endpoints do the actions you need (including some database stuff). I would recommend adding Swagger API documentation to your project (easily done via Nuget) so that when the API is done you can auto generate a client in javascript and just copy it over to your UI side of things.
  15. Hi, so based on the documentation about DownloadFileAsync (https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadfileasync) it states that the WebException is thrown when: The url you provided is valid (no exceptions here) and the response is an HTML file (even though it has text about an error). Just because the HTTP response code is 404 does not mean you don't get a file. Try providing a malformed URL - that should throw exceptions. One way to circumvent this is to use HttpClient and it's Get methods. That way you can check the response status code and also read response contents and save them as a file. Something like in this example - https://stackoverflow.com/a/51616326/5204810 The return type is void. The method uses threads from ThreadPool for work and notifications about completed work is done via events.
×