Answer:
- UdpDiscoveryEndpoint
- ServiceBehaviorAttribute
static void Main(string[] args)
{
{
Uri StockURI = new Uri("http://localhost:8733/StockTicker")
var mytype = typeof(StockTickerService);
using (
{
}
var mytype = typeof(StockTickerService);
using (
- ServiceHost
- ServiceHost
{
host.AddServiceEndpoint(typeof(IStockTickerService), new WSHttpBinding(),"");
host.Description.Behaviors.Add(new
host.AddServiceEndpoint(new
host.Open();
Console.ReadLine();
host.Close();
}
host.Description.Behaviors.Add(new
- ServiceDiscoveryBehavior
host.AddServiceEndpoint(new
- DiscoveryEndpoint
host.Open();
Console.ReadLine();
host.Close();