[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Serialization
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Serialization/Formatters FormatterAssemblyStyle.cs,NONE,1.1 FormatterTypeStyle.cs,NONE,1.1 IFieldInfo.cs,NONE,1.1 ISoapMessage.cs,NONE,1.1 InternalRM.cs,NONE,1.1 InternalST.cs,NONE,1.1 Makefile,NONE,1.1 ServerFault.cs,NONE,1.1 SoapFault.cs,NONE,1.1SoapMessage.cs,NONE,1.1 |
Date: |
Sat, 19 Apr 2003 05:22:44 -0400 |
Update of
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Serialization/Formatters
In directory
subversions:/tmp/cvs-serv1099/runtime/System/Runtime/Serialization/Formatters
Added Files:
FormatterAssemblyStyle.cs FormatterTypeStyle.cs IFieldInfo.cs
ISoapMessage.cs InternalRM.cs InternalST.cs Makefile
ServerFault.cs SoapFault.cs SoapMessage.cs
Log Message:
Stub out missing classes under "System.Runtime.Serialization".
--- NEW FILE ---
/*
* FormatterAssemblyStyle.cs - Implementation of the
* "System.Runtime.Serialization.FormatterAssemblyStyle"
class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
[Serializable]
public enum FormatterAssemblyStyle
{
Simple = 0,
Full = 1
}; // enum FormatterAssemblyStyle
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
/*
* FormatterTypeStyle.cs - Implementation of the
* "System.Runtime.Serialization.FormatterTypeStyle" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
[Serializable]
public enum FormatterTypeStyle
{
TypesWhenNeeded = 0,
TypesAlways = 1,
XsdString = 2
}; // enum FormatterTypeStyle
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
/*
* IFieldInfo.cs - Implementation of the
* "System.Runtime.Serialization.IFieldInfo" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
public interface IFieldInfo
{
String[] FieldNames { get; set; }
Type[] FieldTypes { get; set; }
}; // interface IFieldInfo
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
/*
* ISoapMessage.cs - Implementation of the
* "System.Runtime.Serialization.ISoapMessage" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
using System.Runtime.Remoting.Messaging;
public interface ISoapMessage
{
Header[] Headers { get; set; }
String MethodName { get; set; }
String[] ParamNames { get; set; }
Type[] ParamTypes { get; set; }
Object[] ParamValues { get; set; }
String XmlNameSpace { get; set; }
}; // interface ISoapMessage
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
/*
* InternalRM.cs - Implementation of the
* "System.Runtime.Serialization.InternalRM" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
using System.Diagnostics;
// Not used in our implementation - provided for compatibility only.
public sealed class InternalRM
{
[Conditional("_LOGGING")]
public static void InfoSoap(params Object[] messages) {}
public static bool SoapCheckEnabled() { return false; }
}; // class InternalRM
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
/*
* InternalST.cs - Implementation of the
* "System.Runtime.Serialization.InternalST" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
using System.Diagnostics;
using System.Reflection;
// Not used in our implementation - provided for compatibility only.
public sealed class InternalST
{
private InternalST() {}
[Conditional("_LOGGING")]
public static void InfoSoap(params Object[] messages) {}
public static bool SoapCheckEnabled() { return false; }
[Conditional("SER_LOGGING")]
public static void Soap(params Object[] messages) {}
[Conditional("_DEBUG")]
public static void SoapAssert(bool condition, String message) {}
public static void SerializationSetValue
(FieldInfo fi, Object target, Object value) {}
public static Assembly LoadAssemblyFromString(String assemblyString)
{
return Assembly.Load(assemblyString);
}
}; // class InternalST
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
# The build is done in "runtime/System", so cd up and use that Makefile.
all:
(cd ../../..;make)
--- NEW FILE ---
/*
* ServerFault.cs - Implementation of the
* "System.Runtime.Serialization.ServerFault" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
using System.Runtime.Remoting.Metadata;
[Serializable]
[SoapType(Embedded=true)]
public sealed class ServerFault
{
// Internal state.
private String exceptionType;
private String message;
private String stackTrace;
// Constructors.
public ServerFault(String exceptionType, String message, String
stackTrace)
{
this.exceptionType = exceptionType;
this.message = message;
this.stackTrace = stackTrace;
}
// Get or set the object properties.
public String ExceptionMessage
{
get
{
return message;
}
set
{
message = value;
}
}
public String ExceptionType
{
get
{
return exceptionType;
}
set
{
exceptionType = value;
}
}
public String StackTrace
{
get
{
return stackTrace;
}
set
{
stackTrace = value;
}
}
}; // class ServerFault
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
/*
* SoapFault.cs - Implementation of the
* "System.Runtime.Serialization.SoapFault" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
using System.Runtime.Serialization;
using System.Runtime.Remoting.Metadata;
[Serializable]
[SoapType(Embedded=true)]
public sealed class SoapFault : ISerializable
{
// Internal state.
private String faultCode;
private String faultString;
private String faultActor;
private Object serverFault;
// Constructors.
public SoapFault() {}
public SoapFault(String faultCode, String faultString,
String faultActor, ServerFault
serverFault)
{
this.faultCode = faultCode;
this.faultString = faultString;
this.faultActor = faultActor;
this.serverFault = serverFault;
}
[TODO]
internal SoapFault(SerializationInfo info, StreamingContext context)
{
// TODO
}
// Implement the ISerializable interface.
[TODO]
public void GetObjectData(SerializationInfo info, StreamingContext
context)
{
// TODO
}
// Get or set the object properties.
public String FaultActor
{
get
{
return faultActor;
}
set
{
faultActor = value;
}
}
public String FaultCode
{
get
{
return faultCode;
}
set
{
faultCode = value;
}
}
public String FaultString
{
get
{
return faultString;
}
set
{
faultString = value;
}
}
public Object Detail
{
get
{
return serverFault;
}
set
{
serverFault = value;
}
}
}; // class SoapFault
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
--- NEW FILE ---
/*
* SoapMessage.cs - Implementation of the
* "System.Runtime.Serialization.SoapMessage" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Serialization.Formatters
{
#if CONFIG_REMOTING
using System.Runtime.Remoting.Messaging;
[Serializable]
public class SoapMessage : ISoapMessage
{
// Internal state.
private Header[] headers;
private String methodName;
private String[] paramNames;
private Type[] paramTypes;
private Object[] paramValues;
private String xmlNameSpace;
// Constructor.
public SoapMessage() {}
// Get or set the object properties.
public Header[] Headers
{
get
{
return headers;
}
set
{
headers = value;
}
}
public String MethodName
{
get
{
return methodName;
}
set
{
methodName = value;
}
}
public String[] ParamNames
{
get
{
return paramNames;
}
set
{
paramNames = value;
}
}
public Type[] ParamTypes
{
get
{
return paramTypes;
}
set
{
paramTypes = value;
}
}
public Object[] ParamValues
{
get
{
return paramValues;
}
set
{
paramValues = value;
}
}
public String XmlNameSpace
{
get
{
return xmlNameSpace;
}
set
{
xmlNameSpace = value;
}
}
}; // class SoapMessage
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Serialization.Formatters
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Serialization/Formatters FormatterAssemblyStyle.cs,NONE,1.1 FormatterTypeStyle.cs,NONE,1.1 IFieldInfo.cs,NONE,1.1 ISoapMessage.cs,NONE,1.1 InternalRM.cs,NONE,1.1 InternalST.cs,NONE,1.1 Makefile,NONE,1.1 ServerFault.cs,NONE,1.1 SoapFault.cs,NONE,1.1SoapMessage.cs,NONE,1.1,
Rhys Weatherley <address@hidden> <=