Пример #1
0
 /// <summary>
 /// Initialises a new instance.
 /// </summary>
 /// <param name="pInstanceName">The instance name to use for the instance's <see cref="cTrace"/> root-context.</param>
 public cIMAPClient(string pInstanceName = TraceSourceName)
 {
     mInstanceName = pInstanceName;
     mRootContext  = mTrace.NewRoot(pInstanceName);
     mRootContext.TraceInformation("cIMAPClient by bacome version {0}, release date {1}", Version, ReleaseDate);
     mSynchroniser        = new cCallbackSynchroniser(this, mRootContext);
     mCancellationManager = new cCancellationManager(mSynchroniser.InvokeCancellableCountChanged);
 }