Example #1
0
 public ImportBatchRunner(ISystemService systemService, IBaseService mainService)
 {
     _systemService = systemService;
     service        = mainService;
     errors         = new List <T>();
     errorMessages  = new List <string>();
 }
Example #2
0
 public CommonController(ISystemService systemService
                         , IWebContext webContext
                         )
 {
     _systemService = systemService;
     _webContext    = webContext;
 }
Example #3
0
 public JournalOutService(IGDetailPlanetService gDetailPlanetService,
                          IGGeometryPlanetService geometryPlanetService,
                          ISystemService systemService,
                          IUTaskService uTaskService,
                          IUReportService uReportService,
                          IUSpyService uSpyService,
                          IMothershipService mothershipService,
                          ISpriteImages spriteImages,
                          ISynchronizer synchronizer,
                          IMapAdressService mapAdressService,
                          IUMotherJumpService motherJumpService,
                          IGameUserService gameUserService,
                          IStoreService storeService, ILocalizerService localizer)
 {
     _gDetailPlanetService  = gDetailPlanetService;
     _geometryPlanetService = geometryPlanetService;
     _systemService         = systemService;
     _uTaskService          = uTaskService;
     _uReportService        = uReportService;
     _uSpyService           = uSpyService;
     _mothershipService     = mothershipService;
     _spriteImages          = spriteImages;
     _synchronizer          = synchronizer;
     _mapAdressService      = mapAdressService;
     _motherJumpService     = motherJumpService;
     _gameUserService       = gameUserService;
     _storeService          = storeService;
     _localizer             = localizer;
 }
Example #4
0
        public User GetUserById(ulong userId, bool cached = false)
        {
            if (cached && _userCache.TryGetValue(userId, out User user))
            {
                return(user);
            }
            UserRequestMsg userRequestMsg = new UserRequestMsg();

            userRequestMsg.UserIdDetail = userId;
            MainMessage msg = new MainMessage();

            msg.UserMngMsg         = new UserMngMsg();
            msg.UserMngMsg.UserMsg = new UserMsg();
            msg.UserMngMsg.UserMsg.UserRequestMsg = userRequestMsg;
            MainMessage response = _api.OpenAPI.Networking.Send(msg, _api.OpenAPI.Config.MainServer);

            if (response.MessageTypeCase != MainMessage.MessageTypeOneofCase.UserMngMsg)
            {
                if (ISystemService.IsError(response))
                {
                    _log.Error(response.SystemMsg.ErrorMsg.ErrorMsg_);
                }
                return(null);
            }
            user = new User(response.UserMngMsg.UserMsg.UserDetailMsg);
            _userCache[userId] = user;
            return(user);
        }
Example #5
0
 public SettingsViewModel(IOptions <AppConfig> appConfig, IThemeSelectorService themeSelectorService, ISystemService systemService, IApplicationInfoService applicationInfoService)
 {
     _appConfig              = appConfig.Value;
     _themeSelectorService   = themeSelectorService;
     _systemService          = systemService;
     _applicationInfoService = applicationInfoService;
 }
 public EstateListService(IMothershipService motherService, ISystemService systemService,
                          IGDetailPlanetService detailPlanetService)
 {
     _motherService       = motherService;
     _systemService       = systemService;
     _detailPlanetService = detailPlanetService;
 }
Example #7
0
 //#Bonsai Snippets - Declarations
 public override void SetRepositories()
 {
     _Service = new SystemService <SystemViewModel>((U, C, A) =>
                                                    ExecuteQueryWithReturnTypeAndNetworkAccessAsync <SystemViewModel>(U, C, A));
     _Repository = new SystemRepository <SystemViewModel>(_MasterRepo, _Service);
     //#Bonsai Snippets - ServicedRepos
 }
 public SystemController(ISystemService systemService, FileUploadHelper fileUploadHelper, MvcHelper mvcHelper, SystemConfigModel configModel)
 {
     _systemService    = systemService;
     _fileUploadHelper = fileUploadHelper;
     _mvcHelper        = mvcHelper;
     _configModel      = configModel;
 }
