e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
29 lines
808 B
C#
29 lines
808 B
C#
//-----------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace System.Activities.Statements
|
|
{
|
|
using System;
|
|
|
|
public abstract class TimerExtension
|
|
{
|
|
protected TimerExtension()
|
|
{
|
|
}
|
|
|
|
public void RegisterTimer(TimeSpan timeout, Bookmark bookmark)
|
|
{
|
|
this.OnRegisterTimer(timeout, bookmark);
|
|
}
|
|
|
|
public void CancelTimer(Bookmark bookmark)
|
|
{
|
|
this.OnCancelTimer(bookmark);
|
|
}
|
|
|
|
protected abstract void OnRegisterTimer(TimeSpan timeout, Bookmark bookmark);
|
|
protected abstract void OnCancelTimer(Bookmark bookmark);
|
|
}
|
|
}
|