示例#1
0
 public GameClient(
     GameClientConfig config,
     IAuthHandlerFactory authHandlerFactory,
     IProtocolHandlerFactory protocolHandlerFactory)
 {
     this.config                 = config;
     this.authHandlerFactory     = authHandlerFactory;
     this.protocolHandlerFactory = protocolHandlerFactory;
     this.messageBroker          = new MessageBroker();
     this.state = GameClientState.Initial;
 }
 public EventHandlerFactory(
     IIndex <string, HttpClient> httpClients,
     IBigBrother bigBrother,
     IIndex <string, EventHandlerConfig> eventHandlerConfig,
     IIndex <string, WebhookConfig> webHookConfig,
     IAuthHandlerFactory authHandlerFactory)
 {
     _httpClients        = httpClients;
     _bigBrother         = bigBrother;
     _eventHandlerConfig = eventHandlerConfig;
     _authHandlerFactory = authHandlerFactory;
     _webHookConfig      = webHookConfig;
 }