예제 #1
0
 /// <summary>
 /// Releases all resource used by the <see cref="Matrix.Client.MatrixClient"/> object.
 /// In addition, this will stop the sync thread.
 /// </summary>
 /// <remarks>Call <see cref="Dispose"/> when you are finished using the <see cref="Matrix.Client.MatrixClient"/>. The
 /// <see cref="Dispose"/> method leaves the <see cref="Matrix.Client.MatrixClient"/> in an unusable state. After
 /// calling <see cref="Dispose"/>, you must release all references to the <see cref="Matrix.Client.MatrixClient"/>
 /// so the garbage collector can reclaim the memory that the <see cref="Matrix.Client.MatrixClient"/> was occupying.</remarks>
 public void Dispose()
 {
     api.StopSyncThreads();
 }