C# Class SupportClass.ThreadClass, csharp-ldap

Support class used to handle threads
Inheritance: IThreadRunnable
Afficher le fichier Open project: EventStore/csharp-ldap Class Usage Examples

Méthodes publiques

Méthode Description
Abort ( ) : void

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread

Abort ( System stateInfo ) : void

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread.

Current ( ) : ThreadClass,

Gets the currently running thread

Interrupt ( ) : void

Interrupts a thread that is in the WaitSleepJoin thread state

Join ( ) : void

Blocks the calling thread until a thread terminates

Join ( long MiliSeconds ) : void

Blocks the calling thread until a thread terminates or the specified time elapses

Join ( long MiliSeconds, int NanoSeconds ) : void

Blocks the calling thread until a thread terminates or the specified time elapses

Resume ( ) : void

Resumes a thread that has been suspended

Run ( ) : void

This method has no functionality unless the method is overridden

Start ( ) : void

Causes the operating system to change the state of the current thread instance to ThreadState.Running

Suspend ( ) : void

Suspends the thread, if the thread is already suspended it has no effect

ThreadClass ( ) : System

Initializes a new instance of the ThreadClass class

ThreadClass ( System Start ) : System

Initializes a new instance of the Thread class.

ThreadClass ( System Start, string Name ) : System

Initializes a new instance of the Thread class.

ThreadClass ( string Name ) : System

Initializes a new instance of the Thread class.

ToString ( ) : System.String

Obtain a String that represents the current Object

Method Details

Abort() public méthode

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread
public Abort ( ) : void
Résultat void

Abort() public méthode

Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread.
public Abort ( System stateInfo ) : void
stateInfo System An object that contains application-specific information, such as state, which can be used by the thread being aborted
Résultat void

Current() public static méthode

Gets the currently running thread
public static Current ( ) : ThreadClass,
Résultat ThreadClass,

Interrupt() public méthode

Interrupts a thread that is in the WaitSleepJoin thread state
public Interrupt ( ) : void
Résultat void

Join() public méthode

Blocks the calling thread until a thread terminates
public Join ( ) : void
Résultat void

Join() public méthode

Blocks the calling thread until a thread terminates or the specified time elapses
public Join ( long MiliSeconds ) : void
MiliSeconds long Time of wait in milliseconds
Résultat void

Join() public méthode

Blocks the calling thread until a thread terminates or the specified time elapses
public Join ( long MiliSeconds, int NanoSeconds ) : void
MiliSeconds long Time of wait in milliseconds
NanoSeconds int Time of wait in nanoseconds
Résultat void

Resume() public méthode

Resumes a thread that has been suspended
public Resume ( ) : void
Résultat void

Run() public méthode

This method has no functionality unless the method is overridden
public Run ( ) : void
Résultat void

Start() public méthode

Causes the operating system to change the state of the current thread instance to ThreadState.Running
public Start ( ) : void
Résultat void

Suspend() public méthode

Suspends the thread, if the thread is already suspended it has no effect
public Suspend ( ) : void
Résultat void

ThreadClass() public méthode

Initializes a new instance of the ThreadClass class
public ThreadClass ( ) : System
Résultat System

ThreadClass() public méthode

Initializes a new instance of the Thread class.
public ThreadClass ( System Start ) : System
Start System A ThreadStart delegate that references the methods to be invoked when this thread begins executing
Résultat System

ThreadClass() public méthode

Initializes a new instance of the Thread class.
public ThreadClass ( System Start, string Name ) : System
Start System A ThreadStart delegate that references the methods to be invoked when this thread begins executing
Name string The name of the thread
Résultat System

ThreadClass() public méthode

Initializes a new instance of the Thread class.
public ThreadClass ( string Name ) : System
Name string The name of the thread
Résultat System

ToString() public méthode

Obtain a String that represents the current Object
public ToString ( ) : System.String
Résultat System.String