예제 #1
0
        public void StartService()
        {
            CenterService centerService = new CenterService();

            centerService.InitCenterService(AppDomain.CurrentDomain.BaseDirectory + "//" + ConfigFile);

            Dictionary <Type, Type> serviceTypes = new Dictionary <Type, Type>();

            serviceTypes.Add(typeof(IFileTransferService), typeof(FileTransferService));
            serviceTypes.Add(typeof(ICenterService), typeof(CenterService));
            StartWCFService(serviceTypes, "22888");
        }