Example #9
0
        private static void TurnOff(ISystemService apas, int channel)
        {
            if (channel < 0 || channel > 4)
            {
                var err = "通道参数错误,通道值必须为0 - 4。";
                throw new Exception(err);
            }

            using (var iic = new GY7501.GY7501())
            {
                if (channel > 0)
                {
                    // turn off the specified channel.
                    iic.DisableTx(channel);
                }
                else
                {
                    // turn off all channels.
                    for (int i = 0; i < 4; i++)
                    {
                        iic.DisableTx(i);
                        Thread.Sleep(100);
                    }
                }
            }
        }
Example #10
0
 public LogController(ILogService logService, ILevelService levelService, ISystemService systemService, IMapper mapper)
 {
     _logService    = logService;
     _levelService  = levelService;
     _systemService = systemService;
     _mapper        = mapper;
 }
Example #11
0
        /// <summary>
        /// Checks the built in service.
        /// </summary>
        private void CheckBuiltInService()
        {
            ISystemService systemService = this[typeof(ISystemService)] as ISystemService;

            systemService.InspectService(typeof(IEventDispatcher));
            systemService.InspectService(typeof(ISystemService));
        }
 public HomeController(IHostingEnvironment env, IApplicationContext applicationContext, ISystemService systemService, IWebService webService)
 {
     _env = env;
     _applicationContext = applicationContext;
     _systemService      = systemService;
     _webService         = webService;
 }
Example #13
0
 public FileController(IMessageService messageService, ISystemService systemService, IFileDialogService fileDialogService, ISettingsService settingsService, IShellService shellService, 
     FileService fileService, ExportFactory<SaveChangesViewModel> saveChangesViewModelFactory, IRichTextDocumentType richTextDocumentType, IXpsExportDocumentType xpsExportDocumentType)
 {
     this.messageService = messageService;
     this.systemService = systemService;
     this.fileDialogService = fileDialogService;
     this.shellService = shellService;
     this.fileService = fileService;
     this.saveChangesViewModelFactory = saveChangesViewModelFactory;
     documentTypes = new() { richTextDocumentType, xpsExportDocumentType };
     newCommand = new DelegateCommand(NewCommand);
     openCommand = new DelegateCommand(OpenCommand);
     closeCommand = new DelegateCommand(CloseCommand, CanCloseCommand);
     saveCommand = new DelegateCommand(SaveCommand, CanSaveCommand);
     saveAsCommand = new DelegateCommand(SaveAsCommand, CanSaveAsCommand);
     settings = settingsService.Get<AppSettings>();
     this.fileService.NewCommand = newCommand;
     this.fileService.OpenCommand = openCommand;
     this.fileService.CloseCommand = closeCommand;
     this.fileService.SaveCommand = saveCommand;
     this.fileService.SaveAsCommand = saveAsCommand;
     recentFileList = settings.RecentFileList ?? new RecentFileList();
     this.fileService.RecentFileList = recentFileList;
     fileService.PropertyChanged += FileServicePropertyChanged;
 }
Example #14
0
 public AuditingFilter(IOptionsMonitor <AdminOptions> optionsAccessor, IAuditInfoService auditInfoService, LoginInfo loginInfo, ISystemService systemService)
 {
     _options          = optionsAccessor.CurrentValue;
     _auditInfoService = auditInfoService;
     _loginInfo        = loginInfo;
     _systemService    = systemService;
 }
Example #15
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="systemService"></param>
 public ProcessMonitor(ISystemService systemService)
 {
     this.systemService           = systemService;
     this.doesGw2HaveFocus        = false;
     this.isAdminRightsErrorShown = false;
     this.refreshTimer            = new Timer(this.Refresh, null, REFRESH_INTERVAL, REFRESH_INTERVAL);
 }
