Пример #1
0
 public SessionManagerClient(IOperationContextHelper operationContextHelper, string endpointAddress,
                             Guid sessionGuid)
 {
     _sessionGuid            = sessionGuid;
     _endpointAddress        = new Uri(endpointAddress);
     _operationContextHelper = operationContextHelper;
     operationContext        = _ => _operationContextHelper.Instance.SessionId = _;
 }
 public CheckRolePermissionsInvoker(GameSessions gameSessions, IOperationContextHelper operationContextHelper,
                                    IOperationInvoker invoker, MethodInfo methodInfo)
 {
     _gameSessions           = gameSessions;
     _operationContextHelper = operationContextHelper;
     _invoker    = invoker;
     _methodInfo = methodInfo;
 }
Пример #3
0
 public SessionManager(ILogger logger, IOperationContextHelper operationContextHelper, GameSessions gameSessions,
                       IUserDataAccessService userDataAccessService)
 {
     _logger = logger;
     _operationContextHelper = operationContextHelper;
     _gameSessions           = gameSessions;
     _userDataAccessService  = userDataAccessService;
 }
Пример #4
0
 public AdminManager(IOperationContextHelper operationContextHelper
                     , GameSessions gameSessions
                     , IPerformanceHelper performanceHelper
                     , IUserDataAccessService userDataAccessService
                     , SystemInfo systemInfo)
 {
     _gameSessions           = gameSessions;
     _performanceHelper      = performanceHelper;
     _userDataAccessService  = userDataAccessService;
     _systemInfo             = systemInfo;
     _operationContextHelper = operationContextHelper;
 }
Пример #5
0
        public GameManager(ILogger logger, IOperationContextHelper operationContextHelper, GameSessions gameSessions
                           , IMapperFactory mapperFactory
                           )
        {
            _logger = logger;
            _operationContextHelper = operationContextHelper;
            _gameSessions           = gameSessions;

            _mapperFactory = mapperFactory;

            _gameDataContractMapper    = _mapperFactory.Build <IGame, GameData>();
            _countersContractMapper    = _mapperFactory.Build <GameCash, Cash>();
            _fundsDriverContractMapper = _mapperFactory.Build <Item, Common.Contract.Items.Item>();
            _manualStepResultMapper    = _mapperFactory.Build <ManualStepResult, Contract.GameManager.ManualStepResult>();
        }
 public CheckRolePermissionsOperationBehavior(IOperationContextHelper operationContextHelper,
                                              GameSessions gameSessions)
 {
     _operationContextHelper = operationContextHelper;
     _gameSessions           = gameSessions;
 }
 public NoWcfGameManagerFactory(ILogger logger, IOperationContextHelper operationContextHelper, IUnityContainer unityContainer)
 {
     _logger = logger;
     _operationContextHelper = operationContextHelper;
     _unityContainer         = unityContainer;
 }