Author: atsushi
Date: 2007-07-05 06:39:47 -0400 (Thu, 05 Jul 2007)
New Revision: 81377
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ITransactedBindingElement.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqBindingElementBase.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqMessageProperty.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqTransportBindingElement.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/MessageSecurityOverMsmq.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqBindingBase.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqException.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqPoisonMessageException.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqTransportSecurity.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqBinding.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqSecurity.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/PoisonMessageException.cs
Modified:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/SecureMessageGenerator.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources
trunk/olive/class/System.ServiceModel/System.ServiceModel/ChangeLog
trunk/olive/class/System.ServiceModel/System.ServiceModel/Dummy.cs
trunk/olive/class/System.ServiceModel/System.ServiceModel/ServiceRuntimeChannel.cs
Log:
2007-07-05 Atsushi Enomoto <[EMAIL PROTECTED]>
couple of msmq stubs, as we will be able to implement them due to
SoC effort.
* NetMsmqSecurity.cs PoisonMessageException.cs
MsmqException.cs MsmqPoisonMessageException.cs
MsmqBindingBase.cs MessageSecurityOverMsmq.cs
NetMsmqBinding.cs MsmqTransportSecurity.cs :
couple of msmq stubs.
* Dummy.cs : removed newly stubbed ones.
* MsmqBindingElementBase.cs MsmqMessageProperty.cs
MsmqTransportBindingElement.cs ITransactedBindingElement.cs :
couple of msmq stubs.
Modified: trunk/olive/class/System.ServiceModel/System.ServiceModel/ChangeLog
===================================================================
--- trunk/olive/class/System.ServiceModel/System.ServiceModel/ChangeLog
2007-07-05 08:37:38 UTC (rev 81376)
+++ trunk/olive/class/System.ServiceModel/System.ServiceModel/ChangeLog
2007-07-05 10:39:47 UTC (rev 81377)
@@ -1,3 +1,12 @@
+2007-07-05 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * NetMsmqSecurity.cs PoisonMessageException.cs
+ MsmqException.cs MsmqPoisonMessageException.cs
+ MsmqBindingBase.cs MessageSecurityOverMsmq.cs
+ NetMsmqBinding.cs MsmqTransportSecurity.cs :
+ couple of msmq stubs.
+ * Dummy.cs : removed newly stubbed ones.
+
2007-04-27 Atsushi Enomoto <[EMAIL PROTECTED]>
* EndpointAddress.cs, EndpointAddress10.cs :
Modified: trunk/olive/class/System.ServiceModel/System.ServiceModel/Dummy.cs
===================================================================
--- trunk/olive/class/System.ServiceModel/System.ServiceModel/Dummy.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++ trunk/olive/class/System.ServiceModel/System.ServiceModel/Dummy.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -7,12 +7,7 @@
namespace System.ServiceModel
{
- public class MessageSecurityOverMsmq { }
- public abstract class MsmqBindingBase : Binding { public override
string Scheme { get { return null; } } }
- public class MsmqTransportSecurity { }
public class NamedPipeTransportSecurity { }
- public class NetMsmqBinding : Binding { public override
BindingElementCollection CreateBindingElements () { throw new
NotImplementedException (); } public override string Scheme { get { return
null; } } }
- public class NetMsmqSecurity { }
public class NetNamedPipeBinding : Binding { public override
BindingElementCollection CreateBindingElements () { throw new
NotImplementedException (); } public override string Scheme { get { return
null; } } }
public class NetNamedPipeSecurity { }
public class PeerHopCountAttribute { }
@@ -26,9 +21,6 @@
namespace System.ServiceModel.Channels
{
- public class MsmqBindingElementBase { }
- public class MsmqMessageProperty { }
- public class MsmqTransportBindingElement { }
public class PeerCustomResolverBindingElement { }
public class PrivacyNoticeBindingElement { }
public class PrivacyNoticeBindingElementImporter { }
@@ -39,7 +31,7 @@
namespace System.ServiceModel.MsmqIntegration
{
- public class MsmqIntegrationBinding : MsmqBindingBase { public override
BindingElementCollection CreateBindingElements () { throw new
NotImplementedException ();} }
+ public class MsmqIntegrationBinding : MsmqBindingBase { public override
BindingElementCollection CreateBindingElements () { throw new
NotImplementedException ();} public override string Scheme { get { return
"msmq.formatname"; } } }
public class MsmqIntegrationBindingElement { }
public class MsmqIntegrationSecurity { }
}
@@ -50,4 +42,4 @@
//public class CustomPeerResolverService {}
public class PeerCustomResolverSettings {}
public class PeerResolverSettings {}
-}
\ No newline at end of file
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/MessageSecurityOverMsmq.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel/MessageSecurityOverMsmq.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel/MessageSecurityOverMsmq.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,53 @@
+//
+// MessageSecurityOverMsmq.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel;
+using System.ServiceModel.Security;
+
+namespace System.ServiceModel
+{
+ public sealed class MessageSecurityOverMsmq
+ {
+ SecurityAlgorithmSuite suite;
+ MessageCredentialType cred;
+
+ internal MessageSecurityOverMsmq ()
+ {
+ }
+
+ public SecurityAlgorithmSuite AlgorithmSuite {
+ get { return suite; }
+ set { suite = value; }
+ }
+
+ public MessageCredentialType ClientCredentialType {
+ get { return cred; }
+ set { cred = value; }
+ }
+ }
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqBindingBase.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqBindingBase.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqBindingBase.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,118 @@
+//
+// MsmqBindingBase.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel
+{
+ public abstract class MsmqBindingBase : Binding,
IBindingRuntimePreferences
+ {
+ Uri custom_dead_letter_queue;
+ DeadLetterQueue dead_letter_queue;
+ bool durable, exactly_once, use_msmq_trace, use_source_journal;
+ int max_retry_cycles, receive_retry_count;
+ long max_recv_msg_size;
+ ReceiveErrorHandling receive_error_handling;
+ TimeSpan retry_cycle_delay, ttl;
+
+ public Uri CustomDeadLetterQueue {
+ get { return custom_dead_letter_queue; }
+ set { custom_dead_letter_queue = value; }
+ }
+
+ public DeadLetterQueue DeadLetterQueue {
+ get { return dead_letter_queue; }
+ set { dead_letter_queue = value; }
+ }
+
+ public bool Durable {
+ get { return durable; }
+ set { durable = value; }
+ }
+
+ public bool ExactlyOnce {
+ get { return exactly_once; }
+ set { exactly_once = value; }
+ }
+
+ public long MaxReceivedMessageSize {
+ get { return max_recv_msg_size; }
+ set { max_recv_msg_size = value; }
+ }
+
+ public int MaxRetryCycles {
+ get { return max_retry_cycles; }
+ set { max_retry_cycles = value; }
+ }
+
+ public ReceiveErrorHandling ReceiveErrorHandling {
+ get { return receive_error_handling; }
+ set { receive_error_handling = value; }
+ }
+
+ public int ReceiveRetryCount {
+ get { return receive_retry_count; }
+ set { receive_retry_count = value; }
+ }
+
+ public TimeSpan RetryCycleDelay {
+ get { return retry_cycle_delay; }
+ set { retry_cycle_delay = value; }
+ }
+
+ public TimeSpan TimeToLive {
+ get { return ttl; }
+ set { ttl = value; }
+ }
+
+ public override string Scheme {
+ get {
+ foreach (BindingElement be in
CreateBindingElements ())
+ if (be is TransportBindingElement)
+ return
((TransportBindingElement) be).Scheme;
+ throw new Exception ("INTERNAL ERROR: no
TransportBindingElement was created.");
+ }
+ }
+
+ public bool UseMsmqTracing {
+ get { return use_msmq_trace; }
+ set { use_msmq_trace = value; }
+ }
+
+ public bool UseSourceJournal {
+ get { return use_source_journal; }
+ set { use_source_journal = value; }
+ }
+
+ [MonoTODO]
+ bool IBindingRuntimePreferences.ReceiveSynchronously {
+ get { throw new NotImplementedException (); }
+ }
+ }
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqException.cs
===================================================================
--- trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqException.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++ trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqException.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,45 @@
+//
+// MsmqException.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2006 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;
+using System.Collections.ObjectModel;
+using System.Runtime.InteropServices;
+using System.Runtime.Serialization;
+
+namespace System.ServiceModel
+{
+ [Serializable]
+ public class MsmqException : ExternalException
+ {
+ public MsmqException () : base () {}
+ public MsmqException (string msg) : base (msg) {}
+ public MsmqException (string msg, int win32ErrorCode) : base
(msg, win32ErrorCode) {}
+ public MsmqException (string msg, Exception inner) : base (msg,
inner) {}
+ protected MsmqException (SerializationInfo info,
StreamingContext context) :
+ base (info, context) {}
+ }
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqPoisonMessageException.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqPoisonMessageException.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqPoisonMessageException.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,43 @@
+//
+// MsmqPoisonMessageException.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2006 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;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+
+namespace System.ServiceModel
+{
+ [Serializable]
+ public class MsmqPoisonMessageException : PoisonMessageException
+ {
+ public MsmqPoisonMessageException () : base () {}
+ public MsmqPoisonMessageException (string msg) : base (msg) {}
+ public MsmqPoisonMessageException (string msg, Exception inner)
: base (msg, inner) {}
+ protected MsmqPoisonMessageException (SerializationInfo info,
StreamingContext context) :
+ base (info, context) {}
+ }
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqTransportSecurity.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqTransportSecurity.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel/MsmqTransportSecurity.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,68 @@
+//
+// MsmqTransportSecurity.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.Net.Security;
+
+namespace System.ServiceModel
+{
+ public sealed class MsmqTransportSecurity
+ {
+ MsmqAuthenticationMode auth;
+ MsmqEncryptionAlgorithm enc;
+ MsmqSecureHashAlgorithm hash;
+ ProtectionLevel protection_level;
+
+ public MsmqTransportSecurity ()
+ {
+ }
+
+ public MsmqTransportSecurity (MsmqTransportSecurity other)
+ {
+ }
+
+ public MsmqAuthenticationMode MsmqAuthenticationMode {
+ get { return auth; }
+ set { auth = value; }
+ }
+
+ public MsmqEncryptionAlgorithm MsmqEncryptionAlgorithm {
+ get { return enc; }
+ set { enc = value; }
+ }
+
+ public MsmqSecureHashAlgorithm MsmqSecureHashAlgorithm {
+ get { return hash; }
+ set { hash = value; }
+ }
+
+ public ProtectionLevel MsmqProtectionLevel {
+ get { return protection_level; }
+ set { protection_level = value; }
+ }
+ }
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqBinding.cs
===================================================================
--- trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqBinding.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++ trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqBinding.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,94 @@
+//
+// NetMsmqBinding.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel.Channels;
+using System.ServiceModel.Description;
+using System.Xml;
+
+namespace System.ServiceModel
+{
+ public class NetMsmqBinding : MsmqBindingBase
+ {
+ NetMsmqSecurity security;
+ bool use_ad;
+ long max_buffer_pool_size;
+ QueueTransferProtocol queue_tr_protocol;
+ XmlDictionaryReaderQuotas quotas;
+ EnvelopeVersion envelope_version = EnvelopeVersion.Soap12;
+
+ public NetMsmqBinding ()
+ : this (NetMsmqSecurityMode.None)
+ {
+ }
+
+ public NetMsmqBinding (NetMsmqSecurityMode securityMode)
+ {
+ security = new NetMsmqSecurity (securityMode);
+ }
+
+ [MonoTODO]
+ public NetMsmqBinding (string configurationName)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public NetMsmqSecurity Security {
+ get { return security; }
+ }
+
+ public EnvelopeVersion EnvelopeVersion {
+ get { return envelope_version; }
+ }
+
+ public long MaxBufferPoolSize {
+ get { return max_buffer_pool_size; }
+ set { max_buffer_pool_size = value; }
+ }
+
+ public QueueTransferProtocol QueueTransferProtocol {
+ get { return queue_tr_protocol; }
+ set { queue_tr_protocol = value; }
+ }
+
+ public XmlDictionaryReaderQuotas ReaderQuotas {
+ get { return quotas; }
+ set { quotas = value; }
+ }
+
+ public bool UseActiveDirectory {
+ get { return use_ad; }
+ set { use_ad = value; }
+ }
+
+ [MonoTODO]
+ public override BindingElementCollection CreateBindingElements
()
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqSecurity.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqSecurity.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel/NetMsmqSecurity.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,57 @@
+//
+// NetMsmqSecurity.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel;
+using System.ServiceModel.Security;
+
+namespace System.ServiceModel
+{
+ public sealed class NetMsmqSecurity
+ {
+ NetMsmqSecurityMode mode;
+ MessageSecurityOverMsmq message = new MessageSecurityOverMsmq
();
+ MsmqTransportSecurity transport = new MsmqTransportSecurity ();
+
+ internal NetMsmqSecurity (NetMsmqSecurityMode mode)
+ {
+ }
+
+ public MessageSecurityOverMsmq Message {
+ get { return message; }
+ }
+
+ public NetMsmqSecurityMode Mode {
+ get { return mode; }
+ set { mode = value; }
+ }
+
+ public MsmqTransportSecurity Transport {
+ get { return transport; }
+ }
+ }
+}
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel/PoisonMessageException.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel/PoisonMessageException.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel/PoisonMessageException.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,43 @@
+//
+// PoisonMessageException.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+
+namespace System.ServiceModel
+{
+ [Serializable]
+ public class PoisonMessageException : SystemException
+ {
+ public PoisonMessageException () : base () {}
+ public PoisonMessageException (string msg) : base (msg) {}
+ public PoisonMessageException (string msg, Exception inner) :
base (msg, inner) {}
+ protected PoisonMessageException (SerializationInfo info,
StreamingContext context) :
+ base (info, context) {}
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel/System.ServiceModel/ServiceRuntimeChannel.cs
___________________________________________________________________
Name: svn:executable
- *
Modified:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
2007-07-05 10:39:47 UTC (rev 81377)
@@ -1,3 +1,9 @@
+2007-07-05 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * MsmqBindingElementBase.cs MsmqMessageProperty.cs
+ MsmqTransportBindingElement.cs ITransactedBindingElement.cs :
+ couple of msmq stubs.
+
2007-04-02 Atsushi Enomoto <[EMAIL PROTECTED]>
* SecureMessageGenerator.cs : SecurityContextToken support (though
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ITransactedBindingElement.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ITransactedBindingElement.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ITransactedBindingElement.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,37 @@
+//
+// ITransactedBindingElement.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Channels
+{
+ public interface ITransactedBindingElement
+ {
+ bool TransactedReceiveEnabled { get; }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ITransactedBindingElement.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqBindingElementBase.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqBindingElementBase.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqBindingElementBase.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,140 @@
+//
+// MsmqBindingElementBase.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Channels
+{
+ public abstract class MsmqBindingElementBase : TransportBindingElement,
+ ITransactedBindingElement, IPolicyExportExtension,
IWsdlExportExtension
+ {
+ Uri custom_dead_letter_queue;
+ DeadLetterQueue dead_letter_queue;
+ bool durable, exactly_once, tx_enabled, use_msmq_trace,
use_source_journal;
+ int max_retry_cycles, receive_retry_count;
+ ReceiveErrorHandling receive_error_handling;
+ TimeSpan retry_cycle_delay, ttl;
+ MsmqTransportSecurity transport_security =
+ new MsmqTransportSecurity ();
+
+ internal MsmqBindingElementBase ()
+ {
+ }
+
+ public Uri CustomDeadLetterQueue {
+ get { return custom_dead_letter_queue; }
+ set { custom_dead_letter_queue = value; }
+ }
+
+ public DeadLetterQueue DeadLetterQueue {
+ get { return dead_letter_queue; }
+ set { dead_letter_queue = value; }
+ }
+
+ public bool Durable {
+ get { return durable; }
+ set { durable = value; }
+ }
+
+ public bool ExactlyOnce {
+ get { return exactly_once; }
+ set { exactly_once = value; }
+ }
+
+ public int MaxRetryCycles {
+ get { return max_retry_cycles; }
+ set { max_retry_cycles = value; }
+ }
+
+ public MsmqTransportSecurity MsmqTransportSecurity {
+ get { return transport_security; }
+ }
+
+ public ReceiveErrorHandling ReceiveErrorHandling {
+ get { return receive_error_handling; }
+ set { receive_error_handling = value; }
+ }
+
+ public int ReceiveRetryCount {
+ get { return receive_retry_count; }
+ set { receive_retry_count = value; }
+ }
+
+ public TimeSpan RetryCycleDelay {
+ get { return retry_cycle_delay; }
+ set { retry_cycle_delay = value; }
+ }
+
+ public TimeSpan TimeToLive {
+ get { return ttl; }
+ set { ttl = value; }
+ }
+
+ public bool TransactedReceiveEnabled {
+ get { return tx_enabled; }
+ }
+
+ public bool UseMsmqTracing {
+ get { return use_msmq_trace; }
+ set { use_msmq_trace = value; }
+ }
+
+ public bool UseSourceJournal {
+ get { return use_source_journal; }
+ set { use_source_journal = value; }
+ }
+
+ public override T GetProperty<T> (BindingContext context)
+ {
+ if (typeof (T) is IBindingDeliveryCapabilities)
+ throw new NotImplementedException ();
+ if (typeof (T) is ISecurityCapabilities)
+ throw new NotImplementedException ();
+ return base.GetProperty<T> (context);
+ }
+
+ [MonoTODO]
+ void IPolicyExportExtension.ExportPolicy (MetadataExporter
exporter, PolicyConversionContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ void IWsdlExportExtension.ExportContract (WsdlExporter
exporter, WsdlContractConversionContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ void IWsdlExportExtension.ExportEndpoint (WsdlExporter
exporter, WsdlEndpointConversionContext endpointContext)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqBindingElementBase.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqMessageProperty.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqMessageProperty.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqMessageProperty.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,67 @@
+//
+// MsmqMessageProperty.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Channels
+{
+ public sealed class MsmqMessageProperty
+ {
+ public const string Name = "MsmqMessageProperty";
+
+ [MonoTODO]
+ public static MsmqMessageProperty Get (Message message)
+ {
+ throw new NotImplementedException ();
+ }
+
+ int abort_count, move_count;
+ DeliveryFailure? failure;
+ DeliveryStatus? delivery_status;
+
+ internal MsmqMessageProperty ()
+ {
+ }
+
+ public int AbortCount {
+ get { return abort_count; }
+ }
+
+ public int MoveCount {
+ get { return move_count; }
+ }
+
+ public DeliveryFailure? DeliveryFailure {
+ get { return failure; }
+ }
+
+ public DeliveryStatus? DeliveryStatus {
+ get { return delivery_status; }
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqMessageProperty.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqTransportBindingElement.cs
===================================================================
---
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqTransportBindingElement.cs
2007-07-05 08:37:38 UTC (rev 81376)
+++
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqTransportBindingElement.cs
2007-07-05 10:39:47 UTC (rev 81377)
@@ -0,0 +1,92 @@
+//
+// ITransactedBindingElement.cs
+//
+// Author: Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 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;
+using System.ServiceModel;
+
+namespace System.ServiceModel.Channels
+{
+ public sealed class MsmqTransportBindingElement : MsmqBindingElementBase
+ {
+ int max_pool_size;
+ QueueTransferProtocol queue_tr_protocol;
+ bool use_ad;
+
+ public MsmqTransportBindingElement ()
+ {
+ }
+
+ public int MaxPoolSize {
+ get { return max_pool_size; }
+ set { max_pool_size = value; }
+ }
+
+ public QueueTransferProtocol QueueTransferProtocol {
+ get { return queue_tr_protocol; }
+ set { queue_tr_protocol = value; }
+ }
+
+ public override string Scheme {
+ get { return "net.msmq"; }
+ }
+
+ [MonoLimitation ("ActiveDirectory is windows-only solution")]
+ public bool UseActiveDirectory {
+ get { return use_ad; }
+ set { use_ad = value; }
+ }
+
+ public override BindingElement Clone ()
+ {
+ return (MsmqTransportBindingElement) MemberwiseClone ();
+ }
+
+ [MonoTODO]
+ public override bool CanBuildChannelFactory<TChannel>
(BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override IChannelFactory<TChannel>
BuildChannelFactory<TChannel> (BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool CanBuildChannelListener<TChannel>
(BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override IChannelListener<TChannel>
BuildChannelListener<TChannel> (BindingContext context)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
Property changes on:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/MsmqTransportBindingElement.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on:
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/SecureMessageGenerator.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources
===================================================================
--- trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources
2007-07-05 08:37:38 UTC (rev 81376)
+++ trunk/olive/class/System.ServiceModel/System.ServiceModel.dll.sources
2007-07-05 10:39:47 UTC (rev 81377)
@@ -197,6 +197,7 @@
System.ServiceModel.Channels/ISecurityCapabilities.cs
System.ServiceModel.Channels/ISession.cs
System.ServiceModel.Channels/ISessionChannel.cs
+System.ServiceModel.Channels/ITransactedBindingElement.cs
System.ServiceModel.Channels/ITransportTokenAssertionProvider.cs
System.ServiceModel.Channels/InvalidChannelBindingException.cs
System.ServiceModel.Channels/LayeredCommunicationObject.cs
@@ -220,6 +221,9 @@
System.ServiceModel.Channels/MessageProperties.cs
System.ServiceModel.Channels/MessageSecurityBindingSupport.cs
System.ServiceModel.Channels/MessageVersion.cs
+System.ServiceModel.Channels/MsmqBindingElementBase.cs
+System.ServiceModel.Channels/MsmqMessageProperty.cs
+System.ServiceModel.Channels/MsmqTransportBindingElement.cs
System.ServiceModel.Channels/MtomMessageEncoder.cs
System.ServiceModel.Channels/MtomMessageEncoderFactory.cs
System.ServiceModel.Channels/MtomMessageEncodingBindingElement.cs
@@ -768,8 +772,15 @@
System.ServiceModel/MessageParameterAttribute.cs
System.ServiceModel/MessagePropertyAttribute.cs
System.ServiceModel/MessageSecurityOverHttp.cs
+System.ServiceModel/MessageSecurityOverMsmq.cs
System.ServiceModel/MessageSecurityOverTcp.cs
System.ServiceModel/MessageSecurityVersion.cs
+System.ServiceModel/MsmqBindingBase.cs
+System.ServiceModel/MsmqException.cs
+System.ServiceModel/MsmqPoisonMessageException.cs
+System.ServiceModel/MsmqTransportSecurity.cs
+System.ServiceModel/NetMsmqBinding.cs
+System.ServiceModel/NetMsmqSecurity.cs
System.ServiceModel/NetPeerTcpBinding.cs
System.ServiceModel/NetTcpBinding.cs
System.ServiceModel/NetTcpSecurity.cs
@@ -784,6 +795,7 @@
System.ServiceModel/PeerNodeAddress.cs
System.ServiceModel/PeerResolver.cs
System.ServiceModel/PeerResolverImpl.cs
+System.ServiceModel/PoisonMessageException.cs
System.ServiceModel/ProtocolException.cs
System.ServiceModel/QuotaExceededException.cs
System.ServiceModel/ReliableSession.cs
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches