Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Dody Gunawinata
    @dodyg
    @sksayed welcome
    @NguyenMinhTun_twitter welcome
    The Sharp Ninja
    @sharpninja

    Hello, I'm unable to build AspnetCore from source on Ubuntu 18.04 on WSL (1 & 2).

    Using this script to pull and build to a new directory:

    #!/usr/bin/env bash
    
    cd /mnt/e/GitHub/sharpninja
    
    git clone --recursive https://github.com/sharpninja/aspnetcore
    
    git submodule update --init --recursive
    
    cd aspnetcore
    
    git remote add upstream https://github.com/aspnet/aspnetcore
    git fetch upstream
    git merge upstream/master
    
    ./restore.sh
    ./build.sh --all --restore -c Debug -v d

    Results in this attached output

    The script is attempting to install internal.aspnetcore.buildtasks/3.0.0-build-20190530.3 twice and it fails on the second attempt.
    The Sharp Ninja
    @sharpninja
    Sorry, think I'm in the wrong gitter
    Vik
    @vaklove
    Hi All Anyone use hangfire for background daily data import job ?
    Dody Gunawinata
    @dodyg
    Alexsandro Souza Pereira
    @alexsandro-xpt

    @alexsandro-xpt what do you mean?

    Do not worry, I got it.

    Julius Bacosa
    @EmpeRoar
    hi guys
    Dody Gunawinata
    @dodyg
    https://github.com/dodyg/practical-aspnetcore have been upgraded to 3.0 final version.
    ipzKellyR
    @ipzKellyR
    Anyone familiar with how to restrict which cyphers are used for TLS negotiation when using a docker container for asp.net core app
    WalterEbbers
    @WalterEbbers
    @/all
    Hi, quick question. When running a self contained asp.net core web application in IIS, is it still required to install the hosting bundle for IIS?
    Sami Al Khatib
    @alsami
    @WalterEbbers yes, it is still required. You always find the latest on the download page for .NET-Core in the section "runtime"
    https://dotnet.microsoft.com/download/dotnet-core/3.0
    WalterEbbers
    @WalterEbbers
    @alsami Thnx for the reply!
    Is there any indication that this will change in the future?
    Sami Al Khatib
    @alsami
    @WalterEbbers I have no idea but I don't think they would do that. IIS is being delivered with windows server. They want you probably to be able to install what ever version you need at any time. If it would be built-in, then users won't have that much control over it anymore
    WalterEbbers
    @WalterEbbers
    @alsami i see. i was wondering this because we have a .net core project that was initially build with core 1, later upgraded to 2.0 and now we are working on 3.0. The thing is some of our customers don't always want to upgrade libraries(but they eventually do due to new features they where waiting for). If that could have been arranged with self contained with no installations to iis, than it would make things easier :)
    Sami Al Khatib
    @alsami

    @WalterEbbers you need windows-authentication or why are you using IIS? Keep in mind you can run the app self-contained using kestrel rather than IIS.
    With .NET-Core and the generic-hosting system you can install these web-applications or apis as windows-service as well.
    here the docs:
    https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-3.0&tabs=visual-studio

    and that's the package you will need:
    https://www.nuget.org/packages/Microsoft.Extensions.Hosting.WindowsServices/3.0.0

    Also works for system-d on linux:
    https://www.nuget.org/packages/Microsoft.Extensions.Hosting.Systemd/3.0.0

    WalterEbbers
    @WalterEbbers
    no i'm not talking about windows authentication :)
    i'm talking about having to install a new runtime bundle on the servers of customers whenever we upgrade our .net core projects.
    Not all customers like it when new stuff get's installed besides our own .net core service.
    If the selfcontained also contained the hosting bundle libraries so you would not have to install anything else it would have made things easier and our customers would update faster to newer versions of our .net core product
    Sami Al Khatib
    @alsami
    Okay I understood. I don't think that's working for IIS but I might as well be wrong. Still, if you don't need to rely on the features IIS provides, you don't need IIS as I mentioned above.
    WalterEbbers
    @WalterEbbers
    :)
    currently we do need iis because our .net core project talks with our current wcf service and the .net core project is using windows authentication.
    Nazar Romaniv
    @n-romaniv
    Hi guys! I was figuring
    Nazar Romaniv
    @n-romaniv
    Sorry, sent by mistake
    Muthukumar Kannan
    @kmuthukumar23
    Hi Folks, How can i integrate cli in to my online website. Like .net fiddle. I want to make operations in online with command prompt. If i click the dedicated button, it will triggers the command prompt in my online website. Can anyone guide on this?
    WalterEbbers
    @WalterEbbers
    Hi all! Is it possible to add Azure AD integration when a dotnet core project is already up and running? I know of a way to do it in startup, but also want to do it while the .net core server is running.
    Dody Gunawinata
    @dodyg
    What do you mean "while the .net core server is running"?
    WalterEbbers
    @WalterEbbers
    We have a asp.net core service running and when during start azure data is available in the database, it will call the AddOpenIdConnect() call to add azure for logging in to the service.
    But after posting my question here, i found out that asp.net core does not support dynamically calling the AddOpenIdConnect() to the service.
    I have now solved this by always calling the AddOpenIdconnect() and using the IOptionMemoryCache<>() to change certain data if needed.
    I know there is a commercial solution for this, but that would mean i have no control over what happens. So for now the problem is 'solved'.
    Dody Gunawinata
    @dodyg
    Yeah ASP.NET Core DI is immutable. Have you check on this article? https://asp.net-hacker.rocks/2018/09/27/customizing-aspnetcore-03-dependency-injection.html
    Autofac 4 used to support mutable container but with Autofac 5 they moved away from that
    Sami Al Khatib
    @alsami

    Autofac 4 used to support mutable container but with Autofac 5 they moved away from that

    While the container it-self cannot be updated anymore, you can still create a scope manually that uses different registrations.
    Check this out @WalterEbbers
    https://autofaccn.readthedocs.io/en/latest/lifetime/working-with-scopes.html

    We have an integration for ASP.NET Core as well. Pretty simple to use.
    https://github.com/autofac/Autofac.Extensions.DependencyInjection

    All you have to do is to mimic the extension AddOpenIdConnect() by doing the very same registrations but with a child-lifetime scope of Autofac.
    WalterEbbers
    @WalterEbbers
    @dodyg @alsami
    Thnx ! I will have a look!
    Dody Gunawinata
    @dodyg
    @alsami thanks for the heads up. I haven't followed Autofac since ASP.NET Core was released.
    riosje
    @riosje
    Hi guys,
    some one could bring to me any idea to build an inmutable Microservice to schedule transactions.
    Actually i've done an API that handle all transactions, but i need to schedule some transactiosn i was thinking on design another API SCHEDULER, so, when the TRANSACTION is on the date schedule will send the REQUEST AGAIN to TRANSACTION API
    I'm thinking in QUARTZ or HANGFIRE.
    Some another ideas?
    It's very simple but also very limited. It might be fine for your scenario if you just has one task to check the API in a fixed time.
    riosje
    @riosje
    thanks, a lot to take the time an read my question.
    How to handle data persistence and Immutability of tasks?
    Mike Hingley
    @computamike
    I have a question : Previously I've developed MVC apps using NodeJS - and as part of that I was able to provide administration scripts - for instance I could ssh onto the server and run an import script that could import data into the DB, using all the nice models and stuff. In ASP.NET MVC world - what would be the equivalent? Or do I need to build a Web front end for these sort of tasks? I was also thinking about retiring data - like in terms of data retention periods. In NodeJS world we might run a script that strips out the data outside the retention period. How would I do something similar with ASP.NET MVC?
    Tommy Williams
    @twwilliams
    @computamike: You could implement the equivalent of that script as an action on a controller. Then just call the URL to run it. You don't need to build a view or any other HTML. As far as retiring data: if you want to do it manually, do the same as above. Or you could implement a scheduled task on your server--this is like a cron job in Linux. The scheduled task could call an action on a controller in your MVC site or you could just implement the scheduled task as a Console application.
    Mike Hingley
    @computamike
    @twwilliams Thanks Tommy both great ideas - What I like about them is that this retention process then is as important as the thing that the site does - the code for it is testable (for example) and isn't just like "a script that we run"...
    I've just tweeted a potential bug in aspnetcore
    i'll paste it here :
    hmm - thought that it might recognise the twitter link and draw it a bit nicer...
    I'll try pasting the embed tweet code here

    well basically

    • I start with a standard web application
    • I can run dotnet ef and Entity Framework pops up.
    • I add orchestration support (this adds a .dcproj file).

    dotnet ef no longer works - moans that there are 2 project files

    I can delete the .dcproj file (and potenitally restore it) - but that makes running migrations difficult as part of a project build.

    Dody Gunawinata
    @dodyg

    thanks, a lot to take the time an read my question.
    How to handle data persistence and Immutability of tasks?

    @riosje https://www.litedb.org/. It's small and easy to embed.

    Greg
    @TurboKia
    I just finished watching the ASP.Net Core 101 series of videos, which were a big help. I'm coming from a Web Forms background and dragging my heels about Razor and EF. Our sites are very "Form" intensive. Blazor looks and acts like a user-control, which is nice. Is there an advance Video series along the same lines of the ASP.net Core 101 videos?