Giter Site home page Giter Site logo

Comments (7)

FabianTerhorst avatar FabianTerhorst commented on May 27, 2024

To which value you setted the shutdown timeout in host builder?

from coreclr-module.

StiviiK avatar StiviiK commented on May 27, 2024

Currently the default value, but using for example 1s isn't changing the behaviour.

collection.Configure<HostOptions>(o => o.ShutdownTimeout = TimeSpan.FromSeconds(1));

from coreclr-module.

FabianTerhorst avatar FabianTerhorst commented on May 27, 2024

Can you add a console log after await _host.StartAsync(); in OnStart?

from coreclr-module.

StiviiK avatar StiviiK commented on May 27, 2024

Gets called:

[07:19:00] Loading resource test
Start
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /opt/altv
Started
[07:19:00] Loaded resource test

from coreclr-module.

FabianTerhorst avatar FabianTerhorst commented on May 27, 2024

Seems good. But i dont know how hostbuilder works internally and i dont know If its possible to stop programmatically with that.

from coreclr-module.

StiviiK avatar StiviiK commented on May 27, 2024

Okay, so this seems like a wont fix. I will look into it further and keep the issue updated.
But I guess this won't really affect me very much.

from coreclr-module.

ithr0n avatar ithr0n commented on May 27, 2024

I also started with HostBuilder and all the stuff, but this is wrong for working with altV.
HostBuilder should be used in executing assemblies. Your module gets loaded by altv.exe and therefore should not implement HostBuilder.

Nevertheless, all the advantages can be used as standalone by your own (stuff like Configuration, Dependency Injection, Logging ...).

from coreclr-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.