Example #16
0
        private MainMessage RoomExit(ulong msgId, ulong clientId, RoomExit roomExit)
        {
            _log.Debug("In RoomExit method.");
            int   roomId = (int)roomExit.RoomId;
            ulong?userId = _api.Services.User.GetUserIdByClientId(clientId);

            if (!userId.HasValue || roomId >= _roomList.Count || _roomList[roomId] == null)
            {
                return(ISystemService.CreateErrorMessage(msgId, 0, 0, "Unable to match client ID to any user."));
            }
            lock (_roomList[roomId])
            {
                int idx = _roomList[roomId].Players.FindIndex(x => x == userId.Value);
                if (idx < 0)
                {
                    return(ISystemService.CreateErrorMessage(msgId, 0, 0, "Your client is not connected to this room."));
                }
                Room room = _roomList[roomId];
                room.Players.RemoveAt(idx);
                room.LastActivity = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
                OnUserDisconnected(userId.Value, room.Id, "Disconnected");
                _user2Room[userId.Value] = null;
                _log.Info($"User with id '{userId.Value}' exited room '{room.Name}'.");
            }
            return(ISystemService.CreateOkMessage(msgId));
        }
 public LibraryService(ISystemService systemService, ICatalogService catalogService, IList <IRack> racks = null, ISet <IBook> books = null)
 {
     this.SystemService  = systemService;
     this.CatalogService = catalogService;
     this.Racks          = racks ?? new List <IRack>();
     this.Books          = books ?? new HashSet <IBook>();
 }
Example #18
0
        private MainMessage RoomEnter(ulong msgId, ulong clientId, RoomEnter roomEnter)
        {
            _log.Debug("In RoomEnter method.");
            int roomId = (int)roomEnter.RoomId;

            if (roomId >= _roomList.Count || _roomList[roomId] == null)
            {
                return(ISystemService.CreateErrorMessage(msgId, 0, 0, "There is no such room with this ID."));
            }
            lock (_roomList[roomId])
            {
                Room room = _roomList[roomId];
                if (room.Capacity <= room.Players.Count)
                {
                    return(ISystemService.CreateErrorMessage(msgId, 0, 0, "Room is full."));
                }
                ulong?userId = _api.Services.User.GetUserIdByClientId(clientId);
                if (!userId.HasValue)
                {
                    return(ISystemService.CreateErrorMessage(msgId, 0, 0, "Unable to match client ID to any user."));
                }
                room.Players.Add(userId.Value);
                room.LastActivity        = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
                _user2Room[userId.Value] = (uint?)roomId;
                OnUserConnected(userId.Value, room.Id);
                _log.Info($"User with id '{userId.Value}' entered room '{room.Name}'.");
                MainMessage response = new MainMessage();
                response.RoomMsg            = new RoomMsg();
                response.RoomMsg.RoomDetail = room.ToNetworkModel();
                return(response);
            }
        }
Example #19
0
        private IRoleService _roleService;  //2017-05-31 wnn

        /// <summary>
        /// 位置导入 2017-06-05 wnn
        /// </summary>
        /// <param name="userService"></param>
        /// <param name="importHistoryService"></param>
        /// <param name="unImportAssetsService"></param>
        public DtPImport(ISystemService sysService, IImportHistoryService importHistoryService, IUnImportAssetsService unImportAssetsService, IRoleService roleService)
        {
            _sysService            = sysService;
            _importHistoryService  = importHistoryService;
            _unImportAssetsService = unImportAssetsService;
            _roleService           = roleService;
        }
        public PluginDemo(ISystemService APASService) : base(Assembly.GetExecutingAssembly(), APASService)
        {
            var config = GetAppConfig();

            param1 = config.AppSettings.Settings["Param1"].Value;

            TestResult = new DataPerChannel[MaxChannel];

            // Set Ref. optical power to default value
            for (int i = 0; i < MaxChannel; i++)
            {
                TestResult[i] = new DataPerChannel();

                if (double.TryParse(config.AppSettings.Settings[$"Ref_dBm_{i}"].Value, out double refPower))
                {
                    TestResult[i].Reference_dBm = refPower;
                }
                else
                {
                    TestResult[i].Reference_dBm = 0;
                }
            }

            this.UserView             = new PluginDemoView();
            this.UserView.DataContext = this;

            this.HasView = true;
        }
