public void Close()
{
lock(closedLock)
{
if(closed)
{
return;
}
Shutdown();
RemoveInfo removeInfo = new RemoveInfo();
removeInfo.ObjectId = this.info.ProducerId;
this.session.Connection.Oneway(removeInfo);
if(Tracer.IsDebugEnabled)
{
Tracer.DebugFormat("Remove of Producer[{0}] sent.", this.ProducerId);
}
}
}