"use strict";(self.webpackChunktouchsocket=self.webpackChunktouchsocket||[]).push([[5725],{3905:(e,t,n)=>{n.d(t,{Zo:()=>i,kt:()=>m});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},i=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),d=s(n),m=a,g=d["".concat(p,".").concat(m)]||d[m]||u[m]||l;return n?r.createElement(g,o(o({ref:t},i),{},{components:n})):r.createElement(g,o({ref:t},i))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=d;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c.mdxType="string"==typeof e?e:a,o[1]=c;for(var s=2;s{n.d(t,{Z:()=>Q});var r=n(7294),a=n(7462);const l=(e,t,n)=>e?"string"==typeof e?e:e[t]||n:n,o={display:"block"},c=e=>{let{size:t,color:n,style:c,...p}=e;const s=c?{...o,...c}:o;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:s},p),r.createElement("path",{d:"M856.4 292.8c-63.3-63.6-126.6-127.1-190.2-190.3-15.3-15.2-32.7-16.1-48.1-0.8-64.3 63.6-128.1 127.6-191.8 191.9-14 14.2-16.3 31.6-1.7 46 14.8 14.7 31.5 10.6 46.1-2.7 5.1-4.6 9.8-9.7 14.7-14.7 39.2-39.7 78.5-79.5 122.8-124.4 0 170 3 332.2-1.1 494-2.4 96.4-91.2 174.6-187.4 176.6-110.6 2.3-198.6-84.4-199-197.4-0.6-136.3-0.2-272.6-0.1-408.9 0-21.8-7.9-37.4-31.2-39.9-18.9-2-33.2 13.2-33.1 37.5 0 145.8-3.4 291.7 2.4 437.2 6 152.1 160.4 263.5 309.5 230.5C591.8 900 672.8 797.2 673.6 664.6c0.8-144 0.2-288.1 0.2-432.1v-33.3c11.2 10.2 17.6 15.4 23.3 21.3 38.5 38.4 76.7 77 115.3 115.2 14.8 14.6 32.2 19.2 47.8 2.9 13.8-14.8 10.3-31.7-3.8-45.8z",fill:l(n,0,"#333333")}))};c.defaultProps={size:18};const p=c,s={display:"block"},i=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...s,...o}:s;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M143.872 768a51.2 51.2 0 0 1-15.36-2.56 51.2 51.2 0 0 1-35.328-51.2V283.136a148.992 148.992 0 0 1 141.824-153.6h450.56a148.992 148.992 0 0 1 141.824 153.6V512a148.992 148.992 0 0 1-141.824 153.6H244.224l-60.928 80.896a51.2 51.2 0 0 1-39.424 21.504zM235.008 180.224a97.792 97.792 0 0 0-90.624 102.4v430.592L218.624 614.4h466.944a97.792 97.792 0 0 0 90.624-102.4V283.136a97.792 97.792 0 0 0-90.624-102.4z",fill:l(n,0,"#333333")}),r.createElement("path",{d:"M880.128 875.52a51.2 51.2 0 0 1-39.424-20.48l-60.928-80.896h-243.2a25.6 25.6 0 0 1 0-51.2h268.8l76.288 102.4v-295.936a25.6 25.6 0 0 1 25.6-25.6 25.6 25.6 0 0 1 25.6 25.6v293.888a51.2 51.2 0 0 1-51.2 51.2z",fill:l(n,1,"#333333")}))};i.defaultProps={size:18};const u=i,d={display:"block"},m=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...d,...o}:d;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M223.425605 449.2744l161.632237 0 0 253.65714c0 16.954137 13.745049 30.699186 30.699186 30.699186 16.95516 0 30.699186-13.745049 30.699186-30.699186l0-284.356326c0-16.95516-13.744026-30.699186-30.699186-30.699186L291.035446 387.876028l217.23665-248.51605L733.039255 387.580293 607.104031 387.580293c-16.954137 0-30.699186 13.745049-30.699186 30.699186l0 284.652062c0 16.954137 13.745049 30.699186 30.699186 30.699186s30.699186-13.745049 30.699186-30.699186L637.803217 448.978664l164.448376 0c12.140505 0 23.140023-7.154957 28.063149-18.251689 4.922103-11.097756 2.841721-24.053835-5.307889-33.05279L530.62315 72.570829c-5.881964-6.495948-14.273075-10.134825-23.024389-10.091846-8.763594 0.076748-17.076934 3.895727-22.844288 10.494005L200.312188 398.371056c-7.92653 9.067516-9.818623 21.931498-4.839215 32.896224S211.383338 449.2744 223.425605 449.2744z",fill:l(n,0,"#333333")}),r.createElement("path",{d:"M222.354204 829.113381l581.732178 0c16.954137 0 30.699186-13.745049 30.699186-30.699186s-13.745049-30.699186-30.699186-30.699186L222.354204 767.715009c-16.954137 0-30.699186 13.745049-30.699186 30.699186S205.400067 829.113381 222.354204 829.113381z",fill:l(n,1,"#333333")}),r.createElement("path",{d:"M804.086381 896.729361 222.354204 896.729361c-16.954137 0-30.699186 13.745049-30.699186 30.699186s13.745049 30.699186 30.699186 30.699186l581.732178 0c16.954137 0 30.699186-13.745049 30.699186-30.699186S821.041542 896.729361 804.086381 896.729361z",fill:l(n,2,"#333333")}))};m.defaultProps={size:18};const g=m,k={display:"block"},h=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...k,...o}:k;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M380.15463648 874.54223633c0 18.12744166-14.83154297 32.95898463-32.95898463 32.95898463s-32.95898463-14.83154297-32.95898462-32.95898463V228.9152832L172.71078883 370.86962865a33.04467773 33.04467773 0 0 1-46.60400416 0 33.04467773 33.04467773 0 0 1 0-46.6040034l197.55615234-198.14941406A32.76782227 32.76782227 0 0 1 347.0967749 116.52514674c0.03295924 0 0.06591772-0.03295924 0.09887695-0.03295924 1.54907201 0 2.90039088 0.69213867 4.41650366 0.88989258 2.66967773 0.39550781 5.40527318 0.59326172 7.94311548 1.61499049 12.03002904 4.94384766 20.59936549 16.71020508 20.59936549 30.45410156v725.0910642z m320.15698192 23.34155248a32.85351537 32.85351537 0 0 1-23.43383789 9.59106445c-0.03295924 0-0.06591772 0.03295924-0.09887696 0.03295924-1.54907201 0-2.90039088-0.69213867-4.41650365-0.92285182-2.70263697-0.36254857-5.40527318-0.56030248-7.94311549-1.61498972-12.03002904-4.91088842-20.59936549-16.67724584-20.59936473-30.42114309V149.45776367c0-18.12744166 14.83154297-32.95898463 32.95898387-32.95898463s32.95898463 14.83154297 32.95898463 32.95898463v645.60058619l141.52587916-141.92138697c12.81445313-12.82104467 33.81591797-12.82104467 46.63037109 0 12.78808619 12.81445313 12.78808619 33.77636719 0 46.60400416L700.3116184 897.88378881z",fill:l(n,0,"#333333")}))};h.defaultProps={size:18};const y=h,v={display:"block"},f=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...v,...o}:v;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1172 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M870.0416 250.4704a38.4 38.4 0 0 0-8.96 53.5552c13.056 18.2784 24.4224 37.8368 33.7408 58.112a38.4512 38.4512 0 0 0 50.944 18.8928 38.4512 38.4512 0 0 0 18.8416-50.944 436.0192 436.0192 0 0 0-40.96-70.6048 38.3488 38.3488 0 0 0-53.6064-9.0112zM181.4528 566.016a35.9936 35.9936 0 0 0 25.5488-10.5984L351.7952 410.624a36.096 36.096 0 1 0-51.0976-51.0976L217.6 442.5728C250.0096 278.1184 395.264 153.6 569.1392 153.6c50.7904 0 99.8912 10.3936 145.92 30.9248a38.4 38.4 0 1 0 31.232-70.0928 431.36 431.36 0 0 0-177.152-37.632c-214.6816 0-393.1136 156.416-428.4416 361.216L62.1568 359.4752a36.1984 36.1984 0 0 0-51.0976 51.0976l144.8448 144.7936a36.0448 36.0448 0 0 0 25.5488 10.6496zM978.5344 463.104a36.1984 36.1984 0 0 0-51.0976 0l-144.8448 144.7936a36.096 36.096 0 1 0 51.0976 51.0976l88.6272-88.576C894.3104 740.2496 746.8032 870.4 569.1392 870.4a357.7856 357.7856 0 0 1-325.2736-207.7184 38.4 38.4 0 1 0-69.7344 32.3072 434.3808 434.3808 0 0 0 394.9568 252.2112c215.1936 0 393.984-157.184 428.6464-362.7008l74.496 74.496a35.9936 35.9936 0 0 0 51.0976 0 36.096 36.096 0 0 0 0-51.0976l-144.7936-144.7936z",fill:l(n,0,"#333333")}))};f.defaultProps={size:18};const b=f,N={display:"block"},C=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...N,...o}:N;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M302 332a30 30 0 1 1 0-60h420a30 30 0 0 1 0 60H302zM302 542a30 30 0 0 1 0-60h420a30 30 0 0 1 0 60H302zM302 752a30 30 0 0 1 0-60h120a30 30 0 0 1 0 60H302z",fill:l(n,0,"#333333")}),r.createElement("path",{d:"M789.47 784.1a30 30 0 0 1 39.36 45.3l-144.24 125.25a30 30 0 0 1-19.68 7.35H214.85C163.4 962 122 919.46 122 867.38V156.62C122 104.54 163.4 62 214.85 62h594.3C860.6 62 902 104.54 902 156.62v529.05a30 30 0 1 1-60 0V156.62C842 137.3 827.09 122 809.15 122H214.85C196.91 122 182 137.3 182 156.62v710.76C182 886.7 196.91 902 214.85 902h438.84l135.78-117.9z",fill:l(n,1,"#333333")}),r.createElement("path",{d:"M692 931.19a30 30 0 1 1-60 0v-174.6C632 704.57 673.4 662 724.85 662h147.78a30 30 0 0 1 0 60h-147.78c-17.94 0-32.85 15.3-32.85 34.62v174.6z",fill:l(n,2,"#333333")}))};C.defaultProps={size:18};const R=C,E={display:"block"},x=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...E,...o}:E;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M512 883.2A371.2 371.2 0 1 0 140.8 512 371.2 371.2 0 0 0 512 883.2z m0 64a435.2 435.2 0 1 1 435.2-435.2 435.2 435.2 0 0 1-435.2 435.2z",fill:l(n,0,"#333333")}),r.createElement("path",{d:"M557.056 512l122.368 122.368a31.744 31.744 0 1 1-45.056 45.056L512 557.056l-122.368 122.368a31.744 31.744 0 1 1-45.056-45.056L466.944 512 344.576 389.632a31.744 31.744 0 1 1 45.056-45.056L512 466.944l122.368-122.368a31.744 31.744 0 1 1 45.056 45.056z",fill:l(n,1,"#333333")}))};x.defaultProps={size:18};const w=x,S={display:"block"},P=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...S,...o}:S;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 34.8-28.2 63-63 63H232c-34.8 0-63-28.2-63-63 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5 0.2 13 0.7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7 6 17.2 13.6 33.6 22.7 49 24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2c41.5-24.3 76.2-59 100.5-100.5 9.1-15.5 16.7-31.9 22.7-49C812.1 793.1 836 831.8 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7 0.4-6.4 0.7-12.8 0.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3-20.1 11.8-42 20-64.9 24.3V484c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v396.5c-22.9-4.3-44.8-12.5-64.9-24.3-30.3-17.7-55.6-43-73.3-73.3C317.7 752 308 716.8 308 680V412h408v268z",fill:l(n,0,"#333333")}),r.createElement("path",{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1-17.2-31.5-42.5-56.8-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9-31.5 17.2-56.8 42.5-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z",fill:l(n,1,"#333333")}))};P.defaultProps={size:18};const z=P,L={display:"block"},M=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...L,...o}:L;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M512 71.68c-242.688 0-440.32 197.632-440.32 440.32s197.632 440.32 440.32 440.32 440.32-197.632 440.32-440.32-197.632-440.32-440.32-440.32z m0 819.2c-208.896 0-378.88-169.984-378.88-378.88s169.984-378.88 378.88-378.88 378.88 169.984 378.88 378.88-169.984 378.88-378.88 378.88z",fill:l(n,0,"#333333")}),r.createElement("path",{d:"M542.72 261.12H481.28v220.16H261.12v61.44h220.16v220.16h61.44v-220.16h220.16V481.28h-220.16z",fill:l(n,1,"#333333")}))};M.defaultProps={size:18};const T=M,A={display:"block"},B=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...A,...o}:A;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M384 896h-64v-70.4c0-15.2-10.4-28-24.8-31.2C159.2 768 64 644.8 64 496v-32h64v32c0 118.4 73.6 215.2 179.2 236 44.8 8.8 76.8 48 76.8 94.4v69.6zM704 896h-64v-70.4c0-45.6 32-85.6 76.8-94.4C822.4 711.2 896 614.4 896 496v-32h64v32c0 148.8-95.2 272-231.2 298.4-14.4 3.2-24.8 16-24.8 31.2v70.4zM512.8 640l-41.6-37.6c-147.2-133.6-244-208-244-316.8 0-88 68.8-156.8 156.8-156.8 49.6 0 97.6 23.2 128.8 60C544 152 592 128.8 641.6 128.8c88 0 156.8 68.8 156.8 156.8 0 108-96.8 183.2-244 316.8L512.8 640z",fill:l(n,0,"#333333")}))};B.defaultProps={size:18};const O=B,I={display:"block"},G=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...I,...o}:I;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M942.4615936 284.62787926c-14.30911886-14.12709945-37.31996786-14.05468217-51.48229632 0.21920654L517.97142983 661.27810333 139.75544149 286.45003606c-14.30911886-14.16232846-37.31996786-14.05468217-51.51948344 0.21920654-14.16232846 14.30911886-14.05468217 37.35519687 0.21920654 51.51948345l401.99014627 398.34974663c0.61847666 0.61847666 1.41897273 0.76526706 2.03940637 1.34655658 0.14483342 0.14483342 0.18201941 0.32685283 0.32685283 0.47364324 7.09877874 7.02636259 16.38375538 10.55911595 25.63154489 10.55911595 9.35739278 0 18.75001458-3.60516949 25.85075143-10.77636551l398.34974663-401.99014628C956.84312974 321.8382427 956.73548345 298.7921647 942.4615936 284.62787926z",fill:l(n,0,"#333333")}))};G.defaultProps={size:18};const H=G,j={display:"block"},Z=e=>{let{size:t,color:n,style:o,...c}=e;const p=o?{...j,...o}:j;return r.createElement("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:t+"px",height:t+"px",style:p},c),r.createElement("path",{d:"M81.5384064 739.37212074c14.30911886 14.12709945 37.31996786 14.05468217 51.48229632-0.21920654L506.02857017 362.72189667 884.24455851 737.54996394c14.30911886 14.16232846 37.31996786 14.05468217 51.51948344-0.21920654 14.16232846-14.30911886 14.05468217-37.35519687-0.21920654-51.51948345l-401.99014627-398.34974663c-0.61847666-0.61847666-1.41897273-0.76526706-2.03940637-1.34655658-0.14483342-0.14483342-0.18201941-0.32685283-0.32685282-0.47364324-7.09877874-7.02636259-16.38375538-10.55911595-25.6315449-10.55911595-9.35739278 0-18.75001458 3.60516949-25.85075143 10.77636551l-398.34974663 401.99014628C67.15687026 702.1617573 67.26451655 725.2078353 81.5384064 739.37212074z",fill:l(n,0,"#333333")}))};Z.defaultProps={size:18};const V=Z,D=e=>{let{name:t,...n}=e;switch(t){case"youhua":return r.createElement(p,n);case"dayi":return r.createElement(u,n);case"shengji":return r.createElement(g,n);case"tiaozheng":return r.createElement(y,n);case"gengxin":return r.createElement(b,n);case"wendang":return r.createElement(R,n);case"shanchu":return r.createElement(w,n);case"bug":return r.createElement(z,n);case"xinzeng":return r.createElement(T,n);case"fuwu":return r.createElement(O,n);case"down":return r.createElement(H,n);case"up":return r.createElement(V,n)}return null},q="label_p8vM",U="icon_knQK";function Q(e){const{children:t}=e,n={"\u65b0\u589e":{icon:"xinzeng",bgColor:"#39b54a"},"\u4fee\u590d":{icon:"bug",bgColor:"#9c26b0"},"\u6587\u6863":{icon:"wendang",bgColor:"rgb(79, 147, 255)"},"\u66f4\u65b0":{icon:"gengxin",bgColor:"#0081ff"},"\u8c03\u6574":{icon:"tiaozheng",bgColor:"#333"},"\u5347\u7ea7":{icon:"shengji",bgColor:"#e03997"},"\u79fb\u9664":{icon:"shanchu",bgColor:"#666"},"\u7b54\u7591":{icon:"dayi",bgColor:"#bbb"},"\u4f18\u5316":{icon:"youhua",bgColor:"#38e550"},"\u63a8\u8350":{bgColor:"#38e550"},"\u4f01\u4e1a\u7248":{bgColor:"#23AAF2"}};return r.createElement("label",{className:q,title:t,style:{backgroundColor:n[t].bgColor}},r.createElement(D,{name:n[t].icon,color:"white",size:14,className:U})," ",t)}},598:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>d,frontMatter:()=>o,metadata:()=>p,toc:()=>i});var r=n(7462),a=(n(7294),n(3905)),l=n(510);const o={id:"generateproxy",title:"\u751f\u6210\u3001\u83b7\u53d6\u4ee3\u7406"},c=void 0,p={unversionedId:"generateproxy",id:"generateproxy",title:"\u751f\u6210\u3001\u83b7\u53d6\u4ee3\u7406",description:"\u4e00\u3001\u8bf4\u660e",source:"@site/docs/generateproxy.mdx",sourceDirName:".",slug:"/generateproxy",permalink:"/touchsocket/docs/generateproxy",draft:!1,editUrl:"https://gitee.com/rrqm_home/touchsocket/tree/master/handbook/docs/generateproxy.mdx",tags:[],version:"current",lastUpdatedBy:"\u82e5\u6c5d\u68cb\u8317",lastUpdatedAt:1676011286,formattedLastUpdatedAt:"Feb 10, 2023",frontMatter:{id:"generateproxy",title:"\u751f\u6210\u3001\u83b7\u53d6\u4ee3\u7406"},sidebar:"docs",previous:{title:"Rpc\u670d\u52a1AOP",permalink:"/touchsocket/docs/rpcactionfilter"},next:{title:"\u4f20\u8f93\u6587\u4ef6",permalink:"/touchsocket/docs/transferfile"}},s={},i=[{value:"\u4e00\u3001\u8bf4\u660e",id:"\u4e00\u8bf4\u660e",level:2},{value:"1.1 \u4e3a\u4ec0\u4e48\u8981\u751f\u6210\u4ee3\u7406\uff1f",id:"11-\u4e3a\u4ec0\u4e48\u8981\u751f\u6210\u4ee3\u7406",level:3},{value:"1.2 \u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u652f\u6301\u63a5\u53e3\u4ee3\u7406\u8c03\u7528\uff1f",id:"12-\u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u652f\u6301\u63a5\u53e3\u4ee3\u7406\u8c03\u7528",level:3},{value:"1.3 TouchRpc\u6e90\u6587\u4ef6\u4ee3\u7406\u76f8\u6bd4\u63a5\u53e3\u4ee3\u7406\uff0c\u6709\u4ec0\u4e48\u4f18\u7f3a\u70b9\uff1f",id:"13-touchrpc\u6e90\u6587\u4ef6\u4ee3\u7406\u76f8\u6bd4\u63a5\u53e3\u4ee3\u7406\u6709\u4ec0\u4e48\u4f18\u7f3a\u70b9",level:3},{value:"\u4e8c\u3001\u4ece\u670d\u52a1\u7aef\u83b7\u53d6\u4ee3\u7406",id:"\u4e8c\u4ece\u670d\u52a1\u7aef\u83b7\u53d6\u4ee3\u7406",level:2},{value:"2.1 \u751f\u6210\u4ee3\u7406",id:"21-\u751f\u6210\u4ee3\u7406",level:3},{value:"2.2 \u4ee3\u7406\u7c7b\u578b\u6dfb\u52a0",id:"22-\u4ee3\u7406\u7c7b\u578b\u6dfb\u52a0",level:3},{value:"2.2.1 \u6dfb\u52a0\u4ee3\u7406\u7c7b\u578b",id:"221-\u6dfb\u52a0\u4ee3\u7406\u7c7b\u578b",level:3},{value:"2.2.2 \u6807\u8bb0\u81ea\u5b9a\u4e49\u7c7b",id:"222-\u6807\u8bb0\u81ea\u5b9a\u4e49\u7c7b",level:3},{value:"\u4e09\u3001\u5ba2\u6237\u7aef\u6e90\u4ee3\u7801\u751f\u6210\u4ee3\u7406 \u4f01\u4e1a\u7248",id:"\u4e09\u5ba2\u6237\u7aef\u6e90\u4ee3\u7801\u751f\u6210\u4ee3\u7406-\u4f01\u4e1a\u7248",level:2},{value:"3.1 \u751f\u6210",id:"31-\u751f\u6210",level:3},{value:"3.2 \u63a8\u8350\u5199\u6cd5",id:"32-\u63a8\u8350\u5199\u6cd5",level:3}],u={toc:i};function d(e){let{components:t,...o}=e;return(0,a.kt)("wrapper",(0,r.Z)({},u,o,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h2",{id:"\u4e00\u8bf4\u660e"},"\u4e00\u3001\u8bf4\u660e"),(0,a.kt)("h3",{id:"11-\u4e3a\u4ec0\u4e48\u8981\u751f\u6210\u4ee3\u7406"},"1.1 \u4e3a\u4ec0\u4e48\u8981\u751f\u6210\u4ee3\u7406\uff1f"),(0,a.kt)("p",null,"\u4f7f\u7528rpc\u7684\u539f\u5219\u5c31\u662f\u50cf\u4f7f\u7528\u672c\u5730\u65b9\u6cd5\u4e00\u6837\uff0c\u8ba9\u5f00\u53d1\u8005\u611f\u89c9\u4e0d\u5230\u4efb\u4f55\u7684\u4e0d\u540c\u3002\u6240\u4ee5\u5c31\u5fc5\u987b\u628a\u670d\u52a1\u4ee3\u7406\u5230\u672c\u5730\uff0c\u5e38\u89c1\u7684\u65b9\u5f0f\u6709\u4e09\u79cd\uff0c",(0,a.kt)("strong",{parentName:"p"},"\u52a8\u6001\u4ee3\u7406\u63a5\u53e3"),"\uff0c",(0,a.kt)("strong",{parentName:"p"},"\u9759\u6001\u7ec7\u5165"),"\uff0c",(0,a.kt)("strong",{parentName:"p"},"\u9759\u6001\u7f16\u8bd1"),"\u3002\u4e09\u79cd\u65b9\u5f0f\u6b8a\u9014\u540c\u5f52\uff0c\u6700\u7ec8\u90fd\u662f\u6784\u5efa\u672c\u5730\u6570\u636e\u7ed3\u6784\uff0c\u7136\u540e\u548c\u8fdc\u7a0b\u901a\u4fe1\u3002\u4e09\u79cd\u65b9\u5f0f\u5404\u6709\u4f18\u7f3a\uff0c\u5177\u4f53\u5982\u4e0b\uff1a"),(0,a.kt)("table",null,(0,a.kt)("thead",{parentName:"table"},(0,a.kt)("tr",{parentName:"thead"},(0,a.kt)("th",{parentName:"tr",align:null},(0,a.kt)("strong",{parentName:"th"},"\u4f18\u7f3a\u70b9")),(0,a.kt)("th",{parentName:"tr",align:null},(0,a.kt)("strong",{parentName:"th"},"\u52a8\u6001\u4ee3\u7406\u63a5\u53e3")),(0,a.kt)("th",{parentName:"tr",align:null},(0,a.kt)("strong",{parentName:"th"},"\u9759\u6001\u7ec7\u5165")),(0,a.kt)("th",{parentName:"tr",align:null},(0,a.kt)("strong",{parentName:"th"},"\u9759\u6001\u7f16\u8bd1")))),(0,a.kt)("tbody",{parentName:"table"},(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:null},(0,a.kt)("strong",{parentName:"td"},"\u4f18\u70b9")),(0,a.kt)("td",{parentName:"tr",align:null},"\u52a8\u6001\u6784\u5efa\u7c7b\uff0c\u7075\u6d3b\u3001\u9002\u5e94\u6027\u5f3a\u3002"),(0,a.kt)("td",{parentName:"tr",align:null},"\u9759\u6001\u4ee3\u7801\u751f\u6210\uff0c\u81ea\u5b9a\u4e49\u7c7b\u53c2\u6570\u81ea\u52a8\u751f\u6210\uff0c\u4fee\u6539\u8f83\u7075\u6d3b\uff0c\u8c03\u7528\u6548\u7387\u9ad8"),(0,a.kt)("td",{parentName:"tr",align:null},"\u81ea\u5b9a\u4e49\u7c7b\u53c2\u6570\u81ea\u52a8\u751f\u6210\uff0c\u5bc6\u5c01\u6027\u5f3a\uff0c\u5b89\u5168\u6027\u9ad8\uff0c\u8c03\u7528\u6548\u7387\u9ad8\u3002")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:null},(0,a.kt)("strong",{parentName:"td"},"\u7f3a\u70b9")),(0,a.kt)("td",{parentName:"tr",align:null},"\u8c03\u7528\u6548\u7387\u8f83\u4f4e\uff0c\u81ea\u5b9a\u4e49\u7c7b\u53c2\u6570\u987b\u81ea\u884c\u6784\u5efa\uff0c\u5b9e\u73b0\u987bIL\u652f\u6301\uff0c\u5bf9\u8c03\u7528\u5e73\u53f0\u6709\u8981\u6c42\uff0c\u4f8b\u5982\uff1aIOS\u4e0d\u5141\u8bb8\u52a8\u6001\u7c7b\u751f\u6210\uff0c\u5219\u4e0d\u53ef\u4f7f\u7528\u3002"),(0,a.kt)("td",{parentName:"tr",align:null},"\u9879\u76ee\u4ee3\u7801\u7ba1\u7406\u96be\u7edf\u4e00\uff0c\u5f3a\u8feb\u75c7\u731d\u6b7b"),(0,a.kt)("td",{parentName:"tr",align:null},"\u670d\u52a1\u4e00\u65e6\u6709\u7834\u574f\u6027\u5347\u7ea7\uff0c\u5219\u5fc5\u987b\u91cd\u65b0\u66ff\u6362dll\uff0c\u7075\u6d3b\u6027\u51e0\u4e4e\u4e3a0\u3002")))),(0,a.kt)("h3",{id:"12-\u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u652f\u6301\u63a5\u53e3\u4ee3\u7406\u8c03\u7528"},"1.2 \u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u652f\u6301\u63a5\u53e3\u4ee3\u7406\u8c03\u7528\uff1f"),(0,a.kt)("p",null,"\u3010\u539f\u56e0\u4e00\u3011\n\u652f\u6301out\u548cref\u53c2\u6570\uff0c\u5728\u4f7f\u7528\u4ee3\u7406\u65f6\uff0c\u6548\u7387\u4e0d\u9ad8\u3002"),(0,a.kt)("p",null,"\u3010\u539f\u56e0\u4e8c\u3011\n\u9700\u8981\u5728\u53c2\u6570\u652f\u6301\u8c03\u7528\u4e0a\u4e0b\u6587\uff0c\u6240\u4ee5\u65e0\u6cd5\u76f4\u63a5\u7528\u63a5\u53e3\u8c03\u7528\u3002"),(0,a.kt)("p",null,"\u3010\u539f\u56e0\u4e09\u3011\n\u652f\u6301\u5355\u6b21\u8c03\u7528\u7684\u8c03\u7528\u914d\u7f6e\uff08\u4f8b\u5982\u8d85\u65f6\u65f6\u95f4\uff0c\u53d6\u6d88\u8c03\u7528\uff0c\u5e8f\u5217\u5316\u65b9\u5f0f\u7b49\uff09"),(0,a.kt)("p",null,"\u3010\u539f\u56e0\u56db\u3011\n\u5f15\u7528\u95ee\u9898\uff0c\u5f53\u5728\u670d\u52a1\u63a5\u53e3\u4e2d\uff0c\u4f7f\u7528\u4e86\u5176\u4ed6\u7684\u9879\u76ee\u7684\u6570\u636e\u7ed3\u6784\u7684\u8bdd\uff0c\u5728\u63a5\u53e3\u8c03\u7528\u9879\u76ee\u4e0a\u4e5f\u9700\u8981\u5f15\u7528\u8be5\u9879\u76ee\u3002\u592a\u9ebb\u70e6\u3002"),(0,a.kt)("h3",{id:"13-touchrpc\u6e90\u6587\u4ef6\u4ee3\u7406\u76f8\u6bd4\u63a5\u53e3\u4ee3\u7406\u6709\u4ec0\u4e48\u4f18\u7f3a\u70b9"},"1.3 TouchRpc\u6e90\u6587\u4ef6\u4ee3\u7406\u76f8\u6bd4\u63a5\u53e3\u4ee3\u7406\uff0c\u6709\u4ec0\u4e48\u4f18\u7f3a\u70b9\uff1f"),(0,a.kt)("p",null,"\u6e90\u6587\u4ef6\u4ee3\u7406\u76f8\u6bd4\u63a5\u53e3\u4ee3\u7406\uff0c\u51e0\u4e4e\u6ca1\u4ec0\u4e48\u7f3a\u70b9\u3002\u6709\u4eba\u4f1a\u89c9\u5f97\u63a5\u53e3\u4ee3\u7406\u66f4\u6574\u6d01\u3001\u65b9\u4fbf\uff1f\u5b9e\u9645\u4e0a\u6e90\u6587\u4ef6\u4ee3\u7406\u53ea\u4f1a\u66f4\u6574\u6d01\u3001\u65b9\u4fbf\u3002"),(0,a.kt)("p",null,"\u5047\u8bbe\u4e00\u4e2a\u573a\u666f\uff0c\u4f60\u9700\u8981\u5f00\u53d1\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\uff0c\u8fd9\u65f6\uff0c\u4f60\u9700\u8981\u505a\uff1a"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"\u5148\u5355\u72ec\u5b9a\u4e49\u4e00\u4e2a\u63a5\u53e3\u9879\u76ee"),(0,a.kt)("li",{parentName:"ol"},"\u518d\u5b9a\u4e49\u4e00\u4e2a\u5b9e\u73b0\u9879\u76ee"),(0,a.kt)("li",{parentName:"ol"},"\u7f16\u8bd1\u63a5\u53e3\u9879\u76ee"),(0,a.kt)("li",{parentName:"ol"},"\u5f15\u7528\u5230\u5ba2\u6237\u7aef")),(0,a.kt)("p",null,"\u4e0a\u8ff0\u6b65\u9aa4\u4e2d\uff0c\u8fd8\u4e0d\u5305\u62ec\uff0c\u63a5\u53e3\u9879\u76ee\u548c\u5b9e\u73b0\u9879\u76ee\u9700\u8981\u5f15\u5165\u5176\u4ed6\u5f15\u7528\u7684\u60c5\u51b5\uff0c\u4e5f\u4e0d\u5305\u62ec\uff0c\u63a5\u53e3\u4e2d\u5305\u542b\u4e86\u5176\u4ed6\u9879\u76ee\u7684\u81ea\u5b9a\u4e49\u6570\u636e\u7ed3\u6784\u3002\u5982\u679c\u5305\u542b\u4e86\u7684\u8bdd\uff0c\u5ba2\u6237\u7aef\u8fd8\u9700\u8981\u5f15\u5165\u5176\u4ed6\u9879\u76ee\u3002"),(0,a.kt)("p",null,"\u800c\u4e14\uff0c\u8fd8\u9700\u8981\u8003\u8651\u63a5\u53e3\u9879\u76ee\u7684\u7f16\u8bd1\u76ee\u6807\u5e73\u53f0\u548c\u5176\u4ed6\u7f16\u8bd1\u53c2\u6570\u3002\u6700\u96be\u53d7\u7684\u662f\uff0c\u5982\u679c\u8fd9\u4e9b\u5de5\u4f5c\uff0c\u662f\u4f60\u548c\u540c\u4e8b\u5408\u4f5c\u7684\u8bdd\uff0c\u90a3\u53ef\u80fd\u5c31\u662f\u51fa\u4e2abug\uff0c\u540c\u4e8b\u4f20\u4f60\u4e00\u4e2adll v1.0\u7248\u672c\uff0c\u518d\u6709\u95ee\u9898\uff0cv1.1\u4fee\u590d\u7248\uff0c\u7b49\u7b49\u3002"),(0,a.kt)("p",null,"\u800c\u6700\u8981\u547d\u7684\uff0c\u5f53\u5c5e\u7a0b\u5e8f\u96c6\u6570\u636e\u6cc4\u9732\u3002\u8bbe\u60f3\u4e00\u4e0b\uff0c\u5982\u679c\u67d0\u4e2a\u540c\u4e8b\u5728\u5199\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u9879\u76ee\u65f6\uff0c\u628a\u8fde\u63a5\u4fe1\u606f\u76f4\u63a5\u653e\u5728\u4e86\u4ee3\u7801\u91cc\uff08\u6216\u67d0\u4e2a\u903b\u8f91\uff09\uff0c\u672c\u8eab\u5982\u679c\u8fd9\u4e2a\u9879\u76ee\u53ea\u5728\u670d\u52a1\u5668\u5e94\u7528\uff0c\u4e5f\u6ca1\u6709\u5173\u7cfb\uff0c\u4f46\u662f\u56e0\u4e3a\u4f60\u61d2\uff0c\u4f60\u5728\u63a5\u53e3\u4e2d\u4f7f\u7528\u4e86\u8be5\u9879\u76ee\u7684\u4e00\u4e2a\u6570\u636e\u7ed3\u6784\uff0c\u8fd9\u5c31\u4f7f\u5f97\u4f60\u4e0d\u5f97\u4e0d\u628a\u8fd9\u4e2a\u9879\u76ee\u4e00\u540c\u4ea4\u7ed9\u8c03\u7528\u65b9\u7684\u540c\u4e8b\uff0c\u4f46\u4f60\u5bf9\u8fd9\u4e9b\u6beb\u65e0\u5bdf\u89c9\u3002\u55f7\u568e\uff0c\u9ed1\u7528\u6237\u4e00\u53cd\u7f16\u8bd1\uff0c\u76f4\u63a5\u5e2e\u4f60\u628a\u6570\u636e\u6574\u7406\u4e86\u3002"),(0,a.kt)("p",null,"\u4f46\u662f\u5982\u679c\u7528\u751f\u6210\u7684\u6e90\u4ee3\u7801\uff0c\u90a3\u4e0a\u8ff0\u7684\u53ef\u6015\u95ee\u9898\u6839\u672c\u4e0d\u7528\u8003\u8651\u3002\u5176\u6b21\uff0c\u4f1a\u66f4\u6574\u6d01\uff0c\u66f4\u65b9\u4fbf\u3002"),(0,a.kt)("p",null,"\u5047\u8bbe\u76f8\u540c\u573a\u666f\uff0c\u4f60\u9700\u8981\u5f00\u53d1\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\uff0c\u8fd9\u65f6\uff0c\u4f60\u9700\u8981\u505a\uff1a"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"\u5148\u5b9a\u4e49\u4e00\u4e2a\u670d\u52a1\u9879\u76ee\uff08\u53ef\u4ee5\u5199\u63a5\u53e3\uff0c\u4e5f\u80fd\u5199\u903b\u8f91\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u5206\u6210\u4e24\u4e2a\u9879\u76ee\uff09"),(0,a.kt)("li",{parentName:"ol"},"\u7f16\u8bd1\u9879\u76ee\uff0c\u7136\u540e\u5bfc\u51fa\u4ee3\u7406\u6e90\u4ee3\u7801\u3002"),(0,a.kt)("li",{parentName:"ol"},"\u5f15\u7528\u5230\u5ba2\u6237\u7aef")),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"\u4e0d\u9700\u8981\u8003\u8651\u6570\u636e\u7ed3\u6784\u5f15\u7528\u95ee\u9898\uff0c\u56e0\u4e3a\u4ee3\u7406\u4f1a\u8f6c\u5199\u3002"),(0,a.kt)("li",{parentName:"ul"},"\u4e0d\u9700\u8981\u8003\u8651\u7f16\u8bd1\u53c2\u6570\u95ee\u9898\uff0c\u56e0\u4e3a\u5ba2\u6237\u7aef\u62ff\u5230\u7684\u4e5f\u662f\u6e90\u7801\u3002"),(0,a.kt)("li",{parentName:"ul"},"\u4e0d\u9700\u8981\u518d\u8ba9\u540c\u4e8b\u4e00\u6b21\u6b21\u53d1\u4f60dll\uff0c\u53ea\u9700\u8981\uff0c\u4ed6\u542f\u52a8\u670d\u52a1\uff0c\u4f60\u66f4\u65b0\u5f15\u7528\u5c31ok\u3002"),(0,a.kt)("li",{parentName:"ul"},"\u4e0d\u9700\u8981\u6015\u7a0b\u5e8f\u96c6\u6570\u636e\u6cc4\u9732\uff0c\u56e0\u4e3a\u4e00\u5207\u90fd\u662f\u8f6c\u5199\u7684\uff0c\u800c\u4e14\u53ea\u8f6c\u5199\u5e94\u7528\u7684\u3001\u516c\u5171\u7684\u90e8\u5206\u3002")),(0,a.kt)("h2",{id:"\u4e8c\u4ece\u670d\u52a1\u7aef\u83b7\u53d6\u4ee3\u7406"},"\u4e8c\u3001\u4ece\u670d\u52a1\u7aef\u83b7\u53d6\u4ee3\u7406"),(0,a.kt)("h3",{id:"21-\u751f\u6210\u4ee3\u7406"},"2.1 \u751f\u6210\u4ee3\u7406"),(0,a.kt)("p",null,"\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\uff0c\u90fd\u662f\u6211\u4eec\u81ea\u5df1\u5f00\u53d1\u7684\u8bdd\uff08\u5728\u540c\u4e00\u4e2a\u7535\u8111\uff09\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u672c\u5730\u4ee3\u7406\u751f\u6210\u3002"),(0,a.kt)("p",null,"\u8c03\u7528\u4e0b\u5217\u4ee3\u7801\uff0c\u4f1a\u5c06\u5df2\u6ce8\u518c\u7684\u6240\u6709\u670d\u52a1\uff0c\u5bfc\u51fa\u4ee3\u7406\u4e3a\u5b57\u7b26\u4e32\u3002"),(0,a.kt)("p",null,"RpcStore\u662f",(0,a.kt)("strong",{parentName:"p"},"\u5b9e\u4f8b"),"\uff0c\u6216\u8005\u662fIRpcParser\u7684",(0,a.kt)("strong",{parentName:"p"},"\u5c5e\u6027"),"\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},'string code=RpcStore.GetProxyCodes("MyNameSpace"));\n')),(0,a.kt)("p",null,"\u3010\u793a\u4f8b1\u3011\n\u5c06\u4ee3\u7406\u5b57\u7b26\u4e32\uff0c\u5199\u6210.cs\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7\u94fe\u63a5\u7684\u5f62\u5f0f\uff0c\u5c06\u4ee3\u7801\u6dfb\u52a0\u5230\u5ba2\u6237\u7aef\u9879\u76ee\u3002"),(0,a.kt)("p",null,"\u670d\u52a1\u5668\u4ee3\u7801\uff0c\u5728\u670d\u52a1\u5668\u6267\u884c\u540e\uff0c\u4f1a\u5728\u8fd0\u884c\u8def\u5f84\u4e0b\uff0c\u751f\u6210\u4e00\u4e2a",(0,a.kt)("strong",{parentName:"p"},"WhisperServers.cs"),"\u7684\u6587\u4ef6\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},'var service = new TcpTouchRpcService();\nvar config = new TouchSocketConfig()//\u914d\u7f6e\n .SetListenIPHosts(new IPHost[] { new IPHost(port) })\n .ConfigureContainer(a =>\n {\n a.AddConsoleLogger();\n a.AddFileLogger();\n })\n .ConfigureRpcStore(a =>\n {\n a.RegisterServer();//\u6ce8\u518c\u670d\u52a1\n\n#if DEBUG\n File.WriteAllText("../../../WhisperServers.cs", a.GetProxyCodes("WhisperServers",new Type[] { typeof(TouchRpcAttribute) }));\n#endif\n })\n .SetVerifyToken("TouchRpc");\n\n service.Setup(config)\n .Start();\n')),(0,a.kt)("p",null,"\u7136\u540e\u6253\u5f00\u9700\u8981\u5f15\u5165\u7684\u5ba2\u6237\u7aef\u89e3\u51b3\u65b9\u6848\u3002\u9009\u62e9\u9700\u8981\u6dfb\u52a0\u4ee3\u7406\u7684\u9879\u76ee\uff0c\u4f9d\u6b21\u6267\u884c\uff1a"),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"\u53f3\u51fb\u9879\u76ee=\u300b\u6dfb\u52a0=\u300b\u73b0\u6709\u9879")),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"\u7136\u540e\u9009\u62e9\u670d\u52a1\u5668\u751f\u6210\u7684.cs\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u6dfb\u52a0\u201d\u7684\u4e0b\u62c9\u6846\uff0c\u9009\u62e9\u201c\u6dfb\u52a0\u4e3a\u8fde\u63a5\u201d\u3002")),(0,a.kt)("p",null,"\u6700\u540e\u786e\u8ba4\u6587\u4ef6\u88ab\u6b63\u786e\u6dfb\u52a0\u4e3a\u94fe\u63a5\u3002"),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"\u8fd9\u6837\uff0c\u6bcf\u6b21\u5f53\u670d\u52a1\u6709\u66f4\u65b0\u7684\u65f6\u5019\uff0c\u53ea\u9700\u8981\u542f\u52a8\u4e00\u4e0b\u670d\u52a1\u5668\uff0c\u4ee3\u7406\u5c31\u4f1a\u81ea\u52a8\u5237\u65b0\u3002")),(0,a.kt)("p",null,"\u5b9e\u9645\u4e0a\u5728RpcStore\u5b8c\u6210",(0,a.kt)("strong",{parentName:"p"},"\u670d\u52a1\u6ce8\u518c"),"\u3001",(0,a.kt)("strong",{parentName:"p"},"\u89e3\u6790\u5668\u6dfb\u52a0"),"\u4ee5\u540e\uff0c\u8c03\u7528",(0,a.kt)("inlineCode",{parentName:"p"},"GetProxyInfo"),"\uff0c\u8f93\u5165\u4ee3\u7406\u7c7b\u578b\u3001\u5373\u53ef\u83b7\u5f97\u4ee3\u7406\u4fe1\u606f\uff0c\u7136\u540e\u518d\u901a\u8fc7CodeGenerator.ConvertToCode\u65b9\u6cd5\uff0c\u8f6c\u6362\u4e3a\u53ef\u4ee5",(0,a.kt)("strong",{parentName:"p"},"\u76f4\u63a5\u7f16\u8bd1"),"\u7684\u4ee3\u7801\u3002\n\u6b64\u65f6\uff0c\u4f60\u53ef\u4ee5\u590d\u5236\u3001\u6216\u8005\u76f4\u63a5\u628a\u4ee3\u7406\u4ee3\u7801\u5199\u6210",(0,a.kt)("inlineCode",{parentName:"p"},"\u6e90\u4ee3\u7801"),"\uff08cs\u6587\u4ef6\uff09\u3002\n\u7136\u540e\u4f60\u53ef\u4ee5\u628a\u8fd9\u4e2a\u4ee3\u7801\u5f15\u5165\u5230",(0,a.kt)("strong",{parentName:"p"},"\u5ba2\u6237\u7aef"),"\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},'//\u6216\u8005\u76f4\u63a5\u672c\u5730\u5bfc\u51fa\u4ee3\u7406\u6587\u4ef6\u3002\nServerCellCode[] codes = rpcStore.GetProxyInfo(RpcStore.ProxyAttributeMap.Values.ToArray());\nstring codeString = CodeGenerator.ConvertToCode("RRQMProxy", codes);\n')),(0,a.kt)("p",null,"\u4ea6\u6216\u8005\uff0c\u4e3a\u9632\u6b62\u7be1\u6539\u751f\u6210\u7684\u4ee3\u7801\uff0c\u4e0d\u60f3\u628a\u4ee3\u7406\u4ee3\u7801\u76f4\u63a5\u6295\u5165\u4f7f\u7528\uff0c\u90a3\u53ef\u4ee5\u8003\u8651\u5c06\u4ee3\u7801\u5355\u72ec\u7f16\u8bd1\u6210dll\uff0c\u7136\u540e\u5c06\u7f16\u8bd1\u7684\u7a0b\u5e8f\u96c6\u52a0\u8f7d\u5230\u5ba2\u6237\u7aef\u3002"),(0,a.kt)("admonition",{title:"\u63d0\u793a",type:"tip"},(0,a.kt)("p",{parentName:"admonition"},"\u4e0a\u8ff0\u884c\u4e3a\uff0c\u5747\u662f\u5bfc\u51fa\u6240\u6709\u5df2\u6ce8\u518c\u7684\u670d\u52a1\uff0c\u5f53\u9700\u8981\u5728\u540c\u4e00\u4e2a\u670d\u52a1\u7aef\uff0c\u751f\u6210\u591a\u4e2a\u4e0d\u540c\u4ee3\u7406\u7684\u6e90\u7801\u65f6\uff0c\u53ef\u901a\u8fc7CodeGenerator\u9759\u6001\u7c7b\u7684\u76f8\u5173\u65b9\u6cd5\u76f4\u63a5\u751f\u6210\u3002\u4f8b\u5982\uff1a"),(0,a.kt)("pre",{parentName:"admonition"},(0,a.kt)("code",{parentName:"pre",className:"language-csharp",metastring:"{1}","{1}":!0},'string codes=CodeGenerator.GetProxyCodes("Namespace",new Type[]{typeof(RpcServer) },new Type[] { typeof(TouchRpcAttribute)});\n'))),(0,a.kt)("h3",{id:"22-\u4ee3\u7406\u7c7b\u578b\u6dfb\u52a0"},"2.2 \u4ee3\u7406\u7c7b\u578b\u6dfb\u52a0"),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"\u901a\u8fc7\u4e4b\u524d\u7684\u5b66\u4e60\uff0c\u5927\u5bb6\u53ef\u80fd\u5927\u6982\u660e\u767d\u4e86\uff0c\u5728RRQMRPC\u4e2d\uff0c\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5728\u8fdb\u884c\u4ea4\u4e92\u65f6\uff0c\u6240\u9700\u7684\u6570\u636e\u7ed3\u6784\u4e0d\u8981\u6c42\u662f\u540c\u4e00\u7c7b\u578b\uff0c\u4ec5\u662f",(0,a.kt)("a",{parentName:"p",href:"https://gitee.com/RRQM_OS/RRQM/wikis/RRQM%E4%B8%93%E4%B8%9A%E5%90%8D%E7%A7%B0%E8%A7%A3%E9%87%8A?sort_id=4872799"},"\u6570\u636e\u7c7b\u578b\u7ed3\u6784\u76f8\u540c"),"\u5373\u53ef\u3002\u6240\u4ee5\u5728\u58f0\u660e\u4e86\u670d\u52a1\u4ee5\u540e\uff0c\u670d\u52a1\u4e2d\u6240\u5305\u542b\u7684\u81ea\u5b9a\u4e49\u7c7b\u578b\uff0c\u4f1a\u88ab\u590d\u523b\u6210\u7ed3\u6784\u76f8\u540c\u7684\u7c7b\u578b\uff0c\u4f46\u662f\u8fd9\u4e5f\u4ec5\u4ec5\u5c40\u9650\u4e8e\u53c2\u6570\u4e0e\u670d\u52a1",(0,a.kt)("inlineCode",{parentName:"p"},"\u76f8\u540c\u7a0b\u5e8f\u96c6"),"\u7684\u65f6\u5019\u3002\u5982\u679c\u670d\u52a1\u4e2d\u5f15\u5165\u4e86\u5176\u4ed6\u7a0b\u5e8f\u96c6\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5219\u4e0d\u4f1a\u590d\u523b\u3002\u6240\u4ee5\u5728\u5ba2\u6237\u7aef\u8c03\u7528\u65f6\uff0c\u9700\u8981\u5f15\u5165\u540c\u4e00\u7a0b\u5e8f\u96c6\u3002")),(0,a.kt)("p",null,"\u4f46\u662f\uff0c\u5f80\u5f80\u5728\u670d\u52a1\u4e2d\uff0c\u4f1a\u5f15\u5165\u5176\u4ed6\u7a0b\u5e8f\u96c6\uff0c\u4f8b\u5982\uff0c\u6211\u4eec\u4e60\u60ef\u5728\u9879\u76ee\u4e2d\u5efa\u7acb\u4e00\u4e2aModels\u7a0b\u5e8f\u96c6\uff0c\u7528\u4e8e\u5b58\u653e\u6240\u6709\u7684\u5b9e\u4f53\u6a21\u578b\uff0c\u90a3\u662f\u4e0d\u662f\u610f\u5473\u7740\u5ba2\u6237\u7aef\u4e5f\u5fc5\u987b\u5f15\u5165\u8fd9\u4e2a\u7a0b\u5e8f\u96c6\u624d\u80fd\u8c03\u7528\u5462\uff1f\u6ca1\u522b\u7684\u65b9\u6cd5\u4e86\uff1f\uff1f\n",(0,a.kt)("strong",{parentName:"p"},(0,a.kt)("em",{parentName:"strong"},"\u6709\uff0c\u4e14\u4e0d\u53ea\u6709\u4e00\u79cd"))," ",(0,a.kt)("a",{name:"r9HVa"})),(0,a.kt)("h3",{id:"221-\u6dfb\u52a0\u4ee3\u7406\u7c7b\u578b"},"2.2.1 \u6dfb\u52a0\u4ee3\u7406\u7c7b\u578b"),(0,a.kt)("p",null,"\u5728\u670d\u52a1\u6ce8\u518c\u4e4b\u524d\uff0c\u4efb\u610f\u65f6\u523b\uff0c\u53ef\u8c03\u7528CodeGenerator.AddProxyType\u9759\u6001\u65b9\u6cd5\uff0c\u6dfb\u52a0\u4ee3\u7406\u7c7b\u578b\uff0c\u540c\u65f6\u53ef\u4f20\u5165\u4e00\u4e2abool\u503c\uff0c\u8868\u660e\u662f\u5426\u6df1\u5ea6\u641c\u7d22\uff0c\u6bd4\u5982\uff0c\u5047\u5982RpcArgsClassLib.ProxyClass1\u4e2d\u8fd8\u6709\u5176\u4ed6\u7c7b\u578b\uff0c\u5219\u53c2\u6570\u4e3aTrue\u65f6\uff0c\u4f9d\u7136\u4f1a\u4ee3\u7406\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},"RPCService rpcService = new RPCService();\nCodeGenerator.AddProxyType();\nCodeGenerator.AddProxyType(deepSearch:true);\n")),(0,a.kt)("a",{name:"L9jEG"}),(0,a.kt)("h3",{id:"222-\u6807\u8bb0\u81ea\u5b9a\u4e49\u7c7b"},"2.2.2 \u6807\u8bb0\u81ea\u5b9a\u4e49\u7c7b"),(0,a.kt)("p",null,"\u5728\u9700\u8981\u4ee3\u7406\u7684\u7c7b\u4e0a\u9762\u58f0\u660eRpcProxy\u6807\u7b7e\uff0c\u7136\u540e\u4e5f\u53ef\u4ee5\u91cd\u65b0\u6307\u5b9a\u4ee3\u7406\u7c7b\u540d\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},'[RpcProxy("MyArgs")]\npublic class Args\n{\n}\n')),(0,a.kt)("h2",{id:"\u4e09\u5ba2\u6237\u7aef\u6e90\u4ee3\u7801\u751f\u6210\u4ee3\u7406-\u4f01\u4e1a\u7248"},"\u4e09\u3001\u5ba2\u6237\u7aef\u6e90\u4ee3\u7801\u751f\u6210\u4ee3\u7406 ",(0,a.kt)(l.Z,{mdxType:"Tag"},"\u4f01\u4e1a\u7248")),(0,a.kt)("h3",{id:"31-\u751f\u6210"},"3.1 \u751f\u6210"),(0,a.kt)("p",null,"\u524d\u4e00\u79cd\u65b9\u5f0f\u5df2\u7ecf\u7b97\u662f\u51e0\u8fd1\u5b8c\u7f8e\u7684\u4ee3\u7406\u751f\u6210\u65b9\u6848\uff0c\u4f46\u662f\u6709\u65f6\u5019\uff0c\u5f53\u5927\u5bb6\u534f\u4f5c\u65f6\uff0c\u559c\u6b22\u5168\u90e8\u81ea\u5df1\u6572\u5199\u3002"),(0,a.kt)("p",null,"\u4f8b\u5982\uff1a"),(0,a.kt)("p",null,"\u5bf9\u4e8e\u4e0b\u5217\u670d\u52a1\uff0c\u6709\u65f6\u5019\u5c31\u662f\u559c\u6b22\u81ea\u5df1\u5199\u4e2a\u63a5\u53e3\uff0c\u7136\u540e\u76f4\u63a5\u8c03\u7528\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},'public class MyRpcServer : RpcServer\n{\n [TouchRpc]\n public bool Login(string account, string password)\n {\n if (account == "123" && password == "abc")\n {\n return true;\n }\n\n return false;\n }\n}\n')),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},"public interface IMyRpcServer\n{\n public bool Login(string account, string password);\n}\n")),(0,a.kt)("p",null,"\u4ee5\u5f80\u6765\u8bf4\uff0c\u5b9e\u73b0\u8fd9\u79cd\u65b9\u5f0f\u7684\u7edd\u5927\u591a\u6570\uff0c\u5927\u6982\u662f\u4f7f\u7528IL\u52a8\u6001\u6784\u5efa\u4e00\u4e2a\u7c7b\uff0c\u7136\u540e\u52a8\u6001\u5b9e\u73b0\u63a5\u53e3\u4ee3\u7406\uff0c\u4f2a\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},"IMyRpcServer myRpcServer=ProxyGenerator.CreateProxy();\n")),(0,a.kt)("p",null,"\u4f46\u662f\u73b0\u5728\uff0c\u65f6\u4ee3\u53d8\u4e86\uff0c\u6211\u4eec\u6709\u4e86\u6e90\u4ee3\u7801\u751f\u6210\uff0c\u90a3\u4e48\u4e8b\u60c5\u5c06\u53d8\u5f97\u65e0\u6bd4\u7b80\u5355\u3002"),(0,a.kt)("p",null,"\u540c\u6837\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u63a5\u53e3\uff0c\u5982\u4e0b\uff1a"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},'/// \n/// GeneratorRpcProxy\u7684\u6807\u8bc6\uff0c\u8868\u660e\u8fd9\u4e2a\u63a5\u53e3\u5e94\u8be5\u88ab\u751f\u6210\u5176\u4ed6\u6e90\u4ee3\u7801\u3002\n/// ConsoleApp2.MyRpcServer\u53c2\u6570\u662f\u6574\u4e2arpc\u8c03\u7528\u7684\u524d\u7f00\uff0c\u5373\uff1a\u9664\u65b9\u6cd5\u540d\u7684\u6240\u6709\uff0c\u5305\u62ec\u670d\u52a1\u7684\u7c7b\u540d\u3002\n/// \n[GeneratorRpcProxy("ConsoleApp2.MyRpcServer")]\ninterface IMyRpcServer\n{\n [Description("\u8fd9\u662f\u767b\u5f55\u65b9\u6cd5")]//\u8be5\u4f5c\u7528\u662f\u751f\u6210\u6ce8\u91ca\n [GeneratorRpcMethod]//\u8868\u9762\u8be5\u65b9\u6cd5\u5e94\u8be5\u88ab\u4ee3\u7406\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\uff0c\u76f4\u63a5\u8bbe\u7f6e\u8c03\u7528\u952e\n public bool Login(string account, string password);\n}\n')),(0,a.kt)("p",null,"\u8fd9\u65f6\u5019\uff0c\u795e\u5947\u7684\u4e00\u5e55\u53d1\u751f\u4e86\uff0c\u51e1\u662f\u5b9e\u73b0IRpcClient\u7684\u63a5\u53e3\u7684\u5b9e\u4f8b\uff0c\u90fd\u589e\u52a0\u4e86\u6269\u5c55\u65b9\u6cd5\u3002\u800c\u8fd9\u529f\u80fd\uff0c\u548c\u670d\u52a1\u5668\u751f\u6210\u7684\u6269\u5c55Rpc\u65b9\u6cd5\u7684\u529f\u80fd\u662f\u4e00\u81f4\u7684\u3002"),(0,a.kt)("p",null,(0,a.kt)("img",{src:n(627).Z,width:"927",height:"144"})),(0,a.kt)("admonition",{title:"\u63d0\u793a",type:"tip"},(0,a.kt)("p",{parentName:"admonition"},"\u4e0a\u8ff0\u529f\u80fd\u9700\u8981\u518d\u5b89\u88c5",(0,a.kt)("a",{parentName:"p",href:"https://www.nuget.org/packages/TouchSocketPro.CodeAnalyzer"},"TouchSocketPro.CodeAnalyzer"),"\uff0c\u8be5\u64cd\u4f5c\u4e0d\u4f1a\u4ea7\u751fDLL\u4f9d\u8d56\u3002")),(0,a.kt)("admonition",{title:"\u63d0\u793a",type:"tip"},(0,a.kt)("p",{parentName:"admonition"},"\u5927\u5bb6\u53ef\u80fd\u4f1a\u7591\u95ee\uff0c\u6e90\u4ee3\u7801\u751f\u6210\u4ee3\u7406\uff0c\u548c\u670d\u52a1\u7aef\u751f\u6210\u4ee3\u7406\uff0c\u6709\u4ec0\u4e48\u533a\u522b\uff1f\u6216\u8005\u8bf4\u6709\u4ec0\u4e48\u4f18\u70b9\uff1f\n\u5b9e\u9645\u4e0a\u6ca1\u6709\u533a\u522b\uff0c\u4e5f\u6ca1\u6709\u4f18\u70b9\u3002\u4e4b\u6240\u4ee5\u8bbe\u8ba1\u8fd9\u4e2a\uff0c\u662f\u56e0\u4e3a\u4e4b\u524d\u6709\u4eba\u63d0\u8fc7\u9700\u6c42\uff0c\u60f3\u8981\u5b8c\u5168\u5206\u79bb\u524d\u3001\u540e\u7aef\u3002\u5373\uff1a\u540e\u7aef\u5199\u597d\u670d\u52a1\u540e\uff0c\u524d\u7aef\u81ea\u7531\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\uff0c\u548c\u8c03\u7528\u53c2\u6570\uff0c\u4ec5\u6b64\u800c\u5df2\u3002"),(0,a.kt)("p",{parentName:"admonition"},"\u6240\u4ee5\uff0c\u751f\u6210\u4ee3\u7406\u7684\u65b9\u5f0f\uff0c\u6309\u7167\u5927\u5bb6\u7684\u4e60\u60ef\u9700\u6c42\u9009\u62e9\u5c31\u53ef\u4ee5\u3002")),(0,a.kt)("p",null,(0,a.kt)("a",{parentName:"p",href:"https://gitee.com/RRQM_Home/TouchSocket/tree/master/examples/TouchRpc%E7%AE%80%E5%8D%95%E7%A4%BA%E4%BE%8B/%E6%BA%90%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E4%BB%A3%E7%90%86/GeneratorRpcProxyConsoleApp"},"\u6e90\u4ee3\u7801\u751f\u6210\u4ee3\u7406\u793a\u4f8b\u4ee3\u7801")),(0,a.kt)("h3",{id:"32-\u63a8\u8350\u5199\u6cd5"},"3.2 \u63a8\u8350\u5199\u6cd5"),(0,a.kt)("p",null,"\u5728TouchSocketPro\u4e2d\uff0c\u5173\u4e8eRpc\uff0c\u6211\u4eec\u6709\u66f4\u4e3a\u63a8\u8350\u7684\u5199\u6cd5\u3002\u8be6\u7ec6\u6b65\u9aa4\u5982\u4e0b\uff1a"),(0,a.kt)("p",null,"\uff081\uff09\u65b0\u5efa\u7c7b\u5e93\u9879\u76ee\uff0c\u547d\u540d\u4e3a",(0,a.kt)("inlineCode",{parentName:"p"},"RpcClassLibrary"),"\u3002\u7136\u540e\u5728\u8be5\u7a0b\u5e8f\u96c6\u4e2d\uff0c\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\uff0c\u548c\u63a5\u53e3\u53c2\u6570\u5b9e\u4f53\u7c7b\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},"/// \n/// \u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\u3002\n/// \n[GeneratorRpcProxy]\npublic interface IUserServer:IRpcServer\n{\n [GeneratorRpcMethod]\n [TouchRpc]\n LoginResponse Login(LoginRequest request);\n}\n")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},"public class LoginRequest:RequestBase\n{\n public string Account { get; set; }\n public string Password { get; set; }\n}\n\npublic class LoginResponse : ResponseBase\n{\n}\n\n//\u4e0b\u9762\u4e24\u4e2a\u662f\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u57fa\u7c7b\uff0c\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u589e\u52a0\u5176\u4ed6\u5b57\u6bb5\npublic class RequestBase\n{\n}\n\npublic class ResponseBase\n{\n public Result Result { get; set; }\n}\n")),(0,a.kt)("p",null,"\uff082\uff09\u65b0\u5efa\u7c7b\u5e93\u9879\u76ee\uff0c\u547d\u540d",(0,a.kt)("inlineCode",{parentName:"p"},"RpcImplementationClassLibrary"),"\uff0c\u5f15\u7528",(0,a.kt)("inlineCode",{parentName:"p"},"RpcClassLibrary"),"\u9879\u76ee\uff0c\u7136\u540e\u7528\u4e8e\u5b9e\u73b0\u63a5\u53e3\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},"public class UserServer : IUserServer\n{\n public LoginResponse Login(LoginRequest request)\n {\n //\u8fd4\u56de\u5047\u903b\u8f91\n return new LoginResponse() { Result=Result.Success};\n }\n}\n")),(0,a.kt)("p",null,"(3)\u65b0\u5efa\u63a7\u5236\u53f0\u9879\u76ee\uff0c\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u6216\u5ba2\u6237\u7aef\u90fd\u53ef\u4ee5\uff0c\u7136\u540e\u5982\u679c\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u9700\u8981\u540c\u65f6\u5f15\u7528",(0,a.kt)("inlineCode",{parentName:"p"},"RpcImplementationClassLibrary"),"\u548c",(0,a.kt)("inlineCode",{parentName:"p"},"RpcClassLibrary"),"\uff0c\u5982\u679c\u4f5c\u4e3a\u5ba2\u6237\u7aef\u4ec5\u5f15\u7528",(0,a.kt)("inlineCode",{parentName:"p"},"RpcClassLibrary"),"\u5373\u53ef\u3002"),(0,a.kt)("p",null,"\u5982\u679c\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u9700\u8981\u6309\u63a5\u53e3\u6ce8\u518c\u670d\u52a1"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"},'var service = new TcpTouchRpcService();\nvar config = new TouchSocketConfig()//\u914d\u7f6e\n .SetListenIPHosts(new IPHost[] { new IPHost(7789) })\n .ConfigureContainer(a =>\n {\n a.AddConsoleLogger();\n a.AddFileLogger();\n })\n .ConfigureRpcStore(a => \n {\n a.RegisterServer();\n })\n .SetVerifyToken("TouchRpc");//\u8bbe\u5b9a\u8fde\u63a5\u53e3\u4ee4\uff0c\u4f5c\u7528\u7c7b\u4f3c\u8d26\u53f7\u5bc6\u7801\n\nservice.Setup(config)\n .Start();\n\nservice.Logger.Info($"{service.GetType().Name}\u5df2\u542f\u52a8");\n')),(0,a.kt)("p",null,"\u5982\u679c\u4f5c\u4e3a\u5ba2\u6237\u7aef\uff0c\u76f4\u63a5\u8c03\u7528\u5373\u53ef\u3002"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp",metastring:"{8}","{8}":!0},'TcpTouchRpcClient client = new TcpTouchRpcClient();\nclient.Setup(new TouchSocketConfig()\n .SetRemoteIPHost("127.0.0.1:7789")\n .SetVerifyToken("TouchRpc"));\nclient.Connect();\n\n//Loging\u5373\u4e3a\u5728RpcClassLibrary\u4e2d\u81ea\u52a8\u751f\u6210\u7684\u9879\u76ee\nvar response = client.Login(new RpcClassLibrary.Models.LoginRequest() { Account= "Account",Password= "Account" });\nConsole.WriteLine(response.Result);\n')),(0,a.kt)("p",null,(0,a.kt)("a",{parentName:"p",href:"https://gitee.com/RRQM_Home/TouchSocket/tree/master/examples/TouchRpc%E7%AE%80%E5%8D%95%E7%A4%BA%E4%BE%8B/%E6%8E%A8%E8%8D%90%E7%94%A8%E6%B3%95"},"\u63a8\u8350\u5199\u6cd5\u793a\u4f8b")))}d.isMDXComponent=!0},627:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n.p+"assets/images/generateproxy-1-163d930232955088abd9e846f68067d1.png"}}]);