Example #1
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;
 }
 /// <summary>
 /// This class handles appsetting assignment and provide information when running in a Service Fabric Mesh container,
 /// namely, Functionapp on Linux Consumption Plan.
 /// </summary>
 /// <param name="instanceManager">Allow KuduLite to interact with Service Fabric Mesh instance in Linux Consumption</param>
 /// <param name="settingsManager">Allow instance assignment to change application setting</param>
 /// <param name="meshPersistentFileSystem">Provides persistent storage for Linux Consumption</param>
 public LinuxConsumptionInstanceAdminController(ILinuxConsumptionInstanceManager instanceManager, IDeploymentSettingsManager settingsManager, IMeshPersistentFileSystem meshPersistentFileSystem)
 {
     _instanceManager          = instanceManager;
     _settingsManager          = settingsManager;
     _meshPersistentFileSystem = meshPersistentFileSystem;
 }
Example #3
0
 public FileSystemPathProvider(IMeshPersistentFileSystem persistentFileSystem)
 {
     _persistentFileSystem =
         persistentFileSystem ?? throw new ArgumentNullException(nameof(persistentFileSystem));
 }