WCF_PRACTICE.rar

 

 

以下插入(其中一个程序的)一些关键代码示例:

服务端:

定义接口

int y);
}
}

 

继承接口

return x + y;
}
}
}

null)
myHost.Close();
}
}
}

 

客户端:

);
}
}
Console.ReadLine();
}
}
}

 

app.config :

 />
</client>
</system.serviceModel>
</configuration>

相关文章: