Exemplo n.º 1
0
        public static RuntimeServiceContext Create(string address)
        {
            var serviceHost = new RuntimeServiceHost();

            return(new RuntimeServiceContext(serviceHost)
            {
                Host = AddressUtility.GetIPAddress(address),
                Port = AddressUtility.GetPort(address)
            });
        }
Exemplo n.º 2
0
 private RuntimeServiceContext(RuntimeServiceHost serviceHost)
     : base(serviceHost)
 {
     this.serviceHost = serviceHost;
 }