Пример #1
0
 internal ServerMethodExecutor(Guid clientRunspacePoolId, Guid clientPowerShellId, AbstractServerTransportManager transportManager)
 {
     this._clientRunspacePoolId   = clientRunspacePoolId;
     this._clientPowerShellId     = clientPowerShellId;
     this._transportManager       = transportManager;
     this._remoteHostCallDataType = (clientPowerShellId == Guid.Empty) ? RemotingDataType.RemoteHostCallUsingRunspaceHost : RemotingDataType.RemoteHostCallUsingPowerShellHost;
     this._serverDispatchTable    = new ServerDispatchTable();
 }
 /// <summary>
 /// Constructor for ServerMethodExecutor.
 /// </summary>
 internal ServerMethodExecutor(
     Guid clientRunspacePoolId, Guid clientPowerShellId,
     AbstractServerTransportManager transportManager)
 {
     _clientRunspacePoolId = clientRunspacePoolId;
     _clientPowerShellId   = clientPowerShellId;
     Dbg.Assert(transportManager != null, "Expected transportManager != null");
     _transportManager       = transportManager;
     _remoteHostCallDataType =
         clientPowerShellId == Guid.Empty ? RemotingDataType.RemoteHostCallUsingRunspaceHost : RemotingDataType.RemoteHostCallUsingPowerShellHost;
     _serverDispatchTable = new ServerDispatchTable();
 }