コード例 #1
0
ファイル: WcfTests.cs プロジェクト: kascomp/CruiseControl.NET
 public void CleanUpCloseChannel()
 {
     var channel = new Wcf();
     channel.Endpoints.Add(new NetTcp { Address = "net.tcp://localhost/client" });
     channel.Initialise(null);
     channel.CleanUp();
 }
コード例 #2
0
ファイル: WcfTests.cs プロジェクト: kascomp/CruiseControl.NET
 public void InitialiseOpensTheWcfHost()
 {
     var channel = new Wcf();
     var address = "net.tcp://localhost/client";
     channel.Endpoints.Add(new NetTcp { Address = address });
     var opened = false;
     try
     {
         opened = channel.Initialise(null);
         Assert.IsTrue(opened);
         var connection = new ServerConnection(address, new NetTcpBinding());
         var canPing = connection.Ping();
         Assert.IsTrue(canPing);
     }
     finally
     {
         if (opened)
         {
             channel.CleanUp();
         }
     }
 }
コード例 #3
0
ファイル: WcfTests.cs プロジェクト: kascomp/CruiseControl.NET
 public void CleanUpDoesNothingIfNotOpen()
 {
     var channel = new Wcf();
     channel.CleanUp();
 }