You've already forked linux-packaging-mono
Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
This commit is contained in:
@@ -483,12 +483,12 @@ namespace MonoTests.System.ServiceModel
|
||||
var host = new ServiceHost (typeof (OneWayService));
|
||||
host.AddServiceEndpoint (typeof (IOneWayService),
|
||||
new BasicHttpBinding (),
|
||||
new Uri ("http://localhost:8080"));
|
||||
new Uri ("http://localhost:30158"));
|
||||
host.Open ();
|
||||
try {
|
||||
var cf = new ChannelFactory<IOneWayService> (
|
||||
new BasicHttpBinding (),
|
||||
new EndpointAddress ("http://localhost:8080"));
|
||||
new EndpointAddress ("http://localhost:30158"));
|
||||
var ch = cf.CreateChannel ();
|
||||
ch.GiveMessage ("test");
|
||||
|
||||
|
@@ -159,7 +159,7 @@ namespace MonoTests.System.ServiceModel
|
||||
|
||||
[Test]
|
||||
public void ChannelDispatchers_NoDebug () {
|
||||
ServiceHost h = new ServiceHost (typeof (AllActions), new Uri ("http://localhost:8080"));
|
||||
ServiceHost h = new ServiceHost (typeof (AllActions), new Uri ("http://localhost:30158"));
|
||||
h.AddServiceEndpoint (typeof (AllActions).FullName, new BasicHttpBinding (), "address");
|
||||
|
||||
ServiceDebugBehavior b = h.Description.Behaviors.Find<ServiceDebugBehavior> ();
|
||||
@@ -173,7 +173,7 @@ namespace MonoTests.System.ServiceModel
|
||||
Assert.IsTrue (channelDispatcher.Endpoints.Count == 1, "#2");
|
||||
EndpointAddressMessageFilter filter = channelDispatcher.Endpoints [0].AddressFilter as EndpointAddressMessageFilter;
|
||||
Assert.IsNotNull (filter, "#3");
|
||||
Assert.IsTrue (filter.Address.Equals (new EndpointAddress ("http://localhost:8080/address")), "#4");
|
||||
Assert.IsTrue (filter.Address.Equals (new EndpointAddress ("http://localhost:30158/address")), "#4");
|
||||
Assert.IsFalse (filter.IncludeHostNameInComparison, "#5");
|
||||
Assert.IsTrue (channelDispatcher.Endpoints [0].ContractFilter is MatchAllMessageFilter, "#6");
|
||||
} finally {
|
||||
@@ -183,11 +183,11 @@ namespace MonoTests.System.ServiceModel
|
||||
|
||||
[Test]
|
||||
public void ChannelDispatchers_WithDebug () {
|
||||
ServiceHost h = new ServiceHost (typeof (AllActions), new Uri ("http://localhost:8080"));
|
||||
ServiceHost h = new ServiceHost (typeof (AllActions), new Uri ("http://localhost:30158"));
|
||||
h.AddServiceEndpoint (typeof (AllActions).FullName, new BasicHttpBinding (), "address");
|
||||
ServiceMetadataBehavior b = new ServiceMetadataBehavior ();
|
||||
b.HttpGetEnabled = true;
|
||||
b.HttpGetUrl = new Uri( "http://localhost:8080" );
|
||||
b.HttpGetUrl = new Uri( "http://localhost:30158" );
|
||||
h.Description.Behaviors.Add (b);
|
||||
h.Open ();
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace MonoTests.System.ServiceModel
|
||||
Assert.IsTrue (channelDispatcher.Endpoints.Count == 1, "#3");
|
||||
EndpointAddressMessageFilter filter = channelDispatcher.Endpoints [0].AddressFilter as EndpointAddressMessageFilter;
|
||||
Assert.IsNotNull (filter, "#4");
|
||||
Assert.IsTrue (filter.Address.Equals (new EndpointAddress ("http://localhost:8080")), "#5");
|
||||
Assert.IsTrue (filter.Address.Equals (new EndpointAddress ("http://localhost:30158")), "#5");
|
||||
Assert.IsFalse (filter.IncludeHostNameInComparison, "#6");
|
||||
Assert.IsTrue (channelDispatcher.Endpoints [0].ContractFilter is MatchAllMessageFilter, "#7");
|
||||
h.Close ();
|
||||
@@ -207,7 +207,7 @@ namespace MonoTests.System.ServiceModel
|
||||
public void SpecificActionTest ()
|
||||
{
|
||||
//EndpointDispatcher d = new EndpointDispatcher(
|
||||
ServiceHost h = new ServiceHost (typeof (SpecificAction), new Uri ("http://localhost:8080"));
|
||||
ServiceHost h = new ServiceHost (typeof (SpecificAction), new Uri ("http://localhost:30158"));
|
||||
h.AddServiceEndpoint (typeof (Action1Interface), new BasicHttpBinding (), "address");
|
||||
|
||||
h.Open ();
|
||||
@@ -222,7 +222,7 @@ namespace MonoTests.System.ServiceModel
|
||||
[Test]
|
||||
public void InitializeRuntimeBehaviors1 () {
|
||||
HostState st = new HostState ();
|
||||
ServiceHost h = new ServiceHost (typeof (SpecificAction2), new Uri ("http://localhost:8080"));
|
||||
ServiceHost h = new ServiceHost (typeof (SpecificAction2), new Uri ("http://localhost:30158"));
|
||||
h.AddServiceEndpoint (typeof (SpecificAction2), new BasicHttpBinding (), "temp");
|
||||
|
||||
h.Description.Behaviors.Add (new MyServiceBehavior (st, h));
|
||||
@@ -241,7 +241,7 @@ namespace MonoTests.System.ServiceModel
|
||||
[Test]
|
||||
public void InitializeRuntimeBehaviors2 () {
|
||||
HostState st = new HostState ();
|
||||
ServiceHost h = new ServiceHost (typeof (SpecificAction), new Uri ("http://localhost:8080"));
|
||||
ServiceHost h = new ServiceHost (typeof (SpecificAction), new Uri ("http://localhost:30158"));
|
||||
h.AddServiceEndpoint (typeof (Action1Interface), new BasicHttpBinding (), "temp");
|
||||
h.AddServiceEndpoint (typeof (Action2Interface), new BasicHttpBinding (), "temp2");
|
||||
|
||||
@@ -368,7 +368,7 @@ namespace MonoTests.System.ServiceModel
|
||||
public void AddServiceEndpoint_Directly ()
|
||||
{
|
||||
var host = new ServiceHost (typeof (DummyService));
|
||||
var address = new EndpointAddress ("http://localhost:8080");
|
||||
var address = new EndpointAddress ("http://localhost:30158");
|
||||
var binding = new BasicHttpBinding ();
|
||||
var contract = ContractDescription.GetContract (typeof (IDummyService));
|
||||
host.AddServiceEndpoint (new ServiceEndpoint (contract, binding, address));
|
||||
@@ -389,7 +389,7 @@ namespace MonoTests.System.ServiceModel
|
||||
public void AddServiceEndpoint_Directly_NullBinding ()
|
||||
{
|
||||
var host = new ServiceHost (typeof (DummyService));
|
||||
var address = new EndpointAddress ("http://localhost:8080");
|
||||
var address = new EndpointAddress ("http://localhost:30158");
|
||||
var contract = ContractDescription.GetContract (typeof (IDummyService));
|
||||
host.AddServiceEndpoint (new ServiceEndpoint (contract, null, address));
|
||||
}
|
||||
@@ -407,7 +407,7 @@ namespace MonoTests.System.ServiceModel
|
||||
public void AddServiceEndpoint_Directly_ContractMismatch ()
|
||||
{
|
||||
var host = new ServiceHost (typeof (DummyService));
|
||||
var address = new EndpointAddress ("http://localhost:8080");
|
||||
var address = new EndpointAddress ("http://localhost:30158");
|
||||
var binding = new BasicHttpBinding ();
|
||||
var contract = ContractDescription.GetContract (typeof (INotImplementedService));
|
||||
host.AddServiceEndpoint (new ServiceEndpoint (contract, binding, address));
|
||||
|
Reference in New Issue
Block a user