Пример #1
0
 void Start()
 {
     _userDatabase     = Instance();
     _terrainDatabase  = TerrainDatabase.Instance();
     _apiGatewayConfig = ApiGatewayConfig.Instance();
     _xmlHelper        = XmlHelper.Instance();
     Debug.Log("***UDB*** Start!");
 }
Пример #2
0
 public static ApiGatewayConfig Instance()
 {
     if (!_apiGatewayConfig)
     {
         _apiGatewayConfig = FindObjectOfType(typeof(ApiGatewayConfig)) as ApiGatewayConfig;
         if (!_apiGatewayConfig)
         {
             Debug.LogError("There needs to be one active _apiGatewayConfig script on a GameObject in your scene.");
         }
     }
     return(_apiGatewayConfig);
 }
Пример #3
0
        private void ConfigureServices(IServiceCollection serviceCollection)
        {
            serviceCollection.AddTransient <IEnvironmentWrapper, EnvironmentWrapper>();
            serviceCollection.AddTransient <ILambdaService, LambdaService>();
            serviceCollection.AddTransient <IResponseWrapper, ResponseWrapper>();

            serviceCollection.AddTransient <IDynamoDbContextWrapper, DynamoDbContextWrapper>(
                x => DynamoDbConfig.CreateConfiguredDbContextWrapper());
            serviceCollection.AddTransient <IAmazonApiGatewayManagementApi, AmazonApiGatewayManagementApiClient>(
                x => ApiGatewayConfig.CreateConfiguredApiGatewayManagementApiClient());
            serviceCollection.AddTransient <IAmazonIotData, AmazonIotDataClient>(
                x => IotConfig.CreateAmazonIotDataClient());
        }
Пример #4
0
 public RequestCount(ApiGatewayConfig config) : base(config)
 {
 }
Пример #5
0
 public BalancerMiddleware(RequestDelegate requestDelegate, ILogger logger, ApiGatewayConfig config, IEnumerable <RawHandler> handlers, BalancerDispatcher balancerDispatcher)
     : base(requestDelegate, logger, config, handlers)
 {
     dispatcher = balancerDispatcher;
     data       = new Dictionary <string, BalancerData>();
 }
Пример #6
0
 public LoggingMiddleware(RequestDelegate requestDelegate, ILogger logger, ApiGatewayConfig config, IEnumerable <RawHandler> handlers)
     : base(requestDelegate, logger, config, handlers)
 {
 }
Пример #7
0
 public RoundRobin(ApiGatewayConfig config) : base(config)
 {
 }
Пример #8
0
 public BalancerPolicy(ApiGatewayConfig config)
 {
     Config = config;
 }