Author: atsushi
Date: 2008-02-16 08:33:02 -0500 (Sat, 16 Feb 2008)
New Revision: 95867

Added:
   
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/CallbackDebugBehavior.cs
Modified:
   
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/ChangeLog
   
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/MethodStubs.cs
   
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/ChangeLog
   trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources
Log:
2008-02-16  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * CallbackDebugBehavior.cs : new class.

        * MethodStubs.cs : Added CreateBehavior() method in couple of elements.



Modified: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/ChangeLog
===================================================================
--- 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/ChangeLog
   2008-02-16 13:16:35 UTC (rev 95866)
+++ 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/ChangeLog
   2008-02-16 13:33:02 UTC (rev 95867)
@@ -1,3 +1,7 @@
+2008-02-16  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * MethodStubs.cs : Added CreateBehavior() method in couple of elements.
+
 2007-03-30  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * ServiceModelSectionGroup.cs :

Modified: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/MethodStubs.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/MethodStubs.cs
      2008-02-16 13:16:35 UTC (rev 95866)
+++ 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Configuration/MethodStubs.cs
      2008-02-16 13:33:02 UTC (rev 95867)
@@ -284,6 +284,12 @@
                {
                        base.DeserializeElement (r, serializeCollectionKey);
                }
+
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
        }
 
 // ServiceMetadataPublishingElement 
@@ -294,7 +300,7 @@
                        base.DeserializeElement (r, serializeCollectionKey);
                }
 
-               public object CreateBehavior ()
+               protected internal override object CreateBehavior ()
                {
                        ServiceMetadataBehavior b = new ServiceMetadataBehavior 
();
                        b.HttpGetEnabled = HttpGetEnabled;
@@ -412,8 +418,49 @@
 
                // Properties
                public abstract Type BehaviorType { get;  }
+
+               protected internal abstract object CreateBehavior ();
        }
 
+// CallbackBehaviorElement
+       public partial class CallbackDebugElement
+       {
+               protected internal override object CreateBehavior ()
+               {
+                       return new CallbackDebugBehavior 
(IncludeExceptionDetailInFaults);
+               }
+       }
+
+// CallbackTimeoutsElement
+       public partial class CallbackTimeoutsElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// ClientCredentialsElement
+       public partial class ClientCredentialsElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// ClientViaElement
+       public partial class ClientViaElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
 // CustomBindingCollectionElement
        public partial class CustomBindingCollectionElement
        {
@@ -432,6 +479,16 @@
                }
        }
 
+// DataContractSerializerElement
+       public partial class DataContractSerializerElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
 // StandardBindingCollectionElement
        public partial class 
StandardBindingCollectionElement<TStandardBinding,TBindingConfiguration>
        {
@@ -450,6 +507,76 @@
                }
        }
 
+// ServiceAuthorizationElement
+       public partial class ServiceAuthorizationElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// ServiceCredentialsElement
+       public partial class ServiceCredentialsElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// ServiceSecurityAuditElement
+       public partial class ServiceSecurityAuditElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// ServiceThrottlingElement
+       public partial class ServiceThrottlingElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// ServiceTimeoutsElement
+       public partial class ServiceTimeoutsElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// SynchronousReceiveElement
+       public partial class SynchronousReceiveElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
+// TransactedBatchingElement
+       public partial class TransactedBatchingElement
+       {
+               [MonoTODO]
+               protected internal override object CreateBehavior ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+
 // ServiceModelExtensionCollectionElement
        public partial class 
ServiceModelExtensionCollectionElement<TServiceModelExtensionElement> 
                : ConfigurationElement,

Added: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/CallbackDebugBehavior.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/CallbackDebugBehavior.cs
      2008-02-16 13:16:35 UTC (rev 95866)
+++ 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/CallbackDebugBehavior.cs
      2008-02-16 13:33:02 UTC (rev 95867)
@@ -0,0 +1,68 @@
+//
+// CallbackDebugBehavior.cs
+//
+// Author:
+//     Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Novell, Inc.  http://www.novell.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+using System.Collections.ObjectModel;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Dispatcher;
+
+namespace System.ServiceModel.Description
+{
+       public class CallbackDebugBehavior : IEndpointBehavior
+       {
+               bool include_exception;
+
+               public CallbackDebugBehavior (bool 
includeExceptionDetailInFaults)
+               {
+                       this.include_exception = includeExceptionDetailInFaults;
+               }
+
+               public bool IncludeExceptionDetailInFaults {
+                       get { return include_exception; }
+                       set { include_exception = value; }
+               }
+
+               void IEndpointBehavior.AddBindingParameters (ServiceEndpoint 
endpoint,
+                       BindingParameterCollection parameters)
+               {
+               }
+
+               void IEndpointBehavior.ApplyDispatchBehavior (ServiceEndpoint 
endpoint,
+                       EndpointDispatcher dispatcher)
+               {
+               }
+
+               void IEndpointBehavior.ApplyClientBehavior (
+                       ServiceEndpoint endpoint, ClientRuntime behavior)
+               {
+                       
behavior.CallbackDispatchRuntime.ChannelDispatcher.IncludeExceptionDetailInFaults
 = IncludeExceptionDetailInFaults;
+               }
+
+               void IEndpointBehavior.Validate (ServiceEndpoint endpoint)
+               {
+               }
+       }
+}


Property changes on: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/CallbackDebugBehavior.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/ChangeLog
===================================================================
--- 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/ChangeLog 
    2008-02-16 13:16:35 UTC (rev 95866)
+++ 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Description/ChangeLog 
    2008-02-16 13:33:02 UTC (rev 95867)
@@ -1,3 +1,7 @@
+2008-02-16  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * CallbackDebugBehavior.cs : new class.
+
 2008-02-15  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * ContractDescriptionGenerator.cs : When reflecting a method,

Modified: trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources
===================================================================
--- trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources       
2008-02-16 13:16:35 UTC (rev 95866)
+++ trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources       
2008-02-16 13:33:02 UTC (rev 95867)
@@ -496,6 +496,7 @@
 System.ServiceModel.Configuration/XmlDictionaryReaderQuotasElement.cs
 System.ServiceModel.Configuration/XmlElementElement.cs
 System.ServiceModel.Configuration/XmlElementElementCollection.cs
+System.ServiceModel.Description/CallbackDebugBehavior.cs
 System.ServiceModel.Description/ClientCredentials.cs
 System.ServiceModel.Description/ClientViaBehavior.cs
 System.ServiceModel.Description/ContractDescription.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to