共用方式為


IReminderService.RegisterOrUpdateReminder 方法

定義

多載

RegisterOrUpdateReminder(GrainId, String, TimeSpan, TimeSpan)

註冊新的提醒或更新現有的提醒。

RegisterOrUpdateReminder(GrainReference, String, TimeSpan, TimeSpan)

註冊新的提醒或更新現有的提醒

RegisterOrUpdateReminder(GrainId, String, TimeSpan, TimeSpan)

註冊新的提醒或更新現有的提醒。

public System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder> RegisterOrUpdateReminder (Orleans.Runtime.GrainId grainId, string reminderName, TimeSpan dueTime, TimeSpan period);
abstract member RegisterOrUpdateReminder : Orleans.Runtime.GrainId * string * TimeSpan * TimeSpan -> System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder>
Public Function RegisterOrUpdateReminder (grainId As GrainId, reminderName As String, dueTime As TimeSpan, period As TimeSpan) As Task(Of IGrainReminder)

參數

grainId
GrainId

代表註冊或更新提醒的細微性參考。

reminderName
String

提醒名稱。

dueTime
TimeSpan

一開始引發提醒之前所延遲的時間量。

period
TimeSpan

提醒叫用之間的時間間隔。

傳回

提醒。

適用於

RegisterOrUpdateReminder(GrainReference, String, TimeSpan, TimeSpan)

來源:
IReminderService.cs

註冊新的提醒或更新現有的提醒

public System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder> RegisterOrUpdateReminder (Orleans.Runtime.GrainReference grainRef, string reminderName, TimeSpan dueTime, TimeSpan period);
abstract member RegisterOrUpdateReminder : Orleans.Runtime.GrainReference * string * TimeSpan * TimeSpan -> System.Threading.Tasks.Task<Orleans.Runtime.IGrainReminder>
Public Function RegisterOrUpdateReminder (grainRef As GrainReference, reminderName As String, dueTime As TimeSpan, period As TimeSpan) As Task(Of IGrainReminder)

參數

grainRef
GrainReference
reminderName
String
dueTime
TimeSpan
period
TimeSpan

傳回

適用於