webserver

WCF Self-Host to access from internet

ⅰ亾dé卋堺 提交于 2020-08-10 20:12:48
问题 I am trying to create a service to consume it through the internet, but for some reason I cannot access it and I need help finding the error I am making. I leave the code for you to see. public class ServiceHost<T> : System.ServiceModel.ServiceHost { public ServiceHost(Type serviceType, params Uri[] baseAddresses) : base(serviceType, baseAddresses) { } public ServiceHost(object singletonInstance, params Uri[] baseAddresses) :base(singletonInstance, baseAddresses) { } protected ServiceHost() :