public async Task Invoke(HttpContext httpContext, ILinuxConsumptionEnvironment environment)
        {
            if (environment.DelayRequestsEnabled)
            {
                await environment.DelayCompletionTask;
            }

            await _next.Invoke(httpContext);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Create a manager to specialize KuduLite when it is running in Service Fabric Mesh
 /// </summary>
 /// <param name="linuxConsumptionEnv">Environment variables</param>
 public LinuxConsumptionInstanceManager(ILinuxConsumptionEnvironment linuxConsumptionEnv)
 {
     _linuxConsumptionEnv = linuxConsumptionEnv;
     _client = new HttpClient();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a manager to specialize KuduLite when it is running in Service Fabric Mesh
 /// </summary>
 /// <param name="linuxConsumptionEnv">Environment variables</param>
 /// <param name="meshPersistentFileSystem">Provides persistent file storage</param>
 public LinuxConsumptionInstanceManager(ILinuxConsumptionEnvironment linuxConsumptionEnv, IMeshPersistentFileSystem meshPersistentFileSystem)
 {
     _linuxConsumptionEnv      = linuxConsumptionEnv;
     _meshPersistentFileSystem = meshPersistentFileSystem;
 }