224 lines
8.6 KiB
C#
224 lines
8.6 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Threading;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Timers
|
|
{
|
|
/// <summary>Generates an event after a set interval, with an option to generate recurring events.</summary>
|
|
// Token: 0x0200009A RID: 154
|
|
[Token(Token = "0x200009A")]
|
|
[DefaultProperty("Interval")]
|
|
[DefaultEvent("Elapsed")]
|
|
public class Timer : Component, ISupportInitialize
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Timers.Timer" /> class, and sets all the properties to their initial values.</summary>
|
|
// Token: 0x060002F7 RID: 759 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60002F7")]
|
|
[Address(RVA = "0x599480", Offset = "0x598280", VA = "0x180599480")]
|
|
public Timer()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Timers.Timer" /> class, and sets the <see cref="P:System.Timers.Timer.Interval" /> property to the specified number of milliseconds.</summary>
|
|
/// <param name="interval">The time, in milliseconds, between events. The value must be greater than zero and less than or equal to <see cref="F:System.Int32.MaxValue" />.</param>
|
|
/// <exception cref="T:System.ArgumentException">The value of the <paramref name="interval" /> parameter is less than or equal to zero, or greater than <see cref="F:System.Int32.MaxValue" />.</exception>
|
|
// Token: 0x060002F8 RID: 760 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60002F8")]
|
|
[Address(RVA = "0x5992D0", Offset = "0x5980D0", VA = "0x1805992D0")]
|
|
public Timer(double interval)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets a value indicating whether the <see cref="T:System.Timers.Timer" /> should raise the <see cref="E:System.Timers.Timer.Elapsed" /> event.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Timers.Timer" /> should raise the <see cref="E:System.Timers.Timer.Elapsed" /> event; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ObjectDisposedException">This property cannot be set because the timer has been disposed.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The <see cref="P:System.Timers.Timer.Interval" /> property was set to a value greater than <see cref="F:System.Int32.MaxValue" /> before the timer was enabled.</exception>
|
|
// Token: 0x17000077 RID: 119
|
|
// (set) Token: 0x060002F9 RID: 761 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000077")]
|
|
[Category]
|
|
[Category("Behavior")]
|
|
[DefaultValue(false)]
|
|
[TimersDescription("Indicates whether the timer is enabled to fire events at a defined interval.")]
|
|
public bool Enabled
|
|
{
|
|
[Token(Token = "0x60002F9")]
|
|
[Address(RVA = "0x599730", Offset = "0x598530", VA = "0x180599730")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x060002FA RID: 762 RVA: 0x000032A0 File Offset: 0x000014A0
|
|
[Token(Token = "0x60002FA")]
|
|
[Address(RVA = "0x598DE0", Offset = "0x597BE0", VA = "0x180598DE0")]
|
|
private static int CalculateRoundedInterval(double interval, bool argumentCheck = false)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x060002FB RID: 763 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60002FB")]
|
|
[Address(RVA = "0x599280", Offset = "0x598080", VA = "0x180599280")]
|
|
private void UpdateTimer()
|
|
{
|
|
}
|
|
|
|
/// <summary>Occurs when the interval elapses.</summary>
|
|
// Token: 0x14000001 RID: 1
|
|
// (add) Token: 0x060002FC RID: 764 RVA: 0x00002053 File Offset: 0x00000253
|
|
// (remove) Token: 0x060002FD RID: 765 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x14000001")]
|
|
public event ElapsedEventHandler Elapsed
|
|
{
|
|
[Token(Token = "0x60002FC")]
|
|
[Address(RVA = "0x599520", Offset = "0x598320", VA = "0x180599520")]
|
|
add
|
|
{
|
|
}
|
|
[Token(Token = "0x60002FD")]
|
|
[Address(RVA = "0x5996B0", Offset = "0x5984B0", VA = "0x1805996B0")]
|
|
remove
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the site that binds the <see cref="T:System.Timers.Timer" /> to its container in design mode.</summary>
|
|
/// <returns>An <see cref="T:System.ComponentModel.ISite" /> interface representing the site that binds the <see cref="T:System.Timers.Timer" /> object to its container.</returns>
|
|
// Token: 0x17000078 RID: 120
|
|
// (get) Token: 0x060002FF RID: 767 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x060002FE RID: 766 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000078")]
|
|
public override ISite Site
|
|
{
|
|
[Token(Token = "0x60002FF")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "12")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60002FE")]
|
|
[Address(RVA = "0x599930", Offset = "0x598730", VA = "0x180599930", Slot = "13")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the object used to marshal event-handler calls that are issued when an interval has elapsed.</summary>
|
|
/// <returns>The <see cref="T:System.ComponentModel.ISynchronizeInvoke" /> representing the object used to marshal the event-handler calls that are issued when an interval has elapsed. The default is <see langword="null" />.</returns>
|
|
// Token: 0x17000079 RID: 121
|
|
// (get) Token: 0x06000300 RID: 768 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000079")]
|
|
[DefaultValue(null)]
|
|
[TimersDescription("The object used to marshal the event handler calls issued when an interval has elapsed.")]
|
|
[Browsable(false)]
|
|
public ISynchronizeInvoke SynchronizingObject
|
|
{
|
|
[Token(Token = "0x6000300")]
|
|
[Address(RVA = "0x5995A0", Offset = "0x5983A0", VA = "0x1805995A0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Begins the run-time initialization of a <see cref="T:System.Timers.Timer" /> that is used on a form or by another component.</summary>
|
|
// Token: 0x06000301 RID: 769 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000301")]
|
|
[Address(RVA = "0x598DA0", Offset = "0x597BA0", VA = "0x180598DA0", Slot = "16")]
|
|
public void BeginInit()
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases the resources used by the <see cref="T:System.Timers.Timer" />.</summary>
|
|
// Token: 0x06000302 RID: 770 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000302")]
|
|
[Address(RVA = "0x598F80", Offset = "0x597D80", VA = "0x180598F80")]
|
|
public void Close()
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases all resources used by the current <see cref="T:System.Timers.Timer" />.</summary>
|
|
/// <param name="disposing">
|
|
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
|
|
// Token: 0x06000303 RID: 771 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000303")]
|
|
[Address(RVA = "0x598FC0", Offset = "0x597DC0", VA = "0x180598FC0", Slot = "14")]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
/// <summary>Ends the run-time initialization of a <see cref="T:System.Timers.Timer" /> that is used on a form or by another component.</summary>
|
|
// Token: 0x06000304 RID: 772 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000304")]
|
|
[Address(RVA = "0x599010", Offset = "0x597E10", VA = "0x180599010", Slot = "17")]
|
|
public void EndInit()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000305 RID: 773 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000305")]
|
|
[Address(RVA = "0x599020", Offset = "0x597E20", VA = "0x180599020")]
|
|
private void MyTimerCallback(object state)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000254 RID: 596
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000254")]
|
|
private double interval;
|
|
|
|
// Token: 0x04000255 RID: 597
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000255")]
|
|
private bool enabled;
|
|
|
|
// Token: 0x04000256 RID: 598
|
|
[FieldOffset(Offset = "0x31")]
|
|
[Token(Token = "0x4000256")]
|
|
private bool initializing;
|
|
|
|
// Token: 0x04000257 RID: 599
|
|
[FieldOffset(Offset = "0x32")]
|
|
[Token(Token = "0x4000257")]
|
|
private bool delayedEnable;
|
|
|
|
// Token: 0x04000258 RID: 600
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000258")]
|
|
private ElapsedEventHandler onIntervalElapsed;
|
|
|
|
// Token: 0x04000259 RID: 601
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000259")]
|
|
private bool autoReset;
|
|
|
|
// Token: 0x0400025A RID: 602
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400025A")]
|
|
private ISynchronizeInvoke synchronizingObject;
|
|
|
|
// Token: 0x0400025B RID: 603
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400025B")]
|
|
private bool disposed;
|
|
|
|
// Token: 0x0400025C RID: 604
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400025C")]
|
|
private Timer timer;
|
|
|
|
// Token: 0x0400025D RID: 605
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400025D")]
|
|
private TimerCallback callback;
|
|
|
|
// Token: 0x0400025E RID: 606
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400025E")]
|
|
private object cookie;
|
|
}
|
|
}
|