This is the full Xml I'm signing.

<envEvento versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe">
    <idLote>1</idLote>
    <evento versao="1.00">
        <infEvento Id="ID2102103519037442275900010755000000003309115569507501">
            <cOrgao>91</cOrgao>
            <tpAmb>2</tpAmb>
            <CNPJ>00000000000000</CNPJ>
            <chNFe>35190374422759000107550000000033091155695075</chNFe>
            <dhEvento>2019-06-25T15:57:30-03:00</dhEvento>
            <tpEvento>210210</tpEvento>
            <nSeqEvento>1</nSeqEvento>
            <verEvento>1.00</verEvento>
            <detEvento versao="1.00">
                <descEvento>Ciencia da Operacao</descEvento>
            </detEvento>
        </infEvento>
        <Signature Id="Id-80170FF0-0678-47D5-8C8B-771AA4E334E6">
            <SignedInfo>
                <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
                <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                <Reference URI="#ID2102103519037442275900010755000000003309115569507501">
                    <Transforms>
                        <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
                        <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
                    </Transforms>
                    <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                    <DigestValue>wwcIz10ydGwGr3DYsCl+l6IfwyY=</DigestValue>
                </Reference>
            </SignedInfo>
            <SignatureValue>PyJvYnxxS..</SignatureValue>
            <KeyInfo>
                <X509Data>
                    <X509Certificate>MIIHqjCCBZKgAwI..</X509Certificate>
                </X509Data>
            </KeyInfo>
        </Signature>
    </evento>
</envEvento>

I set the tSignature inside my XML object that has a property Signature of type% XML.Security.Signature and then convert to% XML.Document and do the sign

SET XML.evento.Signature = tSignature
// this method convert %XML.Adapter on %XML.Document
SET document = ..GetXMLDoc(XML)

SET tSC = tSignature.SignDocument(document)