コード例 #1
0
        public override void write( object obj, IProtocolFormatter writer )
		{
			Header header = (Header) obj;
            writer.DirectWriteString( header.headerName );
            writer.DirectWriteBoolean( header.mustUnderstand );
            writer.DirectWriteInt( -1 );
			MessageWriter.writeObject( header.headerValue, writer );
		}
コード例 #2
0
        public override void write(object obj, IProtocolFormatter writer)
        {
            Header header = (Header)obj;

            writer.DirectWriteString(header.headerName);
            writer.DirectWriteBoolean(header.mustUnderstand);
            writer.DirectWriteInt(-1);
            MessageWriter.writeObject(header.headerValue, writer);
        }
コード例 #3
0
ファイル: AMFBodyWriter.cs プロジェクト: Georotzen/.NET-SDK-1
		public override void write( object obj, IProtocolFormatter writer )
		{
			//Log.log( ORBConstants.INFO, "AMFBodyWriter.write.begin: " + writer.BaseStream.Length );
			Body body = (Body) obj;

			if( Log.isLogging( LoggingConstants.DEBUG ) )
				Log.log( LoggingConstants.DEBUG, "AMFBodyWriter:write body.responseURI: " + body.responseURI + " body.serviceURI: " + body.serviceURI );

            writer.DirectWriteString( body.ResponseUri == null ? "null" : body.ResponseUri );
            writer.DirectWriteString( body.ServiceUri == null ? "null" : body.ServiceUri );
            writer.DirectWriteInt( -1 );
			//((FlashorbBinaryWriter)writer).WriteInt( i );
			//Log.log( ORBConstants.INFO, "AMFBodyWriter.write.before writing response object: " + writer.BaseStream.Length );
			writer.ResetReferenceCache();
			writer.BeginWriteBodyContent();
			MessageWriter.writeObject( body.responseDataObject, writer );
			writer.EndWriteBodyContent();
			//Log.log( ORBConstants.INFO, "AMFBodyWriter.write.end: " + writer.BaseStream.Length );
		}
コード例 #4
0
        public override void write(object obj, IProtocolFormatter writer)
        {
            //Log.log( ORBConstants.INFO, "AMFBodyWriter.write.begin: " + writer.BaseStream.Length );
            Body body = (Body)obj;

            if (Log.isLogging(LoggingConstants.DEBUG))
            {
                Log.log(LoggingConstants.DEBUG, "AMFBodyWriter:write body.responseURI: " + body.responseURI + " body.serviceURI: " + body.serviceURI);
            }

            writer.DirectWriteString(body.ResponseUri == null ? "null" : body.ResponseUri);
            writer.DirectWriteString(body.ServiceUri == null ? "null" : body.ServiceUri);
            writer.DirectWriteInt(-1);
            //((FlashorbBinaryWriter)writer).WriteInt( i );
            //Log.log( ORBConstants.INFO, "AMFBodyWriter.write.before writing response object: " + writer.BaseStream.Length );
            writer.ResetReferenceCache();
            writer.BeginWriteBodyContent();
            MessageWriter.writeObject(body.responseDataObject, writer);
            writer.EndWriteBodyContent();
            //Log.log( ORBConstants.INFO, "AMFBodyWriter.write.end: " + writer.BaseStream.Length );
        }