Exemple #1
0
            private void Ready_Prime(IRuntime runtime, int myId, Message message)
            {
                // item 89
                int n = (int)message.Payload;

                // item 94
                Debug.WriteLine(n);
                // item 232
                var calculator = new PrimeCalculator();

                calculator.Client = myId;
                calculator.N      = n;


                Worker = runtime.AddDedicatedActor(
                    calculator
                    );
                // item 91
                Window.SwitchToWorking();
                // item 73
                CurrentState = StateNames.Calculating;
            }
Exemple #2
0
            private void Ready_Prime(IRuntime runtime, int myId, Message message)
            {
                // item 89
                int n = (int)message.Payload;
                // item 94
                Debug.WriteLine(n);
                // item 232
                var calculator = new PrimeCalculator();
                calculator.Client = myId;
                calculator.N = n;

                Worker = runtime.AddDedicatedActor(
                calculator
                );
                // item 91
                Window.SwitchToWorking();
                // item 73
                CurrentState = StateNames.Calculating;
            }