Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// Job wrapping invocation of a CreateInstance intrinsic CIM method.
/// </summary>
internal class CreateInstanceJob : PropertySettingJob<CimInstance>
internal sealed class CreateInstanceJob : PropertySettingJob<CimInstance>
{
private CimInstance _resultFromCreateInstance;
private CimInstance _resultFromGetInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// Job wrapping invocation of a DeleteInstance intrinsic CIM method.
/// </summary>
internal class DeleteInstanceJob : MethodInvocationJobBase<object>
internal sealed class DeleteInstanceJob : MethodInvocationJobBase<object>
{
private readonly CimInstance _objectToDelete;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// Job that handles executing a WQL (in the future CQL?) query on a remote CIM server.
/// </summary>
internal class EnumerateAssociatedInstancesJob : QueryJobBase
internal sealed class EnumerateAssociatedInstancesJob : QueryJobBase
{
private readonly CimInstance _associatedObject;
private readonly string _associationName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// Job wrapping invocation of an extrinsic CIM method.
/// </summary>
internal class InstanceMethodInvocationJob : ExtrinsicMethodInvocationJob
internal sealed class InstanceMethodInvocationJob : ExtrinsicMethodInvocationJob
{
private readonly CimInstance _targetInstance;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// Job wrapping invocation of a ModifyInstance intrinsic CIM method.
/// </summary>
internal class ModifyInstanceJob : PropertySettingJob<CimInstance>
internal sealed class ModifyInstanceJob : PropertySettingJob<CimInstance>
{
private CimInstance _resultFromModifyInstance;
private bool _resultFromModifyInstanceHasBeenPassedThru;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// Job that handles executing a WQL (in the future CQL?) query on a remote CIM server.
/// </summary>
internal class QueryInstancesJob : QueryJobBase
internal sealed class QueryInstancesJob : QueryJobBase
{
private readonly string _wqlQuery;
private readonly bool _useEnumerateInstances;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// Job wrapping invocation of a static CIM method.
/// </summary>
internal class StaticMethodInvocationJob : ExtrinsicMethodInvocationJob
internal sealed class StaticMethodInvocationJob : ExtrinsicMethodInvocationJob
{
internal StaticMethodInvocationJob(CimJobContext jobContext, MethodInvocationInfo methodInvocationInfo)
: base(jobContext, false /* passThru */, jobContext.CmdletizationClassName, methodInvocationInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Microsoft.PowerShell.Cmdletization.Cim
{
internal class CimCmdletDefinitionContext
internal sealed class CimCmdletDefinitionContext
{
internal CimCmdletDefinitionContext(
string cmdletizationClassName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Microsoft.PowerShell.Cmdletization.Cim
{
internal class CimCmdletInvocationContext
internal sealed class CimCmdletInvocationContext
{
internal CimCmdletInvocationContext(
CimCmdletDefinitionContext cmdletDefinitionContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace Microsoft.PowerShell.Cim
{
internal class CimSensitiveValueConverter : IDisposable
internal sealed class CimSensitiveValueConverter : IDisposable
{
private sealed class SensitiveString : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Microsoft.PowerShell.Cmdletization.Cim
{
internal class CimJobContext
internal sealed class CimJobContext
{
internal CimJobContext(
CimCmdletInvocationContext cmdletInvocationContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// <summary>
/// CimQuery supports building of queries against CIM object model.
/// </summary>
internal class CimQuery : QueryBuilder, ISessionBoundQueryBuilder<CimSession>
internal sealed class CimQuery : QueryBuilder, ISessionBoundQueryBuilder<CimSession>
{
private readonly StringBuilder _wqlCondition;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// 1) filtering that cannot be translated into a server-side query (i.e. when CimQuery.WildcardToWqlLikeOperand reports that it cannot translate into WQL)
/// 2) detecting if all expected results have been received and giving friendly user errors otherwise (i.e. could not find process with name='foo'; details in Windows 8 Bugs: #60926)
/// </summary>
internal class ClientSideQuery : QueryBuilder
internal sealed class ClientSideQuery : QueryBuilder
{
internal class NotFoundError
internal sealed class NotFoundError
{
public NotFoundError()
{
Expand Down Expand Up @@ -530,7 +530,7 @@ private static bool WildcardEqual(string propertyName, object actualPropertyValu
}
}

internal class PropertyValueExcludeFilter : PropertyValueRegularFilter
internal sealed class PropertyValueExcludeFilter : PropertyValueRegularFilter
{
public PropertyValueExcludeFilter(string propertyName, object expectedPropertyValue, bool wildcardsEnabled, BehaviorOnNoMatch behaviorOnNoMatch)
: base(propertyName, expectedPropertyValue, wildcardsEnabled, behaviorOnNoMatch)
Expand All @@ -548,7 +548,7 @@ protected override bool IsMatchingValue(object actualPropertyValue)
}
}

internal class PropertyValueMinFilter : PropertyValueFilter
internal sealed class PropertyValueMinFilter : PropertyValueFilter
{
public PropertyValueMinFilter(string propertyName, object expectedPropertyValue, BehaviorOnNoMatch behaviorOnNoMatch)
: base(propertyName, expectedPropertyValue, behaviorOnNoMatch)
Expand Down Expand Up @@ -583,7 +583,7 @@ private static bool ActualValueGreaterThanOrEqualToExpectedValue(string property
}
}

internal class PropertyValueMaxFilter : PropertyValueFilter
internal sealed class PropertyValueMaxFilter : PropertyValueFilter
{
public PropertyValueMaxFilter(string propertyName, object expectedPropertyValue, BehaviorOnNoMatch behaviorOnNoMatch)
: base(propertyName, expectedPropertyValue, behaviorOnNoMatch)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ internal void WriteContentObject(object content, long readCount, PathInfo pathIn
/// as they get written to the pipeline. An instance of this cache class is
/// only valid for a single path.
/// </summary>
internal class ContentPathsCache
internal sealed class ContentPathsCache
{
/// <summary>
/// Constructs a content cache item.
Expand Down
Loading