FNF.Utility.BouyomiChanClient.Dispose C# (CSharp) Method

Dispose() public method

オブジェクト開放。
public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (ClientChannel != null) {
                ChannelServices.UnregisterChannel(ClientChannel);
                ClientChannel = null;
            }
        }

Usage Example

 void StopBoyomi()
 {
     try
     {
         var BouyomiChan = new BouyomiChanClient();
         int taskId = BouyomiChan.AddTalkTask2("むおん");
         BouyomiChan.Dispose();
     }
     catch
     {
     }
 }