public PandemicBotStandard(IRouteHelper routeHelper,
                            IHandManagementHelper handManagementHelper, IResearchStationHelper researchStationHelper,
                            IEventCardHelper eventCardHelper, IKnowledgeShareHelper knowledgeShareHelper,
                            IMessageSender messageSender, MessageSenderConfiguration messageSenderConfiguration)
 {
     _routeHelper                = routeHelper;
     _handManagementHelper       = handManagementHelper;
     _researchStationHelper      = researchStationHelper;
     _eventCardHelper            = eventCardHelper;
     _knowledgeShareHelper       = knowledgeShareHelper;
     _messageSender              = messageSender;
     _messageSenderConfiguration = messageSenderConfiguration;
 }
Exemple #2
0
 public PandemicPlayerFactory(IRouteHelper routeHelper,
                              IResearchStationHelper researchStationHelper, IHandManagementHelper playerDeckHelper,
                              IEventCardHelper eventCardHelper, IKnowledgeShareHelper knowledgeShareHelper,
                              IMessageSender messageSender, MessageSenderConfiguration messageSenderConfiguration)
 {
     _routeHelper                = routeHelper;
     _researchStationHelper      = researchStationHelper;
     _playerDeckHelper           = playerDeckHelper;
     _eventCardHelper            = eventCardHelper;
     _knowledgeShareHelper       = knowledgeShareHelper;
     _messageSender              = messageSender;
     _messageSenderConfiguration = messageSenderConfiguration;
 }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RouterMiddleware"/> class.
        /// </summary>
        /// <param name="next">The next<see cref="RequestDelegate"/></param>
        /// <param name="routeHelper">The routeHelper<see cref="IRouteHelper"/></param>
        /// <param name="authenticator">The authenticator<see cref="IAuthenticator"/></param>
        /// <param name="exceptionTransformer">The exceptionTransformer<see cref="IExceptionTransformer"/></param>
        /// <param name="path">The path<see cref="string"/></param>
        public RouterMiddleware(
            RequestDelegate next,
            IRouteHelper routeHelper,
            IAuthenticator authenticator,
            IExceptionTransformer exceptionTransformer,
            string path = "routes.json")
        {
            this.next                 = next;
            this.routeHelper          = routeHelper;
            this.authenticator        = authenticator;
            this.exceptionTransformer = exceptionTransformer;

            this.routeHelper.LoadRoutes(path);
        }
Exemple #4
0
 public UriHelper(IRouteHelper routeHelper)
 {
     _routeHelper = routeHelper;
 }
 public ResearchStationHelper(IRouteHelper routeHelper)
 {
     _routeHelper = routeHelper;
 }
 public EventCardHelper(IRouteHelper routeHelper)
 {
     _routeHelper = routeHelper;
 }