本文整理汇总了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);
}
示例2: JustRead_CallResult_Cancelled
private void JustRead_CallResult_Cancelled(IRuntime runtime, int myId, Message message)
{
// item 345
CurrentState = StateNames.Deleting;
runtime.RemoveActor(myId);
}
示例3: ReadSend_CallResult_Error
private void ReadSend_CallResult_Error(IRuntime runtime, int myId, Message message)
{
// item 365
CurrentState = StateNames.Deleting;
runtime.RemoveActor(myId);
}
示例4: WaitingForFolder_CallResult_Error
private void WaitingForFolder_CallResult_Error(IRuntime runtime, int myId, Message message)
{
// item 801
CurrentState = StateNames.Deleting;
runtime.RemoveActor(myId);
}
示例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);
}
示例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;
}
}
示例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);
}
示例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;
}
}
}
}
}
示例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++;
}
}
示例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;
}