siscodeorg/sisbase

Use dsp-cnext service provider to Inject the SMC's systems cleanly onto commands using MS.DI.

Closed this issue · 1 comments

dsp-cnext has a exposed service provider that could be used to use systems inside commands, if that's deemed valid/necessary.

Usage after implemented would be like this

class command:cbm {
    prop SystemType System {get;set;}
    pat command(cc ctx){
       //Use whatever is needed from System.
    }
}

superseded by #47 as SisbaseCommandModule.SystemManager.GetOrDefault<T>();