You've already forked linux-packaging-mono
Imported Upstream version 5.20.0.180
Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
This commit is contained in:
parent
0e2d47d1c8
commit
0510252385
@ -430,7 +430,7 @@ namespace MonoTests.System.ServiceModel.Channels
|
||||
Binding b = new CustomBinding (be, new HttpTransportBindingElement ());
|
||||
ClientCredentials cred = new ClientCredentials ();
|
||||
cred.ClientCertificate.Certificate =
|
||||
new X509Certificate2 ("Test/Resources/test.pfx", "mono");
|
||||
new X509Certificate2 (TestResourceHelper.GetFullPathOfResource ("Test/Resources/test.pfx"), "mono");
|
||||
IChannelFactory<IReplyChannel> ch = b.BuildChannelFactory<IReplyChannel> (new Uri ("http://localhost:" + NetworkHelpers.FindFreePort ()), cred);
|
||||
try {
|
||||
ch.Open ();
|
||||
@ -458,7 +458,7 @@ namespace MonoTests.System.ServiceModel.Channels
|
||||
Binding b = new CustomBinding (be, new HttpTransportBindingElement ());
|
||||
ServiceCredentials cred = new ServiceCredentials ();
|
||||
cred.ServiceCertificate.Certificate =
|
||||
new X509Certificate2 ("Test/Resources/test.pfx", "mono");
|
||||
new X509Certificate2 (TestResourceHelper.GetFullPathOfResource ("Test/Resources/test.pfx"), "mono");
|
||||
IChannelListener<IReplyChannel> ch = b.BuildChannelListener<IReplyChannel> (new Uri ("http://localhost:" + NetworkHelpers.FindFreePort ()), cred);
|
||||
try {
|
||||
ch.Open ();
|
||||
@ -480,7 +480,7 @@ namespace MonoTests.System.ServiceModel.Channels
|
||||
be.EndpointSupportingTokenParameters.Endorsing.Add (
|
||||
new UserNameSecurityTokenParameters ());
|
||||
Binding b = new CustomBinding (be, new HttpTransportBindingElement ());
|
||||
X509Certificate2 cert = new X509Certificate2 ("Test/Resources/test.pfx", "mono");
|
||||
X509Certificate2 cert = new X509Certificate2 (TestResourceHelper.GetFullPathOfResource ("Test/Resources/test.pfx"), "mono");
|
||||
EndpointAddress ea = new EndpointAddress (new Uri ("http://localhost:" + NetworkHelpers.FindFreePort ()), new X509CertificateEndpointIdentity (cert));
|
||||
CalcProxy client = new CalcProxy (b, ea);
|
||||
client.ClientCredentials.UserName.UserName = "rupert";
|
||||
|
Reference in New Issue
Block a user