Ejemplo n.º 1
0
 public SenderActor(LoxoneConfig loxoneConfig, Akka.Actor.IActorRef adapter) : base(loxoneConfig)
 {
     this.adapter = adapter;
     ReceiveAsync <LoxoneMessage.ControlSwitch>(ReceivedControlSwitch);
     ReceiveAsync <LoxoneMessage.ControlDimmer>(ReceivedControlDimmer);
     ReceiveAsync <LoxoneMessage.ControlBlinds>(ReceivedControlBlinds);
     ReceiveAsync <LoxoneMessage.TestAvailability>(ReceivedTestAvailability);
 }
        void IActorBoundGateway_NoReply.OpenChannel(Akka.Actor.IActorRef actor, Akka.Interfaced.SlimServer.TaggedType[] types, object tag, Akka.Interfaced.SlimServer.ActorBindingFlags bindingFlags)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundGateway_PayloadTable.OpenChannel_Invoke {
                    actor = actor, types = types, tag = tag, bindingFlags = bindingFlags
                }
            };

            SendRequest(requestMessage);
        }
        public Task <Akka.Interfaced.IRequestTarget> OpenChannel(Akka.Actor.IActorRef actor, Akka.Interfaced.SlimServer.TaggedType[] types, object tag = null, Akka.Interfaced.SlimServer.ActorBindingFlags bindingFlags = (Akka.Interfaced.SlimServer.ActorBindingFlags) 0)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundGateway_PayloadTable.OpenChannel_Invoke {
                    actor = actor, types = types, tag = tag, bindingFlags = bindingFlags
                }
            };

            return(SendRequestAndReceive <Akka.Interfaced.IRequestTarget>(requestMessage));
        }
        void IActorBoundChannel_NoReply.UnbindType(Akka.Actor.IActorRef actor, System.Type[] types)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.UnbindType_Invoke {
                    actor = actor, types = types
                }
            };

            SendRequest(requestMessage);
        }
        void IActorBoundChannel_NoReply.UnbindActor(Akka.Actor.IActorRef actor)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.UnbindActor_Invoke {
                    actor = actor
                }
            };

            SendRequest(requestMessage);
        }
        void IActorBoundChannel_NoReply.BindType(Akka.Actor.IActorRef actor, Akka.Interfaced.SlimServer.TaggedType[] types)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.BindType_Invoke {
                    actor = actor, types = types
                }
            };

            SendRequest(requestMessage);
        }
        public Task <bool> UnbindType(Akka.Actor.IActorRef actor, System.Type[] types)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.UnbindType_Invoke {
                    actor = actor, types = types
                }
            };

            return(SendRequestAndReceive <bool>(requestMessage));
        }
        public Task <bool> UnbindActor(Akka.Actor.IActorRef actor)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.UnbindActor_Invoke {
                    actor = actor
                }
            };

            return(SendRequestAndReceive <bool>(requestMessage));
        }
        public Task <bool> BindType(Akka.Actor.IActorRef actor, Akka.Interfaced.SlimServer.TaggedType[] types)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.BindType_Invoke {
                    actor = actor, types = types
                }
            };

            return(SendRequestAndReceive <bool>(requestMessage));
        }
        public Task <Akka.Interfaced.IRequestTarget> BindActor(Akka.Actor.IActorRef actor, Akka.Interfaced.SlimServer.TaggedType[] types, Akka.Interfaced.SlimServer.ActorBindingFlags bindingFlags = (Akka.Interfaced.SlimServer.ActorBindingFlags) 0)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.BindActor_Invoke {
                    actor = actor, types = types, bindingFlags = bindingFlags
                }
            };

            return(SendRequestAndReceive <Akka.Interfaced.IRequestTarget>(requestMessage));
        }
Ejemplo n.º 11
0
 private void InitializeActors()
 {
     taskManagerActorRef = ActorSystemReference.ActorSystem.ActorOf(
         Akka.Actor.Props.Create(() =>
                                 new Actors.Tasks.TaskManagerActor(
                                     eventAggregator,
                                     repository,
                                     dataService,
                                     elevatedPrivileges,
                                     force)));
 }
Ejemplo n.º 12
0
 private void InitializeActors()
 {
     taskManagerActorRef = ActorSystemReference.ActorSystem.ActorOf(Akka.Actor.Props.Create(() => new TaskManagerActor(eventAggregator)));
 }