コード例 #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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        void IActorBoundChannel_NoReply.UnbindActor(Akka.Actor.IActorRef actor)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.UnbindActor_Invoke {
                    actor = actor
                }
            };

            SendRequest(requestMessage);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        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));
        }
コード例 #8
0
        public Task <bool> UnbindActor(Akka.Actor.IActorRef actor)
        {
            var requestMessage = new RequestMessage {
                InvokePayload = new IActorBoundChannel_PayloadTable.UnbindActor_Invoke {
                    actor = actor
                }
            };

            return(SendRequestAndReceive <bool>(requestMessage));
        }
コード例 #9
0
        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));
        }
コード例 #10
0
        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));
        }
コード例 #11
0
 private void InitializeActors()
 {
     taskManagerActorRef = ActorSystemReference.ActorSystem.ActorOf(
         Akka.Actor.Props.Create(() =>
                                 new Actors.Tasks.TaskManagerActor(
                                     eventAggregator,
                                     repository,
                                     dataService,
                                     elevatedPrivileges,
                                     force)));
 }
コード例 #12
0
 private void InitializeActors()
 {
     taskManagerActorRef = ActorSystemReference.ActorSystem.ActorOf(Akka.Actor.Props.Create(() => new TaskManagerActor(eventAggregator)));
 }