public static void AddProtoActor(this IServiceCollection services, Action <ActorPropsRegistry> registerAction = null) { services.AddSingleton <IActorFactory, ActorFactory>(); var registry = new ActorPropsRegistry(); registerAction?.Invoke(registry); services.AddSingleton(registry); }
public static void AddProtoActor(this IServiceCollection services, Action <ActorPropsRegistry> registerAction = null) { services.AddSingleton <IActorFactory, ActorFactory>(); services.TryAdd(ServiceDescriptor.Singleton(typeof(EventStream <>), typeof(EventStream <>))); var registry = new ActorPropsRegistry(); registerAction?.Invoke(registry); services.AddSingleton(registry); }
public ActorFactory(IServiceProvider serviceProvider, ActorPropsRegistry actorPropsRegistry) { this.serviceProvider = serviceProvider; this.actorPropsRegistry = actorPropsRegistry; }
public ActorFactory(IServiceProvider serviceProvider, ActorPropsRegistry actorPropsRegistry) { _serviceProvider = serviceProvider; _actorPropsRegistry = actorPropsRegistry; }
public ActorFactory(ActorSystem actorSystem, IServiceProvider serviceProvider, ActorPropsRegistry actorPropsRegistry) { _actorSystem = actorSystem; _serviceProvider = serviceProvider; _actorPropsRegistry = actorPropsRegistry; }