瀏覽代碼

2009-04-21 Atsushi Enomoto <[email protected]>

	* PeerResolver.cs, PeerResolverImpl.cs :
	  update API to the latest .NET.

	* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.


svn path=/trunk/mcs/; revision=132237
Atsushi Eno 16 年之前
父節點
當前提交
d0031fea42

+ 4 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog

@@ -1,3 +1,7 @@
+2009-04-21  Atsushi Enomoto  <[email protected]>
+
+	* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.
+
 2009-04-21  Atsushi Enomoto  <[email protected]>
 
 	* BinaryMessageEncodingBindingElement.cs, ChannelBase.cs,

+ 4 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/PnrpPeerResolverBindingElement.cs

@@ -91,6 +91,10 @@ namespace System.ServiceModel.Channels
 		{
 		}
 
+		public override bool CanShareReferrals {
+			get{ throw new NotImplementedException (); }
+		}
+
 		public override object Register (string meshId, PeerNodeAddress nodeAddress, TimeSpan timeout)
 		{
 			throw new NotImplementedException ();

+ 5 - 0
mcs/class/System.ServiceModel/System.ServiceModel/ChangeLog

@@ -1,3 +1,8 @@
+2009-04-21  Atsushi Enomoto  <[email protected]>
+
+	* PeerResolver.cs, PeerResolverImpl.cs :
+	  update API to the latest .NET.
+
 2009-04-20  Atsushi Enomoto  <[email protected]>
 
 	* Dummy.cs : remove some peer transport stuff.

+ 9 - 0
mcs/class/System.ServiceModel/System.ServiceModel/PeerResolver.cs

@@ -27,7 +27,10 @@
 //
 using System.Collections.ObjectModel;
 using System.Runtime.Serialization;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Description;
 using System.ServiceModel.Security.Tokens;
+using System.ServiceModel.PeerResolvers;
 using System.Security.Cryptography.X509Certificates;
 
 namespace System.ServiceModel
@@ -38,6 +41,12 @@ namespace System.ServiceModel
 		{
 		}
 
+		public abstract bool CanShareReferrals { get; }
+
+		public virtual void Initialize (EndpointAddress address, Binding binding, ClientCredentials credentials, PeerReferralPolicy referralPolicy)
+		{
+		}
+
 		public abstract object Register (string meshId,
 			PeerNodeAddress nodeAddress, TimeSpan timeout);
 

+ 4 - 0
mcs/class/System.ServiceModel/System.ServiceModel/PeerResolverImpl.cs

@@ -40,6 +40,10 @@ namespace System.ServiceModel
 		{
 		}
 
+		public override bool CanShareReferrals {
+			get { throw new NotImplementedException (); }
+		}
+
 		public override object Register (string meshId,
 			PeerNodeAddress nodeAddress, TimeSpan timeout)
 		{