Skip to content
Discussion options

You must be logged in to vote

So the simplest way is to inherit ModularTenantEvents or implement IModularTenantEvents.
And it will work like a hosted service.

The other way is to create a derived interface like

namespace Microsoft.Extensions.Hosting

type ITenantHostedService = inherit IHostedService

and then

namespace Microsoft.Extensions.DependencyInjection

open OrchardCore.Modules

[<AutoOpen>]
module ServiceCollectionExtensions =

    open System
    open System.Collections.Immutable
    open System.Linq
    open System.Threading
    open System.Threading.Tasks
    open FSharp.Collections.Immutable
    open Microsoft.Extensions.DependencyInjection
    open Microsoft.Extensions.Hosting

    open IcedTasks
    open O…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xperiandri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant