Exemplo n.º 1
0
        private static uint logNumber = 0; // keeps track of how many log-able tasks have been performed

        public DataModel()
        {
            string        URL = "net.tcp://localhost:8100/DataService";
            NetTcpBinding tcp = new NetTcpBinding();
            ChannelFactory <SimpleDLL.DataServerInterface> foobFactory = new ChannelFactory <DataServerInterface>(tcp, URL);

            foob = foobFactory.CreateChannel();
        }
Exemplo n.º 2
0
        public DataModel()
        {
            //Open connection to data tier server
            NetTcpBinding tcp = new NetTcpBinding();
            string URL = "net.tcp://localhost:8100/DataService";

            ChannelFactory<Data_Tier.DataServerInterface> dataFactory;
            dataFactory = new ChannelFactory<DataServerInterface>(tcp, URL);
            data = dataFactory.CreateChannel();
        }
        public BusinessServer()
        {
            ChannelFactory <DataTier.DataServerInterface> cFactory;
            NetTcpBinding tcp = new NetTcpBinding();

            string URL = "net.tcp://localhost:8100/DataService";

            cFactory   = new ChannelFactory <DataServerInterface>(tcp, URL);
            dataServer = cFactory.CreateChannel();
        }
        private DataModel()
        {
            //Connect to the DataTier remote server and store in a local variable for use throughout the class.
            ChannelFactory <DataServerInterface> cFactory;
            NetTcpBinding tcp = new NetTcpBinding();

            string URL = "net.tcp://localhost:8100/DataService";

            cFactory   = new ChannelFactory <DataServerInterface>(tcp, URL);
            dataServer = cFactory.CreateChannel();
        }
Exemplo n.º 5
0
        private LogClass logger = LogClass.GetInstance();//Singlton logger class to log

        /*Creates a connection to the datatier*/
        public DataModel()
        {
            ChannelFactory <DataServerInterface> channelFactory;
            NetTcpBinding tcp = new NetTcpBinding();

            tcp.MaxReceivedMessageSize = 2147483647;

            string URL = "net.tcp://localhost:8100/DataService";

            channelFactory = new ChannelFactory <DataServerInterface>(tcp, URL);
            channel        = channelFactory.CreateChannel();
        }