示例#1
0
        public virtual void Oneway(Command command)
        {
            lock (myLock)
            {
                if (closed.Value)
                {
                    this.exceptionHandler(this, new InvalidOperationException("Error writing to broker.  Transport connection is closed."));
                    return;
                }

                if (command is ShutdownInfo)
                {
                    seenShutdown = true;
                }

                WireFormat.Marshal(command, socketWriter);
            }
        }