Dispose() public method

Must be called for each class instance. Must be called before Core.Library.Close().
public Dispose ( ) : void
return void
コード例 #1
0
ファイル: TestPerformanceCp.cs プロジェクト: openhome/ohNet
 private static void SubscriptionThread(object aArgs)
 {
     ThreadArgs args = (ThreadArgs)aArgs;
     Semaphore sem = new Semaphore(0, 1);
     do
     {
         CpProxyOpenhomeOrgTestBasic1 proxy = new CpProxyOpenhomeOrgTestBasic1(args.Device);
         proxy.SetPropertyChanged(() => sem.Release());
         proxy.Subscribe();
         sem.WaitOne();
         proxy.Dispose();
     } while (args.IncrementCount());
 }