(self)
Connects to a running command on a remote server, this method will
        connect to the host but will not wait until the command is finished.
        Call end_invoke() to wait until the process is complete.
Connects to a running command on a remote server, this method will
        connect to the host but will not wait until the command is finished.
        Call end_invoke() to wait until the process is complete.
Connects to a running command on a remote server this method will connect to the host but will not wait until the command is finished . Call end_invoke () to wait until the process is complete .
def connect_async(self):
        """
        Connects to a running command on a remote server, this method will
        connect to the host but will not wait until the command is finished.
        Call end_invoke() to wait until the process is complete.
        """
        if self.state != PSInvocationState.DISCONNECTED:
            raise InvalidPipelineStateError(
                self.state, PSInvocationState.DISCONNECTED,
                "connect to a disconnected pipeline"
            )
        rsp = NAMESPACES['rsp']

        connect = ET.Element("{%s}Connect" % rsp, CommandId=self.id)

        self.runspace_pool.connection.connect(
            self.runspace_pool.shell.resource_uri, connect,
            selector_set=self.runspace_pool.shell._selector_set
        )
        self.state = PSInvocationState.RUNNING
        self._from_disconnect = True
def connect_async ( self ) : if self . state != PSInvocationState . DISCONNECTED : raise InvalidPipelineStateError ( self . state , PSInvocationState . DISCONNECTED , "connect to a disconnected pipeline" ) rsp = NAMESPACES [ 'rsp' ] connect = ET . Element ( "{%s}Connect" % rsp , CommandId = self . id ) self . runspace_pool . connection . connect ( self . runspace_pool . shell . resource_uri , connect , selector_set = self . runspace_pool . shell . _selector_set ) self . state = PSInvocationState . RUNNING self . _from_disconnect = True