Example #21
0
 public ItemsController(IItemService service, ISystemService systemService, ITypeService typeService, IUserItemService userItemService)
 {
     this.service         = service;
     this.systemService   = systemService;
     this.typeService     = typeService;
     this.userItemService = userItemService;
 }
Example #22
0
        public MainMessage HandleMessage(MainMessage msg)
        {
            _log.Debug("In HandleMessage method.");
            RoomMsg roomMsg = msg.RoomMsg;

            switch (roomMsg.MessageTypeCase)
            {
            case RoomMsg.MessageTypeOneofCase.RoomCreate:
                return(RoomCreate(msg.MsgId, roomMsg.RoomCreate));

            case RoomMsg.MessageTypeOneofCase.RoomEnter:
                return(RoomEnter(msg.MsgId, msg.ClientId, roomMsg.RoomEnter));

            case RoomMsg.MessageTypeOneofCase.RoomExit:
                return(RoomExit(msg.MsgId, msg.ClientId, roomMsg.RoomExit));

            case RoomMsg.MessageTypeOneofCase.RoomQuery:
                switch (roomMsg.RoomQuery.RoomQueryCase)
                {
                case RoomQuery.RoomQueryOneofCase.RoomDetailId:
                    return(RoomDetail(roomMsg.RoomQuery.RoomDetailId));

                case RoomQuery.RoomQueryOneofCase.RoomListQuery:
                    return(RoomList(roomMsg.RoomQuery.RoomListQuery));

                default:
                    return(ISystemService.CreateErrorMessage(msg.MsgId, 0, 0, "Invalid Operation."));
                }

            default:
                return(ISystemService.CreateErrorMessage(msg.MsgId, 0, 0, "Invalid Operation."));
            }
        }
Example #23
0
        private MainMessage HandleListRoomUsers(MainMessage msg)
        {
            ulong?userId = _clientId2UserId[msg.ClientId];

            if (!userId.HasValue)
            {
                return(ISystemService.CreateErrorMessage(msg.MsgId, 0, 0, "Unauthorized request."));
            }
            uint?roomId = _api.Services.Room.RoomByUserId(userId.Value);

            if (!roomId.HasValue)
            {
                return(ISystemService.CreateErrorMessage(msg.MsgId, 0, 0, "User must be connected to some Room."));
            }
            ulong[] users = _api.Services.Room.GetConnectedUsers(roomId.Value);
            if (users == null)
            {
                users = new ulong[0];
            }
            UserListMsg userListMsg = new UserListMsg();

            userListMsg.Users.AddRange(users.Select(x => User.Get(x)).Where(x => x != null).Select(x => x.ToMessage()));
            MainMessage response = new MainMessage();

            response.UserMngMsg                     = new UserMngMsg();
            response.UserMngMsg.UserMsg             = new UserMsg();
            response.UserMngMsg.UserMsg.UserListMsg = userListMsg;
            return(response);
        }
Example #24
0
 public SystemController(ISystemService systemService, IOptionsMonitor <ModuleCommonOptions> optionsMonitor, FileUploadHelper fileUploadHelper, MvcHelper mvcHelper)
 {
     _systemService    = systemService;
     _fileUploadHelper = fileUploadHelper;
     _mvcHelper        = mvcHelper;
     _options          = optionsMonitor.CurrentValue;
 }
 public HomeController(
     IUserService userService,
     ISystemService systemService)
 {
     _userService   = userService;
     _systemService = systemService;
 }
