void Start() { _userDatabase = Instance(); _terrainDatabase = TerrainDatabase.Instance(); _apiGatewayConfig = ApiGatewayConfig.Instance(); _xmlHelper = XmlHelper.Instance(); Debug.Log("***UDB*** Start!"); }
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); }
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()); }
public RequestCount(ApiGatewayConfig config) : base(config) { }
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>(); }
public LoggingMiddleware(RequestDelegate requestDelegate, ILogger logger, ApiGatewayConfig config, IEnumerable <RawHandler> handlers) : base(requestDelegate, logger, config, handlers) { }
public RoundRobin(ApiGatewayConfig config) : base(config) { }
public BalancerPolicy(ApiGatewayConfig config) { Config = config; }