예제 #1
0
        private Frame Disconnect(Status status = Status.Normal, string message = "")
        {
            var agentDisconnectFrame = new AgentDisconnectFrame(status, message);

            byte[] bytes = agentDisconnectFrame.Bytes;

            if (bytes.Length > this.MaxFrameSize)
            {
                throw new ApplicationException("Frame size exceeded");
            }

            return(agentDisconnectFrame);
        }
 public void Setup()
 {
     this.frame = new AgentDisconnectFrame(Status.Normal, "Test");
 }