private IControlCenterService CreateService() { return(ChannelFactory.CreateChannel <IControlCenterService>(MinerServerHost, MinerServerPort)); }
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()); }
private IProfileService CreateService() { return(ChannelFactory.CreateChannel <IProfileService>(Server.MinerServerHost, Server.MinerServerPort)); }