• 大小: 0.09M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: WCF  http  tcp  通讯  下载  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;

namespace TESTWCF.HostServer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        ServiceHost host;

        
        private void button1_Click(object sender EventArgs e)
        {
            try
            {
                host = new ServiceHost(typeof(TESTWCF.HostServer.MyDataService));
                host.Opened += new EventHandler(host_Opened);
                host.Closed += new EventHandler(host_Closed);
                host.Open();
            }
            catch (System.Exception e

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        729  2008-01-18 10:25  TESTWCF.MyData\TESTWCF.MyClient\App.config

     文件      20480  2008-01-18 10:26  TESTWCF.MyData\TESTWCF.MyClient\bin\Debug\TESTWCF.MyClient.exe

     文件        729  2008-01-18 10:25  TESTWCF.MyData\TESTWCF.MyClient\bin\Debug\TESTWCF.MyClient.exe.config

     文件      26112  2008-01-18 10:26  TESTWCF.MyData\TESTWCF.MyClient\bin\Debug\TESTWCF.MyClient.pdb

     文件       5632  2005-12-08 14:51  TESTWCF.MyData\TESTWCF.MyClient\bin\Debug\TESTWCF.MyClient.vshost.exe

     文件        729  2008-01-18 10:25  TESTWCF.MyData\TESTWCF.MyClient\bin\Debug\TESTWCF.MyClient.vshost.exe.config

     文件      16384  2008-01-17 16:07  TESTWCF.MyData\TESTWCF.MyClient\bin\Debug\TESTWCF.MyData.dll

     文件      11776  2008-01-17 16:07  TESTWCF.MyData\TESTWCF.MyClient\bin\Debug\TESTWCF.MyData.pdb

     文件       1948  2008-01-18 10:25  TESTWCF.MyData\TESTWCF.MyClient\Form1.cs

     文件       2582  2008-01-17 14:28  TESTWCF.MyData\TESTWCF.MyClient\Form1.Designer.cs

     文件       5814  2008-01-17 14:28  TESTWCF.MyData\TESTWCF.MyClient\Form1.resx

     文件        842  2008-01-17 14:30  TESTWCF.MyData\TESTWCF.MyClient\obj\Debug\TESTWCF.MyClient.csproj.GenerateResource.Cache

     文件      20480  2008-01-18 10:26  TESTWCF.MyData\TESTWCF.MyClient\obj\Debug\TESTWCF.MyClient.exe

     文件        180  2008-01-17 16:07  TESTWCF.MyData\TESTWCF.MyClient\obj\Debug\TESTWCF.MyClient.Form1.resources

     文件      26112  2008-01-18 10:26  TESTWCF.MyData\TESTWCF.MyClient\obj\Debug\TESTWCF.MyClient.pdb

     文件        180  2008-01-17 16:07  TESTWCF.MyData\TESTWCF.MyClient\obj\Debug\TESTWCF.MyClient.Properties.Resources.resources

     文件        430  2008-01-18 10:27  TESTWCF.MyData\TESTWCF.MyClient\obj\TESTWCF.MyClient.csproj.FileList.txt

     文件       1079  2008-01-17 00:27  TESTWCF.MyData\TESTWCF.MyClient\obj\TESTWCF.MyClient.csproj.FileListAbsolute.txt

     文件        479  2008-01-17 00:06  TESTWCF.MyData\TESTWCF.MyClient\Program.cs

     文件       1204  2008-01-16 23:55  TESTWCF.MyData\TESTWCF.MyClient\Properties\AssemblyInfo.cs

     文件       2888  2008-01-16 23:55  TESTWCF.MyData\TESTWCF.MyClient\Properties\Resources.Designer.cs

     文件       5612  2008-01-16 23:55  TESTWCF.MyData\TESTWCF.MyClient\Properties\Resources.resx

     文件       1101  2008-01-16 23:55  TESTWCF.MyData\TESTWCF.MyClient\Properties\Settings.Designer.cs

     文件        249  2008-01-16 23:55  TESTWCF.MyData\TESTWCF.MyClient\Properties\Settings.settings

     文件       3648  2008-01-17 14:06  TESTWCF.MyData\TESTWCF.MyClient\TESTWCF.MyClient.csproj

     文件      16384  2008-01-17 16:07  TESTWCF.MyData\TESTWCF.MyData\bin\Debug\TESTWCF.MyData.dll

     文件      11776  2008-01-17 16:07  TESTWCF.MyData\TESTWCF.MyData\bin\Debug\TESTWCF.MyData.pdb

     文件        598  2008-01-17 16:07  TESTWCF.MyData\TESTWCF.MyData\Class1.cs

     文件      16384  2008-01-17 14:31  TESTWCF.MyData\TESTWCF.MyData\obj\Debug\Refactor\TESTWCF.MyData.dll

     文件      34449  2008-01-17 10:00  TESTWCF.MyData\TESTWCF.MyData\obj\Debug\ResolveAssemblyReference.cache

............此处省略64个文件信息

评论

共有 条评论