Skip to content
Open
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 @@ -170,7 +170,7 @@ internal CompiledCommandParameter(MemberInfo member, bool processingDynamicParam
{
switch (attr)
{
case ExperimentalAttribute _:
case ExperimentalAttribute:
case ParameterAttribute param when param.ToHide:
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ internal PSSession(RemoteRunspace remoteRunspace)

switch (remoteRunspace.ConnectionInfo)
{
case WSManConnectionInfo _:
case WSManConnectionInfo:
ComputerType = TargetMachineType.RemoteMachine;
string fullShellName = WSManConnectionInfo.ExtractPropertyAsWsManConnectionInfo<string>(
remoteRunspace.ConnectionInfo,
Expand All @@ -293,12 +293,12 @@ internal PSSession(RemoteRunspace remoteRunspace)
ConfigurationName = containerConnectionInfo.ContainerProc.ConfigurationName;
break;

case SSHConnectionInfo _:
case SSHConnectionInfo:
ComputerType = TargetMachineType.RemoteMachine;
ConfigurationName = "DefaultShell";
break;

case NewProcessConnectionInfo _:
case NewProcessConnectionInfo:
ComputerType = TargetMachineType.RemoteMachine;
break;

Expand All @@ -321,22 +321,22 @@ private string GetTransportName()
{
switch (_remoteRunspace.ConnectionInfo)
{
case WSManConnectionInfo _:
case WSManConnectionInfo:
return "WSMan";

case SSHConnectionInfo _:
case SSHConnectionInfo:
return "SSH";

case NamedPipeConnectionInfo _:
case NamedPipeConnectionInfo:
return "NamedPipe";

case ContainerConnectionInfo _:
case ContainerConnectionInfo:
return "Container";

case NewProcessConnectionInfo _:
case NewProcessConnectionInfo:
return "Process";

case VMConnectionInfo _:
case VMConnectionInfo:
return "VMBus";

default:
Expand Down