Код: Выделить всё
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
public class ECConfigService : IECConfigService
Код: Выделить всё
System.Web.Routing.RouteTable.Routes.Add(
new System.ServiceModel.Activation.ServiceRoute(
"ECConfigService",
new System.ServiceModel.Activation.WebServiceHostFactory(),
typeof(ECConfigService.ECConfigService)));
В идеале мне нужен способ определения во время выполнения (инициализации). чтобы определить, разрешен ли HTTP, но если мне придется жестко запрограммировать только HTTPS, это будет приемлемо.
Подробнее здесь: https://stackoverflow.com/questions/787 ... -http-only