CMIS-WS .NET tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12874 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Logneon
2009-01-23 10:30:06 +00:00
parent dedef025d6
commit eaccbb3bf9
95 changed files with 63712 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.ServiceModel.Channels;
using System.ServiceModel.Dispatcher;
using System.ServiceModel.Description;
namespace WcfCmisWSTests {
///
/// author: Dmitry Velichkevich
///
public class SoapRequestHeaderProcessorAttribute: Attribute, IEndpointBehavior {
private string userName;
private string password;
public SoapRequestHeaderProcessorAttribute(string userName, string password) {
this.userName = userName;
this.password = password;
}
void IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) {
clientRuntime.MessageInspectors.Add(new SoapRequestMassagesInspector(userName, password));
}
void IEndpointBehavior.AddBindingParameters(ServiceEndpoint endpoint,
BindingParameterCollection bindingParameters) {
}
void IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) {
}
void IEndpointBehavior.Validate(ServiceEndpoint endpoint) {
}
}
}