public static EnvMode Parse(CharacteristicSet set) { var mode = new EnvMode(); mode.Platform = mode.Platform.Mutate(set); mode.Jit = mode.Jit.Mutate(set); mode.Runtime = mode.Runtime.Mutate(set); mode.Affinity = mode.Affinity.Mutate(set); mode.Gc = GcMode.Parse(set); return(mode); }
public static GcMode Parse(CharacteristicSet set) { var mode = new GcMode(); mode.Server = mode.Server.Mutate(set); mode.Concurrent = mode.Concurrent.Mutate(set); mode.CpuGroups = mode.CpuGroups.Mutate(set); mode.Force = mode.Force.Mutate(set); mode.AllowVeryLargeObjects = mode.AllowVeryLargeObjects.Mutate(set); return(mode); }
public static GcMode WithServer(this GcMode mode, bool value) => mode.WithCore(m => m.Server = value);
private static GcMode WithCore(this GcMode mode, Action <GcMode> updateCallback) { mode = new GcMode().Apply(mode); updateCallback(mode); return(mode); }
public static GcMode WithRetainVm(this GcMode mode, bool value) => mode.WithCore(m => m.RetainVm = value);
public static GcMode WithNoAffinitize(this GcMode mode, bool value) => mode.WithCore(m => m.NoAffinitize = value);
public static GcMode WithConcurrent(this GcMode mode, bool value) => mode.With(mode.Concurrent.Mutate(value));
public static GcMode With <T>(this GcMode mode, ICharacteristic <T> characteristic) => GcMode.Parse(mode.ToSet().Mutate(characteristic));
public static GcMode WithForce(this GcMode mode, bool value) => mode.With(mode.Force.Mutate(value));
public EnvMode(string id) : base(id) { GcCharacteristic[this] = new GcMode(); }
public static Job With(this Job job, GcMode gc) => job.WithGcMode(gc);
[PublicAPI] public EnvironmentMode(string id) : base(id) { GcCharacteristic[this] = new GcMode(); PowerPlanModeCharacteristic[this] = new PowerPlanMode(); }
public static IJob With(this IJob job, GcMode gcMode) => job.With(j => j.GcMode = gcMode);
public static GcMode WithHeapAffinitizeMask(this GcMode mode, int heapAffinitizeMask) => mode.WithCore(m => m.HeapAffinitizeMask = heapAffinitizeMask);
public static GcMode WithConcurrent(this GcMode mode, bool value) => mode.WithCore(m => m.Concurrent = value);
public static Job With(this Job job, GcMode gc) => job.Mutate(gc.ToMutator());
public static GcMode WithCpuGroups(this GcMode mode, bool value) => mode.With(mode.CpuGroups.Mutate(value));
public static GcMode WithCpuGroups(this GcMode mode, bool value) => mode.WithCore(m => m.CpuGroups = value);
public static GcMode WithAllowVeryLargeObjects(this GcMode mode, bool value) => mode.With(mode.AllowVeryLargeObjects.Mutate(value));
public static GcMode WithForce(this GcMode mode, bool value) => mode.WithCore(m => m.Force = value);
public static GcMode WithServer(this GcMode mode, bool value) => mode.With(mode.Server.Mutate(value));
public static GcMode WithAllowVeryLargeObjects(this GcMode mode, bool value) => mode.WithCore(m => m.AllowVeryLargeObjects = value);
public static Job With(this Job job, GcMode gc) => job.WithCore(j => EnvMode.GcCharacteristic[j] = gc);
public static GcMode WithHeapCount(this GcMode mode, int heapCount) => mode.WithCore(m => m.HeapCount = heapCount);