Example #26
0
        public ulong?GetUserIdByClientId(ulong clientId, bool cached = false)
        {
            if (cached && _clientId2UserId.TryGetValue(clientId, out ulong?val))
            {
                return(val);
            }
            UserRequestMsg userRequestMsg = new UserRequestMsg();

            userRequestMsg.UserByClientId = clientId;
            MainMessage msg = new MainMessage();

            msg.UserMngMsg         = new UserMngMsg();
            msg.UserMngMsg.UserMsg = new UserMsg();
            msg.UserMngMsg.UserMsg.UserRequestMsg = userRequestMsg;
            MainMessage response = _api.OpenAPI.Networking.Send(msg, _api.OpenAPI.Config.MainServer);

            if (ISystemService.IsError(response))
            {
                _log.Error(response.SystemMsg.ErrorMsg.ErrorMsg_);
                return(null);
            }
            User user = new User(response.UserMngMsg.UserMsg.UserDetailMsg);

            _userCache[user.Id]        = user;
            _clientId2UserId[clientId] = user.Id;
            return(user.Id);
        }
Example #27
0
 public SettingsViewModel(AppConfig config, IThemeSelectorService themeSelectorService, ISystemService systemService, IApplicationInfoService applicationInfoService)
 {
     _config = config;
     _themeSelectorService   = themeSelectorService;
     _systemService          = systemService;
     _applicationInfoService = applicationInfoService;
 }
Example #28
0
        //public  SystemMenuController(ISystemService sservice)
        //{
        //    _sservice = sservice;
        //}

        /// <summary>
        /// 获取菜单
        /// </summary>
        /// <returns></returns>
        public static string GetMenu()
        {
            if (_sservice == null)
            {
                _sservice = new SystemService();
            }
            string menu = "";

            if (MyContext.CurrentLoginUser != null)
            {
                int user = MyContext.CurrentLoginUser.ID;
                List <SYS_RIGHT> list = _sservice.GetAllRight(user);
                var menu1             = list.Where(c => c.PARENT_ID == 0);
                foreach (var s in menu1)
                {
                    if ((list.Count(r => r.PARENT_ID == s.RIGHT_ID) > 0))    //有子节点
                    {
                        menu += string.Format("<li><a href=\"javascript:;\"><i class=\"fa fa-{0}\"></i><span>{1}</span></a><ul class=\"acc-menu\">", s.MENU_ICON, s.RIGHT_NAME);
                        menu += GetParentMenu(list, s.RIGHT_ID);
                        menu += "</ul></li>";
                    }
                    else  //无子节点
                    {
                        menu += string.Format("<li><a href=\"{0}\"><i class=\"fa fa-{1}\"></i><span>{2}</span></a></li>", s.URL_LINK_TO == null ? "#" : s.URL_LINK_TO, s.MENU_ICON, s.RIGHT_NAME);
                    }
                }
            }
            return(@menu);
        }
Example #29
0
        public MainMessage HandleMessage(MainMessage msg)
        {
            AppMsg appMsg = msg.AppMsg;
            ulong  appId  = appMsg.AppId;

            if (!_appInstances.ContainsKey(appId))
            {
                return(ISystemService.CreateErrorMessage(msg.MsgId, 0, 0, "No handler could be found for this event."));
            }
            MainMessage response = new MainMessage();

            response.AppMsg       = new AppMsg();
            response.AppMsg.AppId = appId;
            byte[] data = appMsg.Data.ToByteArray();
            try
            {
                byte[] responseData = _appInstances[appId].HandleMessage(data, data.Length, new MsgContext(msg));
                if (responseData != null)
                {
                    response.AppMsg.Data = ByteString.CopyFrom(responseData);
                }
            }
            catch (Exception e)
            {
                _log.Error(e);
                return(ISystemService.CreateErrorMessage(msg.MsgId, 0, 0, e.Message));
            }
            return(response);
        }
Example #30
0
 public CommandHandler(IPrerequisiteChecker prerequisiteChecker,
                       ISystemService systemService,
                       ICommand[] commands)
 {
     _commands = commands.OrderByDescending(x => x.GetCommandWords().Length).ToArray();
     _prerequisiteChecker = prerequisiteChecker;
     _systemService = systemService;
 }
 public ApplicationSettingsService(ISystemService systemService,
                                   IFileSystemService fileSystemService,
                                   ISerializationService serializationService)
 {
     _systemService = systemService;
     _fileSystemService = fileSystemService;
     _serializationService = serializationService;
 }
 public SettingsViewModel(AppConfig config, IThemeSelectorService themeSelectorService, ISystemService systemService, IUserDataService userDataService, IIdentityService identityService)
 {
     _config = config;
     _themeSelectorService = themeSelectorService;
     _systemService        = systemService;
     _userDataService      = userDataService;
     _identityService      = identityService;
 }
 public NotificationService(string emailTemplatesFolder, 
     IRepository repository,
     ISystemService systemService,
     IEmailSender emailSender)
 {
     this.emailTemplatesFolder = emailTemplatesFolder;
     this.repository = repository;
     this.systemService = systemService;
     this.emailSender = emailSender;
 }
Example #34
0
 public ProcessMonitor(ISystemService systemService, IPlayerService playerService, EventAggregator eventAggregator)
 {
     this.systemService = systemService;
     this.playerService = playerService;
     this.IsGw2Running = false;
     this.DoesGw2HaveFocus = false;
     this.currentMapId = -1;
     this.isAdminRightsErrorShown = false;
     this.eventAggregator = eventAggregator;
     
 }
    public WebMailService()
    {
        m_ConfigHelper = new ConfigHelper();
        m_SystemFactory = new SystemFactory();
        m_SystemService = m_SystemFactory.GetSystemService();

        m_MailVO = m_SystemService.GetSystemParamByRoot();

        bool enableSSL = m_MailVO.EnableSSL;
        int port = 25;

        if (m_MailVO.MailSmtp.IndexOf("gmail") != -1)
        {
            enableSSL = true;
            port = 587;
        }
        else if (!string.IsNullOrEmpty(m_MailVO.MailPort))
        {
            port = int.Parse(m_MailVO.MailPort);
        }

        m_MailService = new MailService(m_MailVO.MailSmtp, port, enableSSL, m_MailVO.Account, m_MailVO.Password);
    }
Example #36
0
        public ShellViewModel(
            ISystemService systemService,
            ISettingsViewController settingsViewController,
            GeneralSettingsViewModel generalSettingsVm,
            HotkeySettingsViewModel hotkeySettingsVm,
            CompositionContainer container,
            EventAggregator eventAggregator,
            ProcessMonitor processMonitor)
        {
            this.MainMenu = new ObservableCollection<IMenuItem>();
            this.container = container;

            generalSettingsVm.InitializeHotkeyCommandHandlers();

            this.hotkeySettingsVm = hotkeySettingsVm;
            this.hotkeySettingsVm.InitializeHotkeys();

            this.settingsViewController = settingsViewController;
            this.settingsViewController.Initialize();

            // Initialize the process monitor
            GW2PAO.Views.OverlayWindow.EventAggregator = eventAggregator;

            // Initialize shutdown handling
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Start the game type monitor to monitor for player entering PvE/WvW
            this.processMonitor = processMonitor;
            this.processMonitor.Start();

            Properties.Settings.Default.PropertyChanged += (o, e) => this.OnPropertyChanged(() => this.IsOverlayMenuIconVisible);
            eventAggregator.GetEvent<GW2ProcessStarted>().Subscribe(o => this.OnPropertyChanged(() => this.IsOverlayMenuIconVisible));
            eventAggregator.GetEvent<GW2ProcessClosed>().Subscribe(o => this.OnPropertyChanged(() => this.IsOverlayMenuIconVisible));
            eventAggregator.GetEvent<GW2ProcessFocused>().Subscribe(o => this.OnPropertyChanged(() => this.IsOverlayMenuIconVisible));
            eventAggregator.GetEvent<GW2ProcessLostFocus>().Subscribe(o => this.OnPropertyChanged(() => this.IsOverlayMenuIconVisible));
        }
Example #37
0
 public PriceController(ISystemService systemService, IPriceService service)
 {
     _systemService = systemService;
     _service = service;
 }
Example #38
0
 public HomeController(ISystemService systemService)
 {
     _systemService = systemService;
 }
 public SettingController(ISystemService systemService)
 {
     this.systemService = systemService;
 }
Example #40
0
 public StockOutController(ISystemService systemService, IStockOutService service)
 {
     _systemService = systemService;
     _service = service;
 }
 public StockReturnController(ISystemService systemService, IStockReturnService service)
 {
     _systemService = systemService;
     _service = service;
 }
Example #42
0
 public AjaxController(ISystemService systemService, IStockService stockService)
 {
     _systemService = systemService;
     _stockService = stockService;
 }
Example #43
0
 public UserController(ISystemService systemService, IUserService service)
 {
     _systemService = systemService;
     _service = service;
 }
Example #44
0
 public StockInController(ISystemService systemService, IStockInService service, IPOService poService)
 {
     _systemService = systemService;
     _service = service;
     _peservice = poService;
 }
Example #45
0
 public SystemBll(ISystemService systemService, ISysMenuService SysMenuService, ISysPrivilegeService sysPrivilegeService)
 {
     this.systemService = systemService;
     this.SysMenuService = SysMenuService;
     this.sysPrivilegeService = sysPrivilegeService;
 }
 public RequisitionController(ISystemService systemService, IRequisitionService service)
 {
     _systemService = systemService;
     _service = service;
 }
 public ListTaxReportingCategories(ISystemService systemService)
 {
     _systemService = systemService;
 }
 public AccountingController(ISystemService systemService, IAccountingService service)
 {
     _systemService = systemService;
     _service = service;
 }
 public ReActiveStockController(ISystemService systemService, IStockService service)
 {
     _systemService = systemService;
     _service = service;
 }
Example #50
0
 public ProjectController(ISystemService systemService, IProjectService service)
 {
     _systemService = systemService;
     _service = service;
 }
 public UserController(IUserService userService, ISystemService systemService)
 {
     this.userService = userService;
     this.systemService = systemService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemComponentInspector"/> class.
 /// </summary>
 /// <param name="systemManager">The system manager.</param>
 public SystemComponentInspector(ISystemService systemManager)
 {
     this.systemManager = systemManager;
 }
        public ZoneCompletionController(IZoneService zoneService, IPlayerService playerService, ISystemService systemService, IHasZoneName zoneNameObject, ZoneCompletionUserData userData)
        {
            logger.Debug("Initializing Zone Completion Controller");
            this.zoneService = zoneService;
            this.playerService = playerService;
            this.systemService = systemService;
            this.zoneNameObject = zoneNameObject;
            this.isStopped = false;

            this.CharacterPosition = new API.Data.Entities.Point();
            this.CameraDirection = new API.Data.Entities.Point();

            this.UserData = userData;

            // Initialize refresh timers
            this.zoneRefreshTimer = new Timer(this.RefreshZone);
            this.ZoneRefreshInterval = 1000;
            this.itemLocationsRefreshTimer = new Timer(this.RefreshLocations);
            this.LocationsRefreshInterval = 250; // TODO: Tweak this until we get good performance without sucking up the CPU

            this.startCallCount = 0;
            this.CurrentMapID = -1;
            logger.Info("Zone Completion Controller initialized");
        }
 public ListAccountTypes(ISystemService systemService)
 {
     _systemService = systemService;
 }
 public void TestCaseInit()
 {
     m_SystemFactory = new SystemFactory();
     m_SystemService = m_SystemFactory.GetSystemService();
 }
Example #56
0
 public StoreController(ISystemService systemService, IStoreService service)
 {
     _systemService = systemService;
     _service = service;
 }
Example #57
0
 public ReportController(ISystemService systemService)
 {
     _systemService = systemService;
 }
 public SystemController(ISystemService systemServiceImpl)
 {
     _systemServiceImpl = systemServiceImpl;
 }
Example #59
0
 public SupplierController(ISystemService systemService, ISupplierService service)
 {
     _systemService = systemService;
     _service = service;
 }
Example #60
0
 public ShowSettings(ISystemService systemService)
 {
     _systemService = systemService;
 }