当前位置: 首页>>代码示例>>C#>>正文


C# IRuntime.RemoveActor方法代码示例

本文整理汇总了C#中IRuntime.RemoveActor方法的典型用法代码示例。如果您正苦于以下问题:C# IRuntime.RemoveActor方法的具体用法?C# IRuntime.RemoveActor怎么用?C# IRuntime.RemoveActor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IRuntime的用法示例。


在下文中一共展示了IRuntime.RemoveActor方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SendRemaining_CallResult_Cancelled

 private void SendRemaining_CallResult_Cancelled(IRuntime runtime, int myId, Message message)
 {
     // item 397
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
 }
开发者ID:snjee,项目名称:actor-http,代码行数:6,代码来源:HttpActors.cs

示例2: JustRead_CallResult_Cancelled

 private void JustRead_CallResult_Cancelled(IRuntime runtime, int myId, Message message)
 {
     // item 345
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
 }
开发者ID:snjee,项目名称:actor-http,代码行数:6,代码来源:HttpActors.cs

示例3: ReadSend_CallResult_Error

 private void ReadSend_CallResult_Error(IRuntime runtime, int myId, Message message)
 {
     // item 365
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
 }
开发者ID:snjee,项目名称:actor-http,代码行数:6,代码来源:HttpActors.cs

示例4: WaitingForFolder_CallResult_Error

 private void WaitingForFolder_CallResult_Error(IRuntime runtime, int myId, Message message)
 {
     // item 801
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
 }
开发者ID:snjee,项目名称:actor-http,代码行数:6,代码来源:HttpActors.cs

示例5: WaitingForFolder_CallResult_Timeout

 private void WaitingForFolder_CallResult_Timeout(IRuntime runtime, int myId, Message message)
 {
     // item 900
     runtime.Log.Info(
     "Timeout on ReadFolder"
     );
     // item 801
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
 }
开发者ID:snjee,项目名称:actor-http,代码行数:10,代码来源:HttpActors.cs

示例6: Sending_PumpFinished

 private void Sending_PumpFinished(IRuntime runtime, int myId, Message message)
 {
     // item 847
     int actorId = (int)message.Payload;
     // item 817
     if (actorId == PumpId) {
     // item 820
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
     } else {
     // item 819
     CurrentState = StateNames.Sending;
     }
 }
开发者ID:snjee,项目名称:actor-http,代码行数:14,代码来源:HttpActors.cs

示例7: SendRemaining_CallResult_Completed

 private void SendRemaining_CallResult_Completed(IRuntime runtime, int myId, Message message)
 {
     // item 470
     runtime.Log.Info(String.Format(
     "Pump {0} completed request.",
     myId
     ));
     // item 330
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
 }
开发者ID:snjee,项目名称:actor-http,代码行数:11,代码来源:HttpActors.cs

示例8: EasyChecks_Codes_Pulse

 private void EasyChecks_Codes_Pulse(IRuntime runtime, int myId, Message message)
 {
     // item 1980001
     if (N == 0) {
     // item 215
     ReportPrimes(
         runtime,
         Primes,
         N,
         Client
     );
     // item 156
     CurrentState = StateNames.Deleting;
     runtime.RemoveActor(myId);
     } else {
     // item 1980002
     if (N == 1) {
         // item 211
         Primes.Add(1);
         // item 215
         ReportPrimes(
             runtime,
             Primes,
             N,
             Client
         );
         // item 156
         CurrentState = StateNames.Deleting;
         runtime.RemoveActor(myId);
     } else {
         // item 1980003
         if (N == 2) {
             // item 209
             Primes.Add(1);
             Primes.Add(2);
             // item 215
             ReportPrimes(
                 runtime,
                 Primes,
                 N,
                 Client
             );
             // item 156
             CurrentState = StateNames.Deleting;
             runtime.RemoveActor(myId);
         } else {
             // item 1980004
             if (N < 0) {
                 // item 220
                 runtime.SendMessage(
                     Client,
                     CallResult.Error,
                     new ArgumentException("N", "Negative argument"),
                     myId
                 );
                 // item 156
                 CurrentState = StateNames.Deleting;
                 runtime.RemoveActor(myId);
             } else {
                 // item 269
                 Primes.Add(1);
                 Primes.Add(2);
                 Primes.Add(3);
                 // item 216
                 Current = 5;
                 J = 3;
                 // item 214
                 CurrentState = StateNames.Calculation;
             }
         }
     }
     }
 }
开发者ID:snjee,项目名称:actor-http,代码行数:73,代码来源:GuiMachines.cs

示例9: Calculation_Codes_Pulse

            private void Calculation_Codes_Pulse(IRuntime runtime, int myId, Message message)
            {
                // item 1790001
                int i = 0;
                while (true) {
                // item 1790002
                if (i < ChunkSize) {

                } else {
                    // item 159
                    CurrentState = StateNames.Calculation;
                    break;
                }
                // item 193
                if (Current > N) {
                    // item 270
                    // item 230
                    ReportPrimes(
                        runtime,
                        Primes,
                        N,
                        Client
                    );
                    // item 195
                    CurrentState = StateNames.Deleting;
                    runtime.RemoveActor(myId);
                    break;
                } else {

                }
                // item 181
                if (J * J > Current) {
                    // item 191
                    // item 192
                    Primes.Add(Current);
                    // item 190
                    J = 3;
                    Current += 2;
                } else {
                    // item 185
                    if (Current % J == 0) {
                        // item 190
                        J = 3;
                        Current += 2;
                    } else {
                        // item 184
                        J += 2;
                    }
                }
                // item 1790003
                i++;
                }
            }
开发者ID:snjee,项目名称:actor-http,代码行数:53,代码来源:GuiMachines.cs

示例10: Calculating_Cancel

 private void Calculating_Cancel(IRuntime runtime, int myId, Message message)
 {
     // item 235
     Window.SwitchToReady();
     // item 234
     runtime.RemoveActor(Worker);
     // item 82
     CurrentState = StateNames.Ready;
 }
开发者ID:snjee,项目名称:actor-http,代码行数:9,代码来源:GuiMachines.cs


注:本文中的IRuntime.RemoveActor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。