| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- //
- // System.Runtime.Serialization.Formatters.SoapFault.cs
- //
- // Author: Duncan Mak ([email protected])
- //
- // 2002 (C) Copyright, Ximian, Inc.
- //
- using System;
- using System.Runtime.Serialization;
- namespace System.Runtime.Serialization.Formatters {
- [Serializable]
- public sealed class SoapFault : ISerializable
- {
- string code;
- string actor;
- string faultString;
- ServerFault serverFault;
- [MonoTODO]
- public SoapFault ()
- {
- throw new NotImplementedException ();
- }
- private SoapFault (SerializationInfo info, StreamingContext context)
- {
- FaultCode = info.GetString ("faultcode");
- FaultString = info.GetString ("faultstring");
- Detail = info.GetValue ("detail", typeof (object));
- }
- public SoapFault (string faultCode, string faultString,
- string faultActor, ServerFault serverFault)
- {
- this.code = faultCode;
- this.actor = faultActor;
- this.faultString = faultString;
- this.serverFault = serverFault;
- }
-
- [MonoTODO]
- public object Detail {
- get { throw new NotImplementedException (); }
- set { throw new NotImplementedException (); }
- }
- public string FaultActor {
- get { return actor; }
- set { actor = value; }
- }
- public string FaultCode {
- get { return code; }
- set { code = value; }
- }
- public string FaultString {
- get { return faultString; }
- set { faultString = value; }
- }
-
- public void GetObjectData (SerializationInfo info,
- StreamingContext context)
- {
- info.AddValue ("faultcode", FaultCode, typeof (string));
- info.AddValue ("faultstring", FaultString, typeof (string));
- info.AddValue ("detail", Detail, typeof (object));
- }
- }
- }
|