private IControlCenterService CreateService()
 {
     return(ChannelFactory.CreateChannel <IControlCenterService>(MinerServerHost, MinerServerPort));
 }
Example #2
0
        public static T CreateChannel <T>(Binding binding, string serviceHost, int port)
        {
            ChannelFactory <T> factory = new ChannelFactory <T>(binding, new EndpointAddress(new Uri(new Uri($"http://{serviceHost}:{port}/"), typeof(T).Name)));

            return(factory.CreateChannel());
        }
Example #3
0
 private IProfileService CreateService()
 {
     return(ChannelFactory.CreateChannel <IProfileService>(Server.MinerServerHost, Server.MinerServerPort));
 }