Stephen Lautier

Results 50 comments of Stephen Lautier

Might be a silly question, when using the generic host `UseGrace` is there a way to get the `IInjectionScope`? In aspnet you would hook `void ConfigureContainer(IInjectionScope scope)` on `Startup`

Is there a way to copy all DI from `IExportLocatorScope` to `IInjectionScope` or export as `ServiceCollection`? As I'm trying to copy all DI from the generic host to a new...

Concurrency issue :P .. just updated the post above, see if you understand exactly what I mean. But basically what im trying to do is similar as you said, specifically...

The only option i found so far is by copy/pasting your code and hook it there ```cs hostBuilder.UseServiceProviderFactory(new GraceServiceProviderFactory(graceConfig)); class GraceServiceProviderFactory { public IInjectionScope CreateBuilder(IServiceCollection services) { var container =...

Run in the second container you mean? Sorry if i confused you, i had 2 issues here. 1. Configure DI using `IInjectionScope` when using Generic Host via `UseGrace` 2. Copy...

Great! Well, I think either or is good for me, ideally the same singleton tho. In generic host, I believe that's how it will work. If you register any DI...

I think they simply use the same DI container in the new one, from the generic host to the hosted service (no real magic), however since there's no aspnet generic...

Yes currently thats what im doing pretty much, don't worry about that it will change anyway

@ipjohnson great, sure I'm not blocked in any way so I can wait. Thanks for your help 👍

Using the client is quite straight forward and the best place to see samples is either at docs here [doc sample](https://github.com/sketch7/signalr-client#raw-basic-example) and in one of our playgrounds https://github.com/sketch7/orleans-heroes/blob/master/heroes.client.ngx-app/src/app/areas/signalr/signalr.component.ts#L60 RE: `stream`...