PSSessionConfiguration Class

Definition

InitialSessionStateProvider is used by 3rd parties to provide shell configurtion on the remote server.

public abstract class PSSessionConfiguration : IDisposable
Inheritance
PSSessionConfiguration
Derived
Implements

Constructors

PSSessionConfiguration()

Methods

Dispose()

Disose this configuraiton object. This will be called when a Runspace/RunspacePool created using InitialSessionState from this object is Closed.

Dispose(Boolean)
GetApplicationPrivateData(PSSenderInfo)

Derived classes can override this method to provide application private data that is going to be sent to the client and exposed via ApplicationPrivateData, GetApplicationPrivateData() and GetApplicationPrivateData()

GetInitialSessionState(PSSenderInfo)

Derived classes must override this to supply an InitialSesionState to be used to construct a Runspace for the user

GetInitialSessionState(PSSessionConfigurationData, PSSenderInfo, String)
GetMaximumReceivedDataSizePerCommand(PSSenderInfo)

Total data (in bytes) that can be received from a remote machine targeted towards a command. If null, then the size is unlimited. Default is 50MB.

GetMaximumReceivedObjectSize(PSSenderInfo)

Maximum size (in bytes) of a deserialized object received from a remote machine. If null, then the size is unlimited. Default is 10MB.