public void SessionWrite(ISessionContext next, object msg) { var bytes = BitConverter.GetBytes((int)msg); next.FireWrite(bytes); }