Esempio n. 1
0
 public ResourceController(
     ActorRefProvider <ResourceManager> resourceManager,
     IQueryResources resourceQuery)
 {
     _resourceManager = resourceManager;
     _resourceQuery   = resourceQuery;
 }
Esempio n. 2
0
        public Worker(ILogger <Worker> logger, ActorSystem actorSystem, ActorRefProvider <ResponseActor> actorRefProvider)
        {
            _logger = logger;

            _actorSystem = actorSystem;

            _actorRefProvider = actorRefProvider;
        }
Esempio n. 3
0
        public static IAkkatectureBuilder AddActorReference <TActor>(
            this IAkkatectureBuilder builder, IActorRef actorReference)
            where TActor : ActorBase
        {
            var actorRef = new ActorRefProvider <TActor>(actorReference);

            builder.Services.AddSingleton <ActorRefProvider <TActor> >(actorRef);
            return(builder);
        }
Esempio n. 4
0
        /// <summary>
        ///     Configures the provider.
        /// </summary>
        private void ConfigureProvider()
        {
            Type providerType = Type.GetType(_settings.ProviderClass);

            global::System.Diagnostics.Debug.Assert(providerType != null, "providerType != null");
            var provider = (ActorRefProvider)Activator.CreateInstance(providerType, _name, _settings, _eventStream);

            _provider = provider;
        }
Esempio n. 5
0
 public WeatherForecastController(ActorRefProvider <ResponseActor> actorSystem)
 {
     this._response = actorSystem;
 }
 public ResourcesQueryHandler(
     ActorRefProvider <ResourcesStorageHandler> resourceStorageHandler)
 {
     _resourceStorageHandler = resourceStorageHandler;
 }
Esempio n. 7
0
 public OperationsQueryHandler(
     ActorRefProvider <OperationsStorageHandler> operationStorageHandler)
 {
     _operationStorageHandler = operationStorageHandler;
 }
Esempio n. 8
0
 public RemoteDeadLetterActorRef(ActorRefProvider provider, ActorPath actorPath, EventStream eventStream)
     : base(provider, actorPath, eventStream)
 {
 }
Esempio n. 9
0
 public CreditsController(
     ActorRefProvider <GiftCardManager> aggregateManager)
 {
     _aggregateManager = aggregateManager;
 }
Esempio n. 10
0
 public CarsController(
     ActorRefProvider <CarAggregateManager> aggregateManager)
 {
     _aggregateManager = aggregateManager;
 }
Esempio n. 11
0
 public HomeController(ActorRefProvider <GatewayActor> apiGateway)
 {
     _gatewayGateway = apiGateway;
 }
Esempio n. 12
0
 public MembersController(ActorRefProvider <GatewayActor> gateway)
 {
     _gateway = gateway;
 }