2009-07-10 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 10 Jul 2009 09:03:49 +0000 (09:03 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 10 Jul 2009 09:03:49 +0000 (09:03 -0000)
* DuplexClientBase.cs : add missing members here too.

svn path=/trunk/mcs/; revision=137682

mcs/class/System.ServiceModel/System.ServiceModel/ChangeLog
mcs/class/System.ServiceModel/System.ServiceModel/DuplexClientBase.cs

index eaac73b387bc4c669d86e15dff6a0f3c378dc32e..cb6052a39373949fdb62d052def0342fc33aa707 100755 (executable)
@@ -1,3 +1,7 @@
+2009-07-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DuplexClientBase.cs : add missing members here too.
+
 2009-07-10  Atsushi Enomoto  <atsushi@ximian.com>
 
        * ClientBase.cs : some of Silverlight API are backported to full CLR.
index fa400917593bdc525e91c79de910678424cdafa9..42016b3698f9683386e7e8958b64dcc63368c2da 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Atsushi Enomoto <atsushi@ximian.com>
 //
-// Copyright (C) 2005 Novell, Inc.  http://www.novell.com
+// Copyright (C) 2005,2009 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
@@ -33,29 +33,58 @@ namespace System.ServiceModel
 {
        public class DuplexClientBase<TChannel> : ClientBase<TChannel> where TChannel : class
        {
+               protected DuplexClientBase (object instance)
+                       : this (new InstanceContext (instance), (Binding) null, null)
+               {
+               }
+
+               protected DuplexClientBase (object instance,
+                       Binding binding, EndpointAddress address)
+                       : this (new InstanceContext (instance), binding, address)
+               {
+               }
+
+               protected DuplexClientBase (object instance,
+                       string configurationName)
+                       : this (new InstanceContext (instance), configurationName)
+               {
+               }
+
+               protected DuplexClientBase (InstanceContext instance,
+                       string bindingConfigurationName, EndpointAddress address)
+                       : this (new InstanceContext (instance), bindingConfigurationName, address)
+               {
+               }
+
                protected DuplexClientBase (InstanceContext instance)
-                       : this (instance, (Binding) null, null)
+                       : base ()
                {
+                       this.instance = instance;
                }
 
                protected DuplexClientBase (InstanceContext instance,
                        Binding binding, EndpointAddress address)
+                       : base (binding, address)
                {
-                       throw new NotImplementedException ();
+                       this.instance = instance;
                }
 
                protected DuplexClientBase (InstanceContext instance,
                        string configurationName)
+                       : base (configurationName)
                {
-                       throw new NotImplementedException ();
+                       this.instance = instance;
                }
 
                protected DuplexClientBase (InstanceContext instance,
                        string configurationName, EndpointAddress address)
+                       : base (configurationName, address)
                {
-                       throw new NotImplementedException ();
+                       this.instance = instance;
                }
 
+               InstanceContext instance;
+
                public IDuplexContextChannel InnerDuplexChannel {
                        get { throw new NotImplementedException (); }
                }