NewLife.Core.xml 808 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>NewLife.Core</name>
  5. </assembly>
  6. <members>
  7. <member name="T:NewLife.Algorithms.AlignModes">
  8. <summary>
  9. 对齐模型。数据采样时X轴对齐
  10. </summary>
  11. </member>
  12. <member name="F:NewLife.Algorithms.AlignModes.None">
  13. <summary>
  14. 不对齐,原始值
  15. </summary>
  16. </member>
  17. <member name="F:NewLife.Algorithms.AlignModes.Left">
  18. <summary>
  19. 左对齐
  20. </summary>
  21. </member>
  22. <member name="F:NewLife.Algorithms.AlignModes.Center">
  23. <summary>
  24. 中间对齐
  25. </summary>
  26. </member>
  27. <member name="F:NewLife.Algorithms.AlignModes.Right">
  28. <summary>
  29. 右对齐
  30. </summary>
  31. </member>
  32. <member name="T:NewLife.Algorithms.AverageSampling">
  33. <summary>
  34. 平均值采样算法
  35. </summary>
  36. </member>
  37. <member name="P:NewLife.Algorithms.AverageSampling.AlignMode">
  38. <summary>
  39. 对齐模式。每个桶X轴对齐方式
  40. </summary>
  41. </member>
  42. <member name="P:NewLife.Algorithms.AverageSampling.Interpolation">
  43. <summary>
  44. 插值填充算法
  45. </summary>
  46. </member>
  47. <member name="M:NewLife.Algorithms.AverageSampling.Down(NewLife.Data.TimePoint[],System.Int32)">
  48. <summary>
  49. 降采样处理。保留边界两个点
  50. </summary>
  51. <param name="data">原始数据</param>
  52. <param name="threshold">阈值,采样数</param>
  53. <returns></returns>
  54. </member>
  55. <member name="M:NewLife.Algorithms.AverageSampling.Process(NewLife.Data.TimePoint[],System.Int32,System.Int32)">
  56. <summary>
  57. 混合处理,降采样和插值,不保留边界节点
  58. </summary>
  59. <param name="data">原始数据</param>
  60. <param name="size">桶大小。如60/3600/86400</param>
  61. <param name="offset">偏移量。时间不是对齐零点时使用</param>
  62. <returns></returns>
  63. </member>
  64. <member name="T:NewLife.Algorithms.IInterpolation">
  65. <summary>
  66. 插值算法
  67. </summary>
  68. </member>
  69. <member name="M:NewLife.Algorithms.IInterpolation.Process(NewLife.Data.TimePoint[],System.Int32,System.Int32,System.Int64)">
  70. <summary>
  71. 插值处理
  72. </summary>
  73. <param name="data">数据</param>
  74. <param name="prev">上一个点索引</param>
  75. <param name="next">下一个点索引</param>
  76. <param name="current">当前点时间值</param>
  77. <returns></returns>
  78. </member>
  79. <member name="T:NewLife.Algorithms.ISampling">
  80. <summary>
  81. 采样接口。负责降采样和插值处理,用于处理时序数据
  82. </summary>
  83. </member>
  84. <member name="P:NewLife.Algorithms.ISampling.AlignMode">
  85. <summary>
  86. 对齐模式。每个桶X轴对齐方式
  87. </summary>
  88. </member>
  89. <member name="P:NewLife.Algorithms.ISampling.Interpolation">
  90. <summary>
  91. 插值填充算法
  92. </summary>
  93. </member>
  94. <member name="M:NewLife.Algorithms.ISampling.Down(NewLife.Data.TimePoint[],System.Int32)">
  95. <summary>
  96. 降采样处理
  97. </summary>
  98. <param name="data">原始数据</param>
  99. <param name="threshold">阈值,采样数</param>
  100. <returns></returns>
  101. </member>
  102. <member name="M:NewLife.Algorithms.ISampling.Process(NewLife.Data.TimePoint[],System.Int32,System.Int32)">
  103. <summary>
  104. 混合处理,降采样和插值
  105. </summary>
  106. <param name="data">原始数据</param>
  107. <param name="size">桶大小。如60/3600/86400</param>
  108. <param name="offset">偏移量。时间不是对齐零点时使用</param>
  109. <returns></returns>
  110. </member>
  111. <member name="T:NewLife.Algorithms.SamplingHelper">
  112. <summary>
  113. 采样助手
  114. </summary>
  115. </member>
  116. <member name="M:NewLife.Algorithms.SamplingHelper.SplitByAverage(System.Int32,System.Int32,System.Boolean)">
  117. <summary>
  118. 按照指定桶数平均分,可指定保留头尾
  119. </summary>
  120. <param name="dataLength"></param>
  121. <param name="threshold"></param>
  122. <param name="retainEdge"></param>
  123. <returns></returns>
  124. </member>
  125. <member name="M:NewLife.Algorithms.SamplingHelper.SplitByFixedSize(System.Int64[],System.Int32,System.Int32)">
  126. <summary>
  127. 按照固定时间间隔,拆分数据轴为多个桶
  128. </summary>
  129. <param name="data">原始数据</param>
  130. <param name="size">桶大小。如60/3600/86400</param>
  131. <param name="offset">偏移量。时间不是对齐零点时使用</param>
  132. <returns></returns>
  133. </member>
  134. <member name="T:NewLife.Algorithms.LinearInterpolation">
  135. <summary>
  136. 线性插值
  137. </summary>
  138. </member>
  139. <member name="M:NewLife.Algorithms.LinearInterpolation.Process(NewLife.Data.TimePoint[],System.Int32,System.Int32,System.Int64)">
  140. <summary>
  141. 插值处理
  142. </summary>
  143. <param name="data">数据</param>
  144. <param name="prev">上一个点索引</param>
  145. <param name="next">下一个点索引</param>
  146. <param name="current">当前点时间值</param>
  147. <returns></returns>
  148. </member>
  149. <member name="T:NewLife.Caching.Cache">
  150. <summary>缓存</summary>
  151. </member>
  152. <member name="P:NewLife.Caching.Cache.Default">
  153. <summary>默认缓存</summary>
  154. </member>
  155. <member name="P:NewLife.Caching.Cache.Name">
  156. <summary>名称</summary>
  157. </member>
  158. <member name="P:NewLife.Caching.Cache.Expire">
  159. <summary>默认过期时间。避免Set操作时没有设置过期时间,默认0秒表示不过期</summary>
  160. </member>
  161. <member name="P:NewLife.Caching.Cache.Item(System.String)">
  162. <summary>获取和设置缓存,使用默认过期时间</summary>
  163. <param name="key"></param>
  164. <returns></returns>
  165. </member>
  166. <member name="P:NewLife.Caching.Cache.Count">
  167. <summary>缓存个数</summary>
  168. </member>
  169. <member name="P:NewLife.Caching.Cache.Keys">
  170. <summary>所有键</summary>
  171. </member>
  172. <member name="M:NewLife.Caching.Cache.#ctor">
  173. <summary>构造函数</summary>
  174. </member>
  175. <member name="M:NewLife.Caching.Cache.Init(System.String)">
  176. <summary>使用连接字符串初始化配置</summary>
  177. <param name="config"></param>
  178. </member>
  179. <member name="M:NewLife.Caching.Cache.ContainsKey(System.String)">
  180. <summary>是否包含缓存项</summary>
  181. <param name="key"></param>
  182. <returns></returns>
  183. </member>
  184. <member name="M:NewLife.Caching.Cache.Set``1(System.String,``0,System.Int32)">
  185. <summary>设置缓存项</summary>
  186. <param name="key">键</param>
  187. <param name="value">值</param>
  188. <param name="expire">过期时间,秒</param>
  189. <returns></returns>
  190. </member>
  191. <member name="M:NewLife.Caching.Cache.Set``1(System.String,``0,System.TimeSpan)">
  192. <summary>设置缓存项</summary>
  193. <param name="key">键</param>
  194. <param name="value">值</param>
  195. <param name="expire">过期时间</param>
  196. <returns></returns>
  197. </member>
  198. <member name="M:NewLife.Caching.Cache.Get``1(System.String)">
  199. <summary>获取缓存项</summary>
  200. <param name="key">键</param>
  201. <returns></returns>
  202. </member>
  203. <member name="M:NewLife.Caching.Cache.Remove(System.String[])">
  204. <summary>批量移除缓存项</summary>
  205. <param name="keys">键集合</param>
  206. <returns></returns>
  207. </member>
  208. <member name="M:NewLife.Caching.Cache.Clear">
  209. <summary>清空所有缓存项</summary>
  210. </member>
  211. <member name="M:NewLife.Caching.Cache.SetExpire(System.String,System.TimeSpan)">
  212. <summary>设置缓存项有效期</summary>
  213. <param name="key">键</param>
  214. <param name="expire">过期时间,秒</param>
  215. </member>
  216. <member name="M:NewLife.Caching.Cache.GetExpire(System.String)">
  217. <summary>获取缓存项有效期</summary>
  218. <param name="key">键</param>
  219. <returns></returns>
  220. </member>
  221. <member name="M:NewLife.Caching.Cache.GetAll``1(System.Collections.Generic.IEnumerable{System.String})">
  222. <summary>批量获取缓存项</summary>
  223. <typeparam name="T"></typeparam>
  224. <param name="keys"></param>
  225. <returns></returns>
  226. </member>
  227. <member name="M:NewLife.Caching.Cache.SetAll``1(System.Collections.Generic.IDictionary{System.String,``0},System.Int32)">
  228. <summary>批量设置缓存项</summary>
  229. <typeparam name="T"></typeparam>
  230. <param name="values"></param>
  231. <param name="expire">过期时间,秒</param>
  232. </member>
  233. <member name="M:NewLife.Caching.Cache.GetList``1(System.String)">
  234. <summary>获取列表</summary>
  235. <typeparam name="T">元素类型</typeparam>
  236. <param name="key">键</param>
  237. <returns></returns>
  238. </member>
  239. <member name="M:NewLife.Caching.Cache.GetDictionary``1(System.String)">
  240. <summary>获取哈希</summary>
  241. <typeparam name="T">元素类型</typeparam>
  242. <param name="key">键</param>
  243. <returns></returns>
  244. </member>
  245. <member name="M:NewLife.Caching.Cache.GetQueue``1(System.String)">
  246. <summary>获取队列</summary>
  247. <typeparam name="T">元素类型</typeparam>
  248. <param name="key">键</param>
  249. <returns></returns>
  250. </member>
  251. <member name="M:NewLife.Caching.Cache.GetStack``1(System.String)">
  252. <summary>获取栈</summary>
  253. <typeparam name="T">元素类型</typeparam>
  254. <param name="key">键</param>
  255. <returns></returns>
  256. </member>
  257. <member name="M:NewLife.Caching.Cache.GetSet``1(System.String)">
  258. <summary>获取Set</summary>
  259. <typeparam name="T"></typeparam>
  260. <param name="key"></param>
  261. <returns></returns>
  262. </member>
  263. <member name="M:NewLife.Caching.Cache.Add``1(System.String,``0,System.Int32)">
  264. <summary>添加,已存在时不更新</summary>
  265. <typeparam name="T">值类型</typeparam>
  266. <param name="key">键</param>
  267. <param name="value">值</param>
  268. <param name="expire">过期时间,秒</param>
  269. <returns></returns>
  270. </member>
  271. <member name="M:NewLife.Caching.Cache.Replace``1(System.String,``0)">
  272. <summary>设置新值并获取旧值,原子操作</summary>
  273. <typeparam name="T">值类型</typeparam>
  274. <param name="key">键</param>
  275. <param name="value">值</param>
  276. <returns></returns>
  277. </member>
  278. <member name="M:NewLife.Caching.Cache.TryGetValue``1(System.String,``0@)">
  279. <summary>尝试获取指定键,返回是否包含值。有可能缓存项刚好是默认值,或者只是反序列化失败</summary>
  280. <typeparam name="T">值类型</typeparam>
  281. <param name="key">键</param>
  282. <param name="value">值。即使有值也不一定能够返回,可能缓存项刚好是默认值,或者只是反序列化失败</param>
  283. <returns>返回是否包含值,即使反序列化失败</returns>
  284. </member>
  285. <member name="M:NewLife.Caching.Cache.GetOrAdd``1(System.String,System.Func{System.String,``0},System.Int32)">
  286. <summary>获取 或 添加 缓存数据,在数据不存在时执行委托请求数据</summary>
  287. <typeparam name="T"></typeparam>
  288. <param name="key"></param>
  289. <param name="callback"></param>
  290. <param name="expire">过期时间,秒。小于0时采用默认缓存时间<seealso cref="P:NewLife.Caching.Cache.Expire"/></param>
  291. <returns></returns>
  292. </member>
  293. <member name="M:NewLife.Caching.Cache.Increment(System.String,System.Int64)">
  294. <summary>累加,原子操作</summary>
  295. <param name="key">键</param>
  296. <param name="value">变化量</param>
  297. <returns></returns>
  298. </member>
  299. <member name="M:NewLife.Caching.Cache.Increment(System.String,System.Double)">
  300. <summary>累加,原子操作</summary>
  301. <param name="key">键</param>
  302. <param name="value">变化量</param>
  303. <returns></returns>
  304. </member>
  305. <member name="M:NewLife.Caching.Cache.Decrement(System.String,System.Int64)">
  306. <summary>递减,原子操作</summary>
  307. <param name="key">键</param>
  308. <param name="value">变化量</param>
  309. <returns></returns>
  310. </member>
  311. <member name="M:NewLife.Caching.Cache.Decrement(System.String,System.Double)">
  312. <summary>递减,原子操作</summary>
  313. <param name="key">键</param>
  314. <param name="value">变化量</param>
  315. <returns></returns>
  316. </member>
  317. <member name="M:NewLife.Caching.Cache.Commit">
  318. <summary>提交变更。部分提供者需要刷盘</summary>
  319. <returns></returns>
  320. </member>
  321. <member name="M:NewLife.Caching.Cache.AcquireLock(System.String,System.Int32)">
  322. <summary>申请分布式锁</summary>
  323. <param name="key">要锁定的key</param>
  324. <param name="msTimeout">锁等待时间,单位毫秒</param>
  325. <returns></returns>
  326. </member>
  327. <member name="M:NewLife.Caching.Cache.AcquireLock(System.String,System.Int32,System.Int32,System.Boolean)">
  328. <summary>申请分布式锁</summary>
  329. <param name="key">要锁定的key</param>
  330. <param name="msTimeout">锁等待时间,申请加锁时如果遇到冲突则等待的最大时间,单位毫秒</param>
  331. <param name="msExpire">锁过期时间,超过该时间如果没有主动释放则自动释放锁,必须整数秒,单位毫秒</param>
  332. <param name="throwOnFailure">失败时是否抛出异常,如果不抛出异常,可通过返回null得知申请锁失败</param>
  333. <returns></returns>
  334. </member>
  335. <member name="M:NewLife.Caching.Cache.Bench(System.Boolean,System.Int32)">
  336. <summary>多线程性能测试</summary>
  337. <param name="rand">随机读写。顺序,每个线程多次操作一个key;随机,每个线程每次操作不同key</param>
  338. <param name="batch">批量操作。默认0不分批,分批仅针对随机读写,对顺序读写的单key操作没有意义</param>
  339. <remarks>
  340. Memory性能测试[顺序],逻辑处理器 32 个 2,000MHz Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz
  341. 测试 10,000,000 项, 1 线程
  342. 赋值 10,000,000 项, 1 线程,耗时 3,764ms 速度 2,656,748 ops
  343. 读取 10,000,000 项, 1 线程,耗时 1,296ms 速度 7,716,049 ops
  344. 删除 10,000,000 项, 1 线程,耗时 1,230ms 速度 8,130,081 ops
  345. 测试 20,000,000 项, 2 线程
  346. 赋值 20,000,000 项, 2 线程,耗时 3,088ms 速度 6,476,683 ops
  347. 读取 20,000,000 项, 2 线程,耗时 1,051ms 速度 19,029,495 ops
  348. 删除 20,000,000 项, 2 线程,耗时 1,011ms 速度 19,782,393 ops
  349. 测试 40,000,000 项, 4 线程
  350. 赋值 40,000,000 项, 4 线程,耗时 3,060ms 速度 13,071,895 ops
  351. 读取 40,000,000 项, 4 线程,耗时 1,023ms 速度 39,100,684 ops
  352. 删除 40,000,000 项, 4 线程,耗时 994ms 速度 40,241,448 ops
  353. 测试 80,000,000 项, 8 线程
  354. 赋值 80,000,000 项, 8 线程,耗时 3,124ms 速度 25,608,194 ops
  355. 读取 80,000,000 项, 8 线程,耗时 1,171ms 速度 68,317,677 ops
  356. 删除 80,000,000 项, 8 线程,耗时 1,199ms 速度 66,722,268 ops
  357. 测试 320,000,000 项, 32 线程
  358. 赋值 320,000,000 项, 32 线程,耗时 13,857ms 速度 23,093,021 ops
  359. 读取 320,000,000 项, 32 线程,耗时 1,950ms 速度 164,102,564 ops
  360. 删除 320,000,000 项, 32 线程,耗时 3,359ms 速度 95,266,448 ops
  361. 测试 320,000,000 项, 64 线程
  362. 赋值 320,000,000 项, 64 线程,耗时 9,648ms 速度 33,167,495 ops
  363. 读取 320,000,000 项, 64 线程,耗时 1,974ms 速度 162,107,396 ops
  364. 删除 320,000,000 项, 64 线程,耗时 1,907ms 速度 167,802,831 ops
  365. 测试 320,000,000 项,256 线程
  366. 赋值 320,000,000 项,256 线程,耗时 12,429ms 速度 25,746,238 ops
  367. 读取 320,000,000 项,256 线程,耗时 1,907ms 速度 167,802,831 ops
  368. 删除 320,000,000 项,256 线程,耗时 2,350ms 速度 136,170,212 ops
  369. </remarks>
  370. </member>
  371. <member name="M:NewLife.Caching.Cache.BenchOne(System.Int64,System.Int32,System.Boolean,System.Int32)">
  372. <summary>使用指定线程测试指定次数</summary>
  373. <param name="times">次数</param>
  374. <param name="threads">线程</param>
  375. <param name="rand">随机读写</param>
  376. <param name="batch">批量操作</param>
  377. </member>
  378. <member name="M:NewLife.Caching.Cache.BenchGet(System.String,System.Int64,System.Int32,System.Boolean,System.Int32)">
  379. <summary>读取测试</summary>
  380. <param name="key">键</param>
  381. <param name="times">次数</param>
  382. <param name="threads">线程</param>
  383. <param name="rand">随机读写</param>
  384. <param name="batch">批量操作</param>
  385. </member>
  386. <member name="M:NewLife.Caching.Cache.BenchSet(System.String,System.Int64,System.Int32,System.Boolean,System.Int32)">
  387. <summary>赋值测试</summary>
  388. <param name="key">键</param>
  389. <param name="times">次数</param>
  390. <param name="threads">线程</param>
  391. <param name="rand">随机读写</param>
  392. <param name="batch">批量操作</param>
  393. </member>
  394. <member name="M:NewLife.Caching.Cache.BenchRemove(System.String,System.Int64,System.Int32,System.Boolean,System.Int32)">
  395. <summary>删除测试</summary>
  396. <param name="key">键</param>
  397. <param name="times">次数</param>
  398. <param name="threads">线程</param>
  399. <param name="rand">随机读写</param>
  400. <param name="batch">批量操作</param>
  401. </member>
  402. <member name="M:NewLife.Caching.Cache.BenchInc(System.String,System.Int64,System.Int32,System.Boolean,System.Int32)">
  403. <summary>累加测试</summary>
  404. <param name="key">键</param>
  405. <param name="times">次数</param>
  406. <param name="threads">线程</param>
  407. <param name="rand">随机读写</param>
  408. <param name="batch">批量操作</param>
  409. </member>
  410. <member name="M:NewLife.Caching.Cache.ToString">
  411. <summary>已重载。</summary>
  412. <returns></returns>
  413. </member>
  414. <member name="T:NewLife.Caching.CacheLock">
  415. <summary>分布式锁</summary>
  416. </member>
  417. <member name="F:NewLife.Caching.CacheLock._hasLock">
  418. <summary>
  419. 是否持有锁
  420. </summary>
  421. </member>
  422. <member name="P:NewLife.Caching.CacheLock.Key">
  423. <summary>键</summary>
  424. </member>
  425. <member name="M:NewLife.Caching.CacheLock.#ctor(NewLife.Caching.ICache,System.String)">
  426. <summary>实例化</summary>
  427. <param name="client"></param>
  428. <param name="key"></param>
  429. </member>
  430. <member name="M:NewLife.Caching.CacheLock.Acquire(System.Int32,System.Int32)">
  431. <summary>申请锁</summary>
  432. <param name="msTimeout">锁等待时间,申请加锁时如果遇到冲突则等待的最大时间,单位毫秒</param>
  433. <param name="msExpire">锁过期时间,超过该时间如果没有主动释放则自动释放锁,必须整数秒,单位毫秒</param>
  434. <returns></returns>
  435. </member>
  436. <member name="M:NewLife.Caching.CacheLock.Dispose(System.Boolean)">
  437. <summary>销毁</summary>
  438. <param name="disposing"></param>
  439. </member>
  440. <member name="T:NewLife.Caching.CacheProvider">
  441. <summary>分布式缓存架构服务。提供基础缓存及队列服务</summary>
  442. </member>
  443. <member name="P:NewLife.Caching.CacheProvider.Cache">
  444. <summary>全局缓存。各功能模块跨进程共享数据,分布式部署时可用Redis,需要考虑序列化成本。默认单机使用内存缓存</summary>
  445. </member>
  446. <member name="P:NewLife.Caching.CacheProvider.InnerCache">
  447. <summary>应用内本地缓存。默认内存缓存,无需考虑对象序列化成本,缺点是不支持跨进程共享数据</summary>
  448. </member>
  449. <member name="M:NewLife.Caching.CacheProvider.#ctor">
  450. <summary>使用默认缓存实例化</summary>
  451. </member>
  452. <member name="M:NewLife.Caching.CacheProvider.GetQueue``1(System.String,System.String)">
  453. <summary>获取队列。各功能模块跨进程共用的队列</summary>
  454. <typeparam name="T">消息类型</typeparam>
  455. <param name="topic">主题</param>
  456. <param name="group">消费组</param>
  457. <returns></returns>
  458. </member>
  459. <member name="M:NewLife.Caching.CacheProvider.GetInnerQueue``1(System.String)">
  460. <summary>获取内部队列。默认内存队列</summary>
  461. <typeparam name="T">消息类型</typeparam>
  462. <param name="topic">主题</param>
  463. <returns></returns>
  464. </member>
  465. <member name="M:NewLife.Caching.CacheProvider.AcquireLock(System.String,System.Int32)">
  466. <summary>申请分布式锁</summary>
  467. <param name="lockKey">要锁定的键值。建议加上应用模块等前缀以避免冲突</param>
  468. <param name="msTimeout">遇到冲突时等待的最大时间</param>
  469. <returns></returns>
  470. </member>
  471. <member name="T:NewLife.Caching.ICache">
  472. <summary>缓存接口</summary>
  473. <remarks>
  474. 文档 https://newlifex.com/core/icache
  475. </remarks>
  476. </member>
  477. <member name="P:NewLife.Caching.ICache.Name">
  478. <summary>名称</summary>
  479. </member>
  480. <member name="P:NewLife.Caching.ICache.Expire">
  481. <summary>默认缓存时间。默认0秒表示不过期</summary>
  482. </member>
  483. <member name="P:NewLife.Caching.ICache.Item(System.String)">
  484. <summary>获取和设置缓存,永不过期</summary>
  485. <param name="key"></param>
  486. <returns></returns>
  487. </member>
  488. <member name="P:NewLife.Caching.ICache.Count">
  489. <summary>缓存个数</summary>
  490. </member>
  491. <member name="P:NewLife.Caching.ICache.Keys">
  492. <summary>所有键</summary>
  493. </member>
  494. <member name="M:NewLife.Caching.ICache.ContainsKey(System.String)">
  495. <summary>是否包含缓存项</summary>
  496. <param name="key"></param>
  497. <returns></returns>
  498. </member>
  499. <member name="M:NewLife.Caching.ICache.Set``1(System.String,``0,System.Int32)">
  500. <summary>设置缓存项</summary>
  501. <param name="key">键</param>
  502. <param name="value">值</param>
  503. <param name="expire">过期时间,秒。小于0时采用默认缓存时间<seealso cref="P:NewLife.Caching.ICache.Expire"/></param>
  504. <returns></returns>
  505. </member>
  506. <member name="M:NewLife.Caching.ICache.Set``1(System.String,``0,System.TimeSpan)">
  507. <summary>设置缓存项</summary>
  508. <param name="key">键</param>
  509. <param name="value">值</param>
  510. <param name="expire">过期时间</param>
  511. <returns></returns>
  512. </member>
  513. <member name="M:NewLife.Caching.ICache.Get``1(System.String)">
  514. <summary>获取缓存项</summary>
  515. <param name="key">键</param>
  516. <returns></returns>
  517. </member>
  518. <member name="M:NewLife.Caching.ICache.Remove(System.String[])">
  519. <summary>批量移除缓存项</summary>
  520. <param name="keys">键集合</param>
  521. <returns></returns>
  522. </member>
  523. <member name="M:NewLife.Caching.ICache.Clear">
  524. <summary>清空所有缓存项</summary>
  525. </member>
  526. <member name="M:NewLife.Caching.ICache.SetExpire(System.String,System.TimeSpan)">
  527. <summary>设置缓存项有效期</summary>
  528. <param name="key">键</param>
  529. <param name="expire">过期时间</param>
  530. </member>
  531. <member name="M:NewLife.Caching.ICache.GetExpire(System.String)">
  532. <summary>获取缓存项有效期</summary>
  533. <param name="key">键</param>
  534. <returns></returns>
  535. </member>
  536. <member name="M:NewLife.Caching.ICache.GetAll``1(System.Collections.Generic.IEnumerable{System.String})">
  537. <summary>批量获取缓存项</summary>
  538. <typeparam name="T"></typeparam>
  539. <param name="keys"></param>
  540. <returns></returns>
  541. </member>
  542. <member name="M:NewLife.Caching.ICache.SetAll``1(System.Collections.Generic.IDictionary{System.String,``0},System.Int32)">
  543. <summary>批量设置缓存项</summary>
  544. <typeparam name="T"></typeparam>
  545. <param name="values"></param>
  546. <param name="expire">过期时间,秒。小于0时采用默认缓存时间<seealso cref="P:NewLife.Caching.ICache.Expire"/></param>
  547. </member>
  548. <member name="M:NewLife.Caching.ICache.GetList``1(System.String)">
  549. <summary>获取列表</summary>
  550. <typeparam name="T">元素类型</typeparam>
  551. <param name="key">键</param>
  552. <returns></returns>
  553. </member>
  554. <member name="M:NewLife.Caching.ICache.GetDictionary``1(System.String)">
  555. <summary>获取哈希</summary>
  556. <typeparam name="T">元素类型</typeparam>
  557. <param name="key">键</param>
  558. <returns></returns>
  559. </member>
  560. <member name="M:NewLife.Caching.ICache.GetQueue``1(System.String)">
  561. <summary>获取队列</summary>
  562. <typeparam name="T">元素类型</typeparam>
  563. <param name="key">键</param>
  564. <returns></returns>
  565. </member>
  566. <member name="M:NewLife.Caching.ICache.GetStack``1(System.String)">
  567. <summary>获取栈</summary>
  568. <typeparam name="T">元素类型</typeparam>
  569. <param name="key">键</param>
  570. <returns></returns>
  571. </member>
  572. <member name="M:NewLife.Caching.ICache.GetSet``1(System.String)">
  573. <summary>获取Set</summary>
  574. <typeparam name="T"></typeparam>
  575. <param name="key"></param>
  576. <returns></returns>
  577. </member>
  578. <member name="M:NewLife.Caching.ICache.Add``1(System.String,``0,System.Int32)">
  579. <summary>添加,已存在时不更新</summary>
  580. <typeparam name="T">值类型</typeparam>
  581. <param name="key">键</param>
  582. <param name="value">值</param>
  583. <param name="expire">过期时间,秒。小于0时采用默认缓存时间<seealso cref="P:NewLife.Caching.Cache.Expire"/></param>
  584. <returns></returns>
  585. </member>
  586. <member name="M:NewLife.Caching.ICache.Replace``1(System.String,``0)">
  587. <summary>设置新值并获取旧值,原子操作</summary>
  588. <remarks>
  589. 常常配合Increment使用,用于累加到一定数后重置归零,又避免多线程冲突。
  590. </remarks>
  591. <typeparam name="T">值类型</typeparam>
  592. <param name="key">键</param>
  593. <param name="value">值</param>
  594. <returns></returns>
  595. </member>
  596. <member name="M:NewLife.Caching.ICache.TryGetValue``1(System.String,``0@)">
  597. <summary>尝试获取指定键,返回是否包含值。有可能缓存项刚好是默认值,或者只是反序列化失败,解决缓存穿透问题</summary>
  598. <typeparam name="T">值类型</typeparam>
  599. <param name="key">键</param>
  600. <param name="value">值。即使有值也不一定能够返回,可能缓存项刚好是默认值,或者只是反序列化失败</param>
  601. <returns>返回是否包含值,即使反序列化失败</returns>
  602. </member>
  603. <member name="M:NewLife.Caching.ICache.GetOrAdd``1(System.String,System.Func{System.String,``0},System.Int32)">
  604. <summary>获取 或 添加 缓存数据,在数据不存在时执行委托请求数据</summary>
  605. <typeparam name="T"></typeparam>
  606. <param name="key"></param>
  607. <param name="callback"></param>
  608. <param name="expire">过期时间,秒。小于0时采用默认缓存时间<seealso cref="P:NewLife.Caching.Cache.Expire"/></param>
  609. <returns></returns>
  610. </member>
  611. <member name="M:NewLife.Caching.ICache.Increment(System.String,System.Int64)">
  612. <summary>累加,原子操作</summary>
  613. <param name="key">键</param>
  614. <param name="value">变化量</param>
  615. <returns></returns>
  616. </member>
  617. <member name="M:NewLife.Caching.ICache.Increment(System.String,System.Double)">
  618. <summary>累加,原子操作</summary>
  619. <param name="key">键</param>
  620. <param name="value">变化量</param>
  621. <returns></returns>
  622. </member>
  623. <member name="M:NewLife.Caching.ICache.Decrement(System.String,System.Int64)">
  624. <summary>递减,原子操作</summary>
  625. <param name="key">键</param>
  626. <param name="value">变化量</param>
  627. <returns></returns>
  628. </member>
  629. <member name="M:NewLife.Caching.ICache.Decrement(System.String,System.Double)">
  630. <summary>递减,原子操作</summary>
  631. <param name="key">键</param>
  632. <param name="value">变化量</param>
  633. <returns></returns>
  634. </member>
  635. <member name="M:NewLife.Caching.ICache.Commit">
  636. <summary>提交变更。部分提供者需要刷盘</summary>
  637. <returns></returns>
  638. </member>
  639. <member name="M:NewLife.Caching.ICache.AcquireLock(System.String,System.Int32)">
  640. <summary>申请分布式锁</summary>
  641. <param name="key">要锁定的key</param>
  642. <param name="msTimeout">锁等待时间,单位毫秒</param>
  643. <returns></returns>
  644. </member>
  645. <member name="M:NewLife.Caching.ICache.AcquireLock(System.String,System.Int32,System.Int32,System.Boolean)">
  646. <summary>申请分布式锁</summary>
  647. <param name="key">要锁定的key</param>
  648. <param name="msTimeout">锁等待时间,申请加锁时如果遇到冲突则等待的最大时间,单位毫秒</param>
  649. <param name="msExpire">锁过期时间,超过该时间如果没有主动释放则自动释放锁,必须整数秒,单位毫秒</param>
  650. <param name="throwOnFailure">失败时是否抛出异常,如果不抛出异常,可通过返回null得知申请锁失败</param>
  651. <returns></returns>
  652. </member>
  653. <member name="M:NewLife.Caching.ICache.Bench(System.Boolean,System.Int32)">
  654. <summary>多线程性能测试</summary>
  655. <param name="rand">随机读写。顺序,每个线程多次操作一个key;随机,每个线程每次操作不同key</param>
  656. <param name="batch">批量操作。默认0不分批,分批仅针对随机读写,对顺序读写的单key操作没有意义</param>
  657. </member>
  658. <member name="T:NewLife.Caching.ICacheProvider">
  659. <summary>分布式缓存架构服务。提供基础缓存及队列服务</summary>
  660. <remarks>
  661. 文档 https://newlifex.com/core/icacheprovider
  662. 根据实际开发经验,即使在分布式系统中,也有大量的数据是不需要跨进程共享的,因此本接口提供了两级缓存。
  663. 进程内缓存使用<see cref="P:NewLife.Caching.ICacheProvider.InnerCache"/>,可以规避对象序列化成本,跨进程缓存使用<see cref="P:NewLife.Caching.ICacheProvider.Cache"/>。
  664. 借助该缓存架构,可以实现各功能模块跨进程共享数据,分布式部署时可用Redis,需要考虑序列化成本。
  665. 使用队列时,可根据是否设置消费组来决定使用简单队列还是完整队列。
  666. 简单队列(如RedisQueue)可用作命令队列,Topic很多,但几乎没有消息。
  667. 完整队列(如RedisStream)可用作消息队列,Topic很少,但消息很多,并且支持多消费组。
  668. </remarks>
  669. </member>
  670. <member name="P:NewLife.Caching.ICacheProvider.Cache">
  671. <summary>全局缓存。各功能模块跨进程共享数据,分布式部署时可用Redis,需要考虑序列化成本。默认单机使用内存缓存</summary>
  672. </member>
  673. <member name="P:NewLife.Caching.ICacheProvider.InnerCache">
  674. <summary>应用内本地缓存。默认内存缓存,无需考虑对象序列化成本,缺点是不支持跨进程共享数据</summary>
  675. </member>
  676. <member name="M:NewLife.Caching.ICacheProvider.GetQueue``1(System.String,System.String)">
  677. <summary>获取队列。各功能模块跨进程共用的队列</summary>
  678. <remarks>
  679. 使用队列时,可根据是否设置消费组来决定使用简单队列还是完整队列。
  680. 简单队列(如RedisQueue)可用作命令队列,Topic很多,但几乎没有消息。
  681. 完整队列(如RedisStream)可用作消息队列,Topic很少,但消息很多,并且支持多消费组。
  682. </remarks>
  683. <typeparam name="T">消息类型。用于消息生产者时,可指定为Object</typeparam>
  684. <param name="topic">主题</param>
  685. <param name="group">消费组。未指定消费组时使用简单队列(如RedisQueue),指定消费组时使用完整队列(如RedisStream)</param>
  686. <returns></returns>
  687. </member>
  688. <member name="M:NewLife.Caching.ICacheProvider.GetInnerQueue``1(System.String)">
  689. <summary>获取内部队列。默认内存队列</summary>
  690. <typeparam name="T">消息类型</typeparam>
  691. <param name="topic">主题</param>
  692. <returns></returns>
  693. </member>
  694. <member name="M:NewLife.Caching.ICacheProvider.AcquireLock(System.String,System.Int32)">
  695. <summary>申请分布式锁</summary>
  696. <remarks>
  697. 一般实现为Redis分布式锁,申请锁的具体表现为锁定某个key,锁维持时间为msTimeout,遇到冲突时等待msTimeout时间。
  698. 如果在等待时间内获得锁,则返回一个IDisposable对象,离开using代码块时自动释放锁。
  699. 如果在等待时间内没有获得锁,则抛出异常,需要自己处理锁冲突的情况。
  700. 如果希望指定不同的维持时间和等待时间,可以使用<see cref="T:NewLife.Caching.ICache"/>接口的<see cref="M:NewLife.Caching.ICache.AcquireLock(System.String,System.Int32,System.Int32,System.Boolean)"/>方法。
  701. </remarks>
  702. <param name="lockKey">要锁定的键值。建议加上应用模块等前缀以避免冲突</param>
  703. <param name="msTimeout">遇到冲突时等待的最大时间,同时也是锁维持的时间</param>
  704. <returns></returns>
  705. </member>
  706. <member name="T:NewLife.Caching.IProducerConsumer`1">
  707. <summary>轻量级生产者消费者接口</summary>
  708. <remarks>
  709. 不一定支持Ack机制;也不支持消息体与消息键分离
  710. </remarks>
  711. <typeparam name="T"></typeparam>
  712. </member>
  713. <member name="P:NewLife.Caching.IProducerConsumer`1.Count">
  714. <summary>元素个数</summary>
  715. </member>
  716. <member name="P:NewLife.Caching.IProducerConsumer`1.IsEmpty">
  717. <summary>集合是否为空</summary>
  718. </member>
  719. <member name="M:NewLife.Caching.IProducerConsumer`1.Add(`0[])">
  720. <summary>生产添加</summary>
  721. <param name="values"></param>
  722. <returns></returns>
  723. </member>
  724. <member name="M:NewLife.Caching.IProducerConsumer`1.Take(System.Int32)">
  725. <summary>消费获取一批</summary>
  726. <param name="count"></param>
  727. <returns></returns>
  728. </member>
  729. <member name="M:NewLife.Caching.IProducerConsumer`1.TakeOne(System.Int32)">
  730. <summary>消费获取一个</summary>
  731. <param name="timeout">超时。默认0秒,永久等待</param>
  732. <returns></returns>
  733. </member>
  734. <member name="M:NewLife.Caching.IProducerConsumer`1.TakeOneAsync(System.Int32)">
  735. <summary>异步消费获取一个</summary>
  736. <param name="timeout">超时。单位秒,0秒表示永久等待</param>
  737. <returns></returns>
  738. </member>
  739. <member name="M:NewLife.Caching.IProducerConsumer`1.TakeOneAsync(System.Int32,System.Threading.CancellationToken)">
  740. <summary>异步消费获取一个</summary>
  741. <param name="timeout">超时。单位秒,0秒表示永久等待</param>
  742. <param name="cancellationToken">取消通知</param>
  743. <returns></returns>
  744. </member>
  745. <member name="M:NewLife.Caching.IProducerConsumer`1.Acknowledge(System.String[])">
  746. <summary>确认消费</summary>
  747. <param name="keys"></param>
  748. <returns></returns>
  749. </member>
  750. <member name="T:NewLife.Caching.KeyEventArgs">
  751. <summary>缓存键事件参数</summary>
  752. </member>
  753. <member name="P:NewLife.Caching.KeyEventArgs.Key">
  754. <summary>缓存键</summary>
  755. </member>
  756. <member name="T:NewLife.Caching.MemoryCache">
  757. <summary>默认字典缓存</summary>
  758. </member>
  759. <member name="F:NewLife.Caching.MemoryCache._cache">
  760. <summary>缓存核心</summary>
  761. </member>
  762. <member name="P:NewLife.Caching.MemoryCache.Capacity">
  763. <summary>容量。容量超标时,采用LRU机制删除,默认100_000</summary>
  764. </member>
  765. <member name="P:NewLife.Caching.MemoryCache.Period">
  766. <summary>定时清理时间,默认60秒</summary>
  767. </member>
  768. <member name="E:NewLife.Caching.MemoryCache.KeyExpired">
  769. <summary>缓存键过期</summary>
  770. </member>
  771. <member name="P:NewLife.Caching.MemoryCache.Instance">
  772. <summary>默认缓存</summary>
  773. </member>
  774. <member name="M:NewLife.Caching.MemoryCache.#ctor">
  775. <summary>实例化一个内存字典缓存</summary>
  776. </member>
  777. <member name="M:NewLife.Caching.MemoryCache.Dispose(System.Boolean)">
  778. <summary>销毁</summary>
  779. <param name="disposing"></param>
  780. </member>
  781. <member name="P:NewLife.Caching.MemoryCache.Count">
  782. <summary>缓存项。原子计数</summary>
  783. </member>
  784. <member name="P:NewLife.Caching.MemoryCache.Keys">
  785. <summary>所有键。实际返回只读列表新实例,数据量较大时注意性能</summary>
  786. </member>
  787. <member name="M:NewLife.Caching.MemoryCache.Init(System.String)">
  788. <summary>初始化配置</summary>
  789. <param name="config"></param>
  790. </member>
  791. <member name="M:NewLife.Caching.MemoryCache.GetOrAdd``1(System.String,``0,System.Int32)">
  792. <summary>获取或添加缓存项</summary>
  793. <typeparam name="T">值类型</typeparam>
  794. <param name="key">键</param>
  795. <param name="value">值</param>
  796. <param name="expire">过期时间,秒</param>
  797. <returns></returns>
  798. </member>
  799. <member name="M:NewLife.Caching.MemoryCache.ContainsKey(System.String)">
  800. <summary>是否包含缓存项</summary>
  801. <param name="key"></param>
  802. <returns></returns>
  803. </member>
  804. <member name="M:NewLife.Caching.MemoryCache.Set``1(System.String,``0,System.Int32)">
  805. <summary>添加缓存项,已存在时更新</summary>
  806. <typeparam name="T">值类型</typeparam>
  807. <param name="key">键</param>
  808. <param name="value">值</param>
  809. <param name="expire">过期时间,秒</param>
  810. <returns></returns>
  811. </member>
  812. <member name="M:NewLife.Caching.MemoryCache.Get``1(System.String)">
  813. <summary>获取缓存项,不存在时返回默认值</summary>
  814. <param name="key">键</param>
  815. <returns></returns>
  816. </member>
  817. <member name="M:NewLife.Caching.MemoryCache.Remove(System.String[])">
  818. <summary>批量移除缓存项</summary>
  819. <param name="keys">键集合</param>
  820. <returns>实际移除个数</returns>
  821. </member>
  822. <member name="M:NewLife.Caching.MemoryCache.Clear">
  823. <summary>清空所有缓存项</summary>
  824. </member>
  825. <member name="M:NewLife.Caching.MemoryCache.SetExpire(System.String,System.TimeSpan)">
  826. <summary>设置缓存项有效期</summary>
  827. <param name="key">键</param>
  828. <param name="expire">过期时间</param>
  829. <returns>设置是否成功</returns>
  830. </member>
  831. <member name="M:NewLife.Caching.MemoryCache.GetExpire(System.String)">
  832. <summary>获取缓存项有效期,不存在时返回Zero</summary>
  833. <param name="key">键</param>
  834. <returns></returns>
  835. </member>
  836. <member name="M:NewLife.Caching.MemoryCache.Add``1(System.String,``0,System.Int32)">
  837. <summary>添加,已存在时不更新,常用于锁争夺</summary>
  838. <typeparam name="T">值类型</typeparam>
  839. <param name="key">键</param>
  840. <param name="value">值</param>
  841. <param name="expire">过期时间,秒</param>
  842. <returns></returns>
  843. </member>
  844. <member name="M:NewLife.Caching.MemoryCache.Replace``1(System.String,``0)">
  845. <summary>设置新值并获取旧值,原子操作</summary>
  846. <typeparam name="T">值类型</typeparam>
  847. <param name="key">键</param>
  848. <param name="value">值</param>
  849. <returns></returns>
  850. </member>
  851. <member name="M:NewLife.Caching.MemoryCache.TryGetValue``1(System.String,``0@)">
  852. <summary>尝试获取指定键,返回是否包含值。有可能缓存项刚好是默认值,或者只是反序列化失败</summary>
  853. <remarks>
  854. 在 MemoryCache 中,如果某个key过期,在清理之前仍然可以通过TryGet访问,并且更新访问时间,避免被清理。
  855. </remarks>
  856. <typeparam name="T">值类型</typeparam>
  857. <param name="key">键</param>
  858. <param name="value">值。即使有值也不一定能够返回,可能缓存项刚好是默认值,或者只是反序列化失败</param>
  859. <returns>返回是否包含值,即使反序列化失败</returns>
  860. </member>
  861. <member name="M:NewLife.Caching.MemoryCache.GetOrAdd``1(System.String,System.Func{System.String,``0},System.Int32)">
  862. <summary>获取 或 添加 缓存数据,在数据不存在时执行委托请求数据</summary>
  863. <typeparam name="T"></typeparam>
  864. <param name="key"></param>
  865. <param name="callback"></param>
  866. <param name="expire">过期时间,秒。小于0时采用默认缓存时间<seealso cref="P:NewLife.Caching.Cache.Expire"/></param>
  867. <returns></returns>
  868. </member>
  869. <member name="M:NewLife.Caching.MemoryCache.Increment(System.String,System.Int64)">
  870. <summary>累加,原子操作</summary>
  871. <param name="key">键</param>
  872. <param name="value">变化量</param>
  873. <returns></returns>
  874. </member>
  875. <member name="M:NewLife.Caching.MemoryCache.Increment(System.String,System.Double)">
  876. <summary>累加,原子操作</summary>
  877. <param name="key">键</param>
  878. <param name="value">变化量</param>
  879. <returns></returns>
  880. </member>
  881. <member name="M:NewLife.Caching.MemoryCache.Decrement(System.String,System.Int64)">
  882. <summary>递减,原子操作</summary>
  883. <param name="key">键</param>
  884. <param name="value">变化量</param>
  885. <returns></returns>
  886. </member>
  887. <member name="M:NewLife.Caching.MemoryCache.Decrement(System.String,System.Double)">
  888. <summary>递减,原子操作</summary>
  889. <param name="key">键</param>
  890. <param name="value">变化量</param>
  891. <returns></returns>
  892. </member>
  893. <member name="M:NewLife.Caching.MemoryCache.GetList``1(System.String)">
  894. <summary>获取列表</summary>
  895. <typeparam name="T"></typeparam>
  896. <param name="key"></param>
  897. <returns></returns>
  898. </member>
  899. <member name="M:NewLife.Caching.MemoryCache.GetDictionary``1(System.String)">
  900. <summary>获取哈希</summary>
  901. <typeparam name="T"></typeparam>
  902. <param name="key"></param>
  903. <returns></returns>
  904. </member>
  905. <member name="M:NewLife.Caching.MemoryCache.GetQueue``1(System.String)">
  906. <summary>获取队列</summary>
  907. <typeparam name="T"></typeparam>
  908. <param name="key"></param>
  909. <returns></returns>
  910. </member>
  911. <member name="M:NewLife.Caching.MemoryCache.GetStack``1(System.String)">
  912. <summary>获取栈</summary>
  913. <typeparam name="T"></typeparam>
  914. <param name="key"></param>
  915. <returns></returns>
  916. </member>
  917. <member name="M:NewLife.Caching.MemoryCache.GetSet``1(System.String)">
  918. <summary>获取Set</summary>
  919. <remarks>基于HashSet,非线程安全</remarks>
  920. <typeparam name="T"></typeparam>
  921. <param name="key"></param>
  922. <returns></returns>
  923. </member>
  924. <member name="M:NewLife.Caching.MemoryCache.GetOrAddItem(System.String,System.Func{System.String,System.Object})">
  925. <summary>获取 或 添加 缓存项</summary>
  926. <param name="key"></param>
  927. <param name="valueFactory"></param>
  928. <returns></returns>
  929. </member>
  930. <member name="T:NewLife.Caching.MemoryCache.CacheItem">
  931. <summary>缓存项</summary>
  932. </member>
  933. <member name="P:NewLife.Caching.MemoryCache.CacheItem.Value">
  934. <summary>数值</summary>
  935. </member>
  936. <member name="P:NewLife.Caching.MemoryCache.CacheItem.ExpiredTime">
  937. <summary>过期时间</summary>
  938. </member>
  939. <member name="P:NewLife.Caching.MemoryCache.CacheItem.Expired">
  940. <summary>是否过期</summary>
  941. </member>
  942. <member name="P:NewLife.Caching.MemoryCache.CacheItem.VisitTime">
  943. <summary>访问时间</summary>
  944. </member>
  945. <member name="M:NewLife.Caching.MemoryCache.CacheItem.#ctor(System.Object,System.Int32)">
  946. <summary>构造缓存项</summary>
  947. <param name="value"></param>
  948. <param name="expire"></param>
  949. </member>
  950. <member name="M:NewLife.Caching.MemoryCache.CacheItem.Set(System.Object,System.Int32)">
  951. <summary>设置数值和过期时间</summary>
  952. <param name="value"></param>
  953. <param name="expire">过期时间,秒</param>
  954. </member>
  955. <member name="M:NewLife.Caching.MemoryCache.CacheItem.Visit">
  956. <summary>更新访问时间并返回数值</summary>
  957. <returns></returns>
  958. </member>
  959. <member name="M:NewLife.Caching.MemoryCache.CacheItem.Inc(System.Int64)">
  960. <summary>递增</summary>
  961. <param name="value"></param>
  962. <returns></returns>
  963. </member>
  964. <member name="M:NewLife.Caching.MemoryCache.CacheItem.Inc(System.Double)">
  965. <summary>递增</summary>
  966. <param name="value"></param>
  967. <returns></returns>
  968. </member>
  969. <member name="M:NewLife.Caching.MemoryCache.CacheItem.Dec(System.Int64)">
  970. <summary>递减</summary>
  971. <param name="value"></param>
  972. <returns></returns>
  973. </member>
  974. <member name="M:NewLife.Caching.MemoryCache.CacheItem.Dec(System.Double)">
  975. <summary>递减</summary>
  976. <param name="value"></param>
  977. <returns></returns>
  978. </member>
  979. <member name="F:NewLife.Caching.MemoryCache._clearTimer">
  980. <summary>清理会话计时器</summary>
  981. </member>
  982. <member name="M:NewLife.Caching.MemoryCache.RemoveNotAlive(System.Object)">
  983. <summary>移除过期的缓存项</summary>
  984. </member>
  985. <member name="M:NewLife.Caching.MemoryCache.OnExpire(System.String)">
  986. <summary>缓存过期</summary>
  987. <param name="key"></param>
  988. </member>
  989. <member name="M:NewLife.Caching.MemoryCache.Save(System.IO.Stream)">
  990. <summary>保存到数据流</summary>
  991. <param name="stream"></param>
  992. <returns></returns>
  993. </member>
  994. <member name="M:NewLife.Caching.MemoryCache.Load(System.IO.Stream)">
  995. <summary>从数据流加载</summary>
  996. <param name="stream"></param>
  997. <returns></returns>
  998. </member>
  999. <member name="M:NewLife.Caching.MemoryCache.Save(System.String,System.Boolean)">
  1000. <summary>保存到文件</summary>
  1001. <param name="file"></param>
  1002. <param name="compressed"></param>
  1003. <returns></returns>
  1004. </member>
  1005. <member name="M:NewLife.Caching.MemoryCache.Load(System.String,System.Boolean)">
  1006. <summary>从文件加载</summary>
  1007. <param name="file"></param>
  1008. <param name="compressed"></param>
  1009. <returns></returns>
  1010. </member>
  1011. <member name="M:NewLife.Caching.MemoryCache.BenchOne(System.Int64,System.Int32,System.Boolean,System.Int32)">
  1012. <summary>使用指定线程测试指定次数</summary>
  1013. <param name="times">次数</param>
  1014. <param name="threads">线程</param>
  1015. <param name="rand">随机读写</param>
  1016. <param name="batch">批量操作</param>
  1017. </member>
  1018. <member name="T:NewLife.Caching.MemoryQueue`1">
  1019. <summary>生产者消费者</summary>
  1020. <typeparam name="T"></typeparam>
  1021. </member>
  1022. <member name="M:NewLife.Caching.MemoryQueue`1.#ctor">
  1023. <summary>实例化内存队列</summary>
  1024. </member>
  1025. <member name="M:NewLife.Caching.MemoryQueue`1.#ctor(System.Collections.Concurrent.IProducerConsumerCollection{`0})">
  1026. <summary>实例化内存队列</summary>
  1027. <param name="collection"></param>
  1028. </member>
  1029. <member name="P:NewLife.Caching.MemoryQueue`1.Count">
  1030. <summary>元素个数</summary>
  1031. </member>
  1032. <member name="P:NewLife.Caching.MemoryQueue`1.IsEmpty">
  1033. <summary>集合是否为空</summary>
  1034. </member>
  1035. <member name="M:NewLife.Caching.MemoryQueue`1.Dispose(System.Boolean)">
  1036. <summary>销毁</summary>
  1037. <param name="disposing"></param>
  1038. </member>
  1039. <member name="M:NewLife.Caching.MemoryQueue`1.Add(`0[])">
  1040. <summary>生产添加</summary>
  1041. <param name="values"></param>
  1042. <returns></returns>
  1043. </member>
  1044. <member name="M:NewLife.Caching.MemoryQueue`1.Take(System.Int32)">
  1045. <summary>消费获取</summary>
  1046. <param name="count"></param>
  1047. <returns></returns>
  1048. </member>
  1049. <member name="M:NewLife.Caching.MemoryQueue`1.TakeOne(System.Int32)">
  1050. <summary>消费一个</summary>
  1051. <param name="timeout">超时。默认0秒,永久等待</param>
  1052. <returns></returns>
  1053. </member>
  1054. <member name="M:NewLife.Caching.MemoryQueue`1.TakeOneAsync(System.Int32)">
  1055. <summary>消费获取,异步阻塞</summary>
  1056. <param name="timeout">超时。单位秒,0秒表示永久等待</param>
  1057. <returns></returns>
  1058. </member>
  1059. <member name="M:NewLife.Caching.MemoryQueue`1.TakeOneAsync(System.Int32,System.Threading.CancellationToken)">
  1060. <summary>消费获取,异步阻塞</summary>
  1061. <param name="timeout">超时。单位秒,0秒表示永久等待</param>
  1062. <param name="cancellationToken">取消令牌</param>
  1063. <returns></returns>
  1064. </member>
  1065. <member name="M:NewLife.Caching.MemoryQueue`1.Acknowledge(System.String[])">
  1066. <summary>确认消费</summary>
  1067. <param name="keys"></param>
  1068. <returns></returns>
  1069. </member>
  1070. <member name="T:NewLife.Collections.ConcurrentHashSet`1">
  1071. <summary>并行哈希集合</summary>
  1072. <remarks>
  1073. 主要用于频繁添加删除而又要遍历的场合
  1074. </remarks>
  1075. </member>
  1076. <member name="P:NewLife.Collections.ConcurrentHashSet`1.IsEmpty">
  1077. <summary>是否空集合</summary>
  1078. </member>
  1079. <member name="P:NewLife.Collections.ConcurrentHashSet`1.Count">
  1080. <summary>元素个数</summary>
  1081. </member>
  1082. <member name="M:NewLife.Collections.ConcurrentHashSet`1.Contain(`0)">
  1083. <summary>是否包含元素</summary>
  1084. <param name="item"></param>
  1085. <returns></returns>
  1086. </member>
  1087. <member name="M:NewLife.Collections.ConcurrentHashSet`1.TryAdd(`0)">
  1088. <summary>尝试添加</summary>
  1089. <param name="item"></param>
  1090. <returns></returns>
  1091. </member>
  1092. <member name="M:NewLife.Collections.ConcurrentHashSet`1.TryRemove(`0)">
  1093. <summary>尝试删除</summary>
  1094. <param name="item"></param>
  1095. <returns></returns>
  1096. </member>
  1097. <member name="T:NewLife.Collections.IDictionarySource">
  1098. <summary>
  1099. 字典数据源接口。定义该模型类支持输出名值字典,便于序列化传输
  1100. </summary>
  1101. </member>
  1102. <member name="M:NewLife.Collections.IDictionarySource.ToDictionary">
  1103. <summary>
  1104. 把对象转为名值字典,便于序列化传输
  1105. </summary>
  1106. <returns></returns>
  1107. </member>
  1108. <member name="T:NewLife.Collections.IPool`1">
  1109. <summary>对象池接口</summary>
  1110. <remarks>
  1111. 文档 https://newlifex.com/core/object_pool
  1112. </remarks>
  1113. <typeparam name="T"></typeparam>
  1114. </member>
  1115. <member name="P:NewLife.Collections.IPool`1.Max">
  1116. <summary>对象池大小</summary>
  1117. </member>
  1118. <member name="M:NewLife.Collections.IPool`1.Get">
  1119. <summary>获取</summary>
  1120. <returns></returns>
  1121. </member>
  1122. <member name="M:NewLife.Collections.IPool`1.Put(`0)">
  1123. <summary>归还</summary>
  1124. <param name="value"></param>
  1125. </member>
  1126. <member name="M:NewLife.Collections.IPool`1.Return(`0)">
  1127. <summary>归还</summary>
  1128. <param name="value"></param>
  1129. </member>
  1130. <member name="M:NewLife.Collections.IPool`1.Clear">
  1131. <summary>清空</summary>
  1132. </member>
  1133. <member name="T:NewLife.Collections.Pool">
  1134. <summary>对象池扩展</summary>
  1135. <remarks>
  1136. 文档 https://newlifex.com/core/object_pool
  1137. </remarks>
  1138. </member>
  1139. <member name="P:NewLife.Collections.Pool.StringBuilder">
  1140. <summary>字符串构建器池</summary>
  1141. </member>
  1142. <member name="M:NewLife.Collections.Pool.Put(System.Text.StringBuilder,System.Boolean)">
  1143. <summary>归还一个字符串构建器到对象池</summary>
  1144. <param name="sb"></param>
  1145. <param name="requireResult">是否需要返回结果</param>
  1146. <returns></returns>
  1147. </member>
  1148. <member name="M:NewLife.Collections.Pool.Return(System.Text.StringBuilder,System.Boolean)">
  1149. <summary>归还一个字符串构建器到对象池</summary>
  1150. <param name="sb"></param>
  1151. <param name="returnResult">是否需要返回结果</param>
  1152. <returns></returns>
  1153. </member>
  1154. <member name="T:NewLife.Collections.Pool.StringBuilderPool">
  1155. <summary>字符串构建器池</summary>
  1156. </member>
  1157. <member name="P:NewLife.Collections.Pool.StringBuilderPool.InitialCapacity">
  1158. <summary>初始容量。默认100个</summary>
  1159. </member>
  1160. <member name="P:NewLife.Collections.Pool.StringBuilderPool.MaximumCapacity">
  1161. <summary>最大容量。超过该大小时不进入池内,默认4k</summary>
  1162. </member>
  1163. <member name="M:NewLife.Collections.Pool.StringBuilderPool.OnCreate">
  1164. <summary>创建</summary>
  1165. <returns></returns>
  1166. </member>
  1167. <member name="M:NewLife.Collections.Pool.StringBuilderPool.Put(System.Text.StringBuilder)">
  1168. <summary>归还</summary>
  1169. <param name="value"></param>
  1170. <returns></returns>
  1171. </member>
  1172. <member name="M:NewLife.Collections.Pool.StringBuilderPool.Return(System.Text.StringBuilder)">
  1173. <summary>归还</summary>
  1174. <param name="value"></param>
  1175. <returns></returns>
  1176. </member>
  1177. <member name="P:NewLife.Collections.Pool.MemoryStream">
  1178. <summary>内存流池</summary>
  1179. </member>
  1180. <member name="M:NewLife.Collections.Pool.Put(System.IO.MemoryStream,System.Boolean)">
  1181. <summary>归还一个内存流到对象池</summary>
  1182. <param name="ms"></param>
  1183. <param name="requireResult">是否需要返回结果</param>
  1184. <returns></returns>
  1185. </member>
  1186. <member name="M:NewLife.Collections.Pool.Return(System.IO.MemoryStream,System.Boolean)">
  1187. <summary>归还一个内存流到对象池</summary>
  1188. <param name="ms"></param>
  1189. <param name="returnResult">是否需要返回结果</param>
  1190. <returns></returns>
  1191. </member>
  1192. <member name="T:NewLife.Collections.Pool.MemoryStreamPool">
  1193. <summary>内存流池</summary>
  1194. </member>
  1195. <member name="P:NewLife.Collections.Pool.MemoryStreamPool.InitialCapacity">
  1196. <summary>初始容量。默认1024个</summary>
  1197. </member>
  1198. <member name="P:NewLife.Collections.Pool.MemoryStreamPool.MaximumCapacity">
  1199. <summary>最大容量。超过该大小时不进入池内,默认64k</summary>
  1200. </member>
  1201. <member name="M:NewLife.Collections.Pool.MemoryStreamPool.OnCreate">
  1202. <summary>创建</summary>
  1203. <returns></returns>
  1204. </member>
  1205. <member name="M:NewLife.Collections.Pool.MemoryStreamPool.Put(System.IO.MemoryStream)">
  1206. <summary>归还</summary>
  1207. <param name="value"></param>
  1208. <returns></returns>
  1209. </member>
  1210. <member name="M:NewLife.Collections.Pool.MemoryStreamPool.Return(System.IO.MemoryStream)">
  1211. <summary>归还</summary>
  1212. <param name="value"></param>
  1213. <returns></returns>
  1214. </member>
  1215. <member name="T:NewLife.Collections.NullableDictionary`2">
  1216. <summary>可空字典。获取数据时如果指定键不存在可返回空而不是抛出异常</summary>
  1217. <typeparam name="TKey"></typeparam>
  1218. <typeparam name="TValue"></typeparam>
  1219. </member>
  1220. <member name="M:NewLife.Collections.NullableDictionary`2.#ctor">
  1221. <summary>实例化一个可空字典</summary>
  1222. </member>
  1223. <member name="M:NewLife.Collections.NullableDictionary`2.#ctor(System.Collections.Generic.IEqualityComparer{`0})">
  1224. <summary>指定比较器实例化一个可空字典</summary>
  1225. <param name="comparer"></param>
  1226. </member>
  1227. <member name="M:NewLife.Collections.NullableDictionary`2.#ctor(System.Collections.Generic.IDictionary{`0,`1})">
  1228. <summary>实例化一个可空字典</summary>
  1229. <param name="dic"></param>
  1230. </member>
  1231. <member name="M:NewLife.Collections.NullableDictionary`2.#ctor(System.Collections.Generic.IDictionary{`0,`1},System.Collections.Generic.IEqualityComparer{`0})">
  1232. <summary>实例化一个可空字典</summary>
  1233. <param name="dic"></param>
  1234. <param name="comparer"></param>
  1235. </member>
  1236. <member name="P:NewLife.Collections.NullableDictionary`2.Item(`0)">
  1237. <summary>获取 或 设置 数据</summary>
  1238. <param name="item"></param>
  1239. <returns></returns>
  1240. </member>
  1241. <member name="T:NewLife.Collections.ObjectPool`1">
  1242. <summary>资源池。支持空闲释放,主要用于数据库连接池和网络连接池</summary>
  1243. <remarks>
  1244. 文档 https://newlifex.com/core/object_pool
  1245. </remarks>
  1246. <typeparam name="T"></typeparam>
  1247. </member>
  1248. <member name="P:NewLife.Collections.ObjectPool`1.Name">
  1249. <summary>名称</summary>
  1250. </member>
  1251. <member name="P:NewLife.Collections.ObjectPool`1.FreeCount">
  1252. <summary>空闲个数</summary>
  1253. </member>
  1254. <member name="P:NewLife.Collections.ObjectPool`1.BusyCount">
  1255. <summary>繁忙个数</summary>
  1256. </member>
  1257. <member name="P:NewLife.Collections.ObjectPool`1.Max">
  1258. <summary>最大个数。默认100,0表示无上限</summary>
  1259. </member>
  1260. <member name="P:NewLife.Collections.ObjectPool`1.Min">
  1261. <summary>最小个数。默认1</summary>
  1262. </member>
  1263. <member name="P:NewLife.Collections.ObjectPool`1.IdleTime">
  1264. <summary>空闲清理时间。最小个数之上的资源超过空闲时间时被清理,默认10s</summary>
  1265. </member>
  1266. <member name="P:NewLife.Collections.ObjectPool`1.AllIdleTime">
  1267. <summary>完全空闲清理时间。最小个数之下的资源超过空闲时间时被清理,默认0s永不清理</summary>
  1268. </member>
  1269. <member name="F:NewLife.Collections.ObjectPool`1._free">
  1270. <summary>基础空闲集合。只保存最小个数,最热部分</summary>
  1271. </member>
  1272. <member name="F:NewLife.Collections.ObjectPool`1._free2">
  1273. <summary>扩展空闲集合。保存最小个数以外部分</summary>
  1274. </member>
  1275. <member name="F:NewLife.Collections.ObjectPool`1._busy">
  1276. <summary>借出去的放在这</summary>
  1277. </member>
  1278. <member name="M:NewLife.Collections.ObjectPool`1.#ctor">
  1279. <summary>实例化一个资源池</summary>
  1280. </member>
  1281. <member name="M:NewLife.Collections.ObjectPool`1.Dispose(System.Boolean)">
  1282. <summary>销毁</summary>
  1283. <param name="disposing"></param>
  1284. </member>
  1285. <member name="P:NewLife.Collections.ObjectPool`1.Item.Value">
  1286. <summary>数值</summary>
  1287. </member>
  1288. <member name="P:NewLife.Collections.ObjectPool`1.Item.LastTime">
  1289. <summary>过期时间</summary>
  1290. </member>
  1291. <member name="M:NewLife.Collections.ObjectPool`1.Get">
  1292. <summary>借出</summary>
  1293. <returns></returns>
  1294. </member>
  1295. <member name="M:NewLife.Collections.ObjectPool`1.OnGet(`0)">
  1296. <summary>借出时是否可用</summary>
  1297. <param name="value"></param>
  1298. <returns></returns>
  1299. </member>
  1300. <member name="M:NewLife.Collections.ObjectPool`1.GetItem">
  1301. <summary>申请资源包装项,Dispose时自动归还到池中</summary>
  1302. <returns></returns>
  1303. </member>
  1304. <member name="M:NewLife.Collections.ObjectPool`1.Put(`0)">
  1305. <summary>归还</summary>
  1306. <param name="value"></param>
  1307. </member>
  1308. <member name="M:NewLife.Collections.ObjectPool`1.OnPut(`0)">
  1309. <summary>归还时是否可用</summary>
  1310. <param name="value"></param>
  1311. <returns></returns>
  1312. </member>
  1313. <member name="M:NewLife.Collections.ObjectPool`1.Return(`0)">
  1314. <summary>归还</summary>
  1315. <param name="value"></param>
  1316. </member>
  1317. <member name="M:NewLife.Collections.ObjectPool`1.OnReturn(`0)">
  1318. <summary>归还时是否可用</summary>
  1319. <param name="value"></param>
  1320. <returns></returns>
  1321. </member>
  1322. <member name="M:NewLife.Collections.ObjectPool`1.Clear">
  1323. <summary>清空已有对象</summary>
  1324. </member>
  1325. <member name="M:NewLife.Collections.ObjectPool`1.OnDispose(`0)">
  1326. <summary>销毁</summary>
  1327. <param name="value"></param>
  1328. </member>
  1329. <member name="M:NewLife.Collections.ObjectPool`1.OnCreate">
  1330. <summary>创建实例</summary>
  1331. <returns></returns>
  1332. </member>
  1333. <member name="P:NewLife.Collections.ObjectPool`1.Total">
  1334. <summary>总请求数</summary>
  1335. </member>
  1336. <member name="P:NewLife.Collections.ObjectPool`1.Success">
  1337. <summary>成功数</summary>
  1338. </member>
  1339. <member name="F:NewLife.Collections.ObjectPool`1._NewCount">
  1340. <summary>新创建数</summary>
  1341. </member>
  1342. <member name="F:NewLife.Collections.ObjectPool`1._ReleaseCount">
  1343. <summary>释放数</summary>
  1344. </member>
  1345. <member name="F:NewLife.Collections.ObjectPool`1.Cost">
  1346. <summary>平均耗时。单位ms</summary>
  1347. </member>
  1348. <member name="P:NewLife.Collections.ObjectPool`1.Log">
  1349. <summary>日志</summary>
  1350. </member>
  1351. <member name="M:NewLife.Collections.ObjectPool`1.WriteLog(System.String,System.Object[])">
  1352. <summary>写日志</summary>
  1353. <param name="format"></param>
  1354. <param name="args"></param>
  1355. </member>
  1356. <member name="T:NewLife.Collections.PoolItem`1">
  1357. <summary>资源池包装项,自动归还资源到池中</summary>
  1358. <typeparam name="T"></typeparam>
  1359. </member>
  1360. <member name="P:NewLife.Collections.PoolItem`1.Value">
  1361. <summary>数值</summary>
  1362. </member>
  1363. <member name="P:NewLife.Collections.PoolItem`1.Pool">
  1364. <summary>池</summary>
  1365. </member>
  1366. <member name="M:NewLife.Collections.PoolItem`1.#ctor(NewLife.Collections.IPool{`0},`0)">
  1367. <summary>包装项</summary>
  1368. <param name="pool"></param>
  1369. <param name="value"></param>
  1370. </member>
  1371. <member name="M:NewLife.Collections.PoolItem`1.Dispose(System.Boolean)">
  1372. <summary>销毁</summary>
  1373. <param name="disposing"></param>
  1374. </member>
  1375. <member name="T:NewLife.Collections.Pool`1">
  1376. <summary>轻量级对象池。数组无锁实现,高性能</summary>
  1377. <remarks>
  1378. 文档 https://newlifex.com/core/object_pool
  1379. 内部 1+N 的存储结果,保留最热的一个对象在外层,便于快速存取。
  1380. 数组具有极快的查找速度,结构体确保没有GC操作。
  1381. </remarks>
  1382. <typeparam name="T"></typeparam>
  1383. </member>
  1384. <member name="P:NewLife.Collections.Pool`1.Max">
  1385. <summary>对象池大小。默认CPU*2,初始化后改变无效</summary>
  1386. </member>
  1387. <member name="M:NewLife.Collections.Pool`1.#ctor(System.Int32)">
  1388. <summary>实例化对象池。默认大小CPU*2</summary>
  1389. <param name="max"></param>
  1390. </member>
  1391. <member name="M:NewLife.Collections.Pool`1.Get">
  1392. <summary>获取</summary>
  1393. <returns></returns>
  1394. </member>
  1395. <member name="M:NewLife.Collections.Pool`1.Put(`0)">
  1396. <summary>归还</summary>
  1397. <param name="value"></param>
  1398. <returns></returns>
  1399. </member>
  1400. <member name="M:NewLife.Collections.Pool`1.Return(`0)">
  1401. <summary>归还</summary>
  1402. <param name="value"></param>
  1403. <returns></returns>
  1404. </member>
  1405. <member name="M:NewLife.Collections.Pool`1.Clear">
  1406. <summary>清空</summary>
  1407. <returns></returns>
  1408. </member>
  1409. <member name="M:NewLife.Collections.Pool`1.OnCreate">
  1410. <summary>创建实例</summary>
  1411. <returns></returns>
  1412. </member>
  1413. <member name="T:NewLife.IDisposable2">
  1414. <summary>具有是否已释放和释放后事件的接口</summary>
  1415. </member>
  1416. <member name="P:NewLife.IDisposable2.Disposed">
  1417. <summary>是否已经释放</summary>
  1418. </member>
  1419. <member name="E:NewLife.IDisposable2.OnDisposed">
  1420. <summary>被销毁时触发事件</summary>
  1421. </member>
  1422. <member name="T:NewLife.DisposeBase">
  1423. <summary>具有销毁资源处理的抽象基类</summary>
  1424. <remarks>
  1425. 文档 https://newlifex.com/core/disposebase
  1426. </remarks>
  1427. <example>
  1428. <code>
  1429. /// &lt;summary&gt;子类重载实现资源释放逻辑时必须首先调用基类方法&lt;/summary&gt;
  1430. /// &lt;param name="disposing"&gt;从Dispose调用(释放所有资源)还是析构函数调用(释放非托管资源)。
  1431. /// 因为该方法只会被调用一次,所以该参数的意义不太大。&lt;/param&gt;
  1432. protected override void Dispose(bool disposing)
  1433. {
  1434. base.OnDispose(disposing);
  1435. if (disposing)
  1436. {
  1437. // 如果是析构函数进来,不执行这里的代码
  1438. }
  1439. }
  1440. </code>
  1441. </example>
  1442. </member>
  1443. <member name="M:NewLife.DisposeBase.Dispose">
  1444. <summary>释放资源</summary>
  1445. </member>
  1446. <member name="P:NewLife.DisposeBase.Disposed">
  1447. <summary>是否已经释放</summary>
  1448. </member>
  1449. <member name="E:NewLife.DisposeBase.OnDisposed">
  1450. <summary>被销毁时触发事件</summary>
  1451. </member>
  1452. <member name="M:NewLife.DisposeBase.Dispose(System.Boolean)">
  1453. <summary>释放资源,参数表示是否由Dispose调用。重载时先调用基类方法</summary>
  1454. <param name="disposing"></param>
  1455. </member>
  1456. <member name="M:NewLife.DisposeBase.Finalize">
  1457. <summary>析构函数</summary>
  1458. <remarks>
  1459. 如果忘记调用Dispose,这里会释放非托管资源。
  1460. 如果曾经调用过Dispose,因为GC.SuppressFinalize(this),不会再调用该析构函数。
  1461. 在 .NET 中,析构函数(Finalizer)不应该抛出未捕获的异常。如果析构函数引发未捕获的异常,它将导致应用程序崩溃或进程退出。
  1462. </remarks>
  1463. </member>
  1464. <member name="T:NewLife.DisposeHelper">
  1465. <summary>销毁助手。扩展方法专用</summary>
  1466. </member>
  1467. <member name="M:NewLife.DisposeHelper.TryDispose(System.Object)">
  1468. <summary>尝试销毁对象,如果有<see cref="T:System.IDisposable"/>则调用</summary>
  1469. <param name="obj"></param>
  1470. <returns></returns>
  1471. </member>
  1472. <member name="T:NewLife.IMachineInfo">
  1473. <summary>机器信息接口</summary>
  1474. <remarks>用于扩展MachineInfo功能,具体应用自定义各字段获取方式</remarks>
  1475. </member>
  1476. <member name="M:NewLife.IMachineInfo.Init(NewLife.MachineInfo)">
  1477. <summary>初始化静态数据</summary>
  1478. </member>
  1479. <member name="M:NewLife.IMachineInfo.Refresh(NewLife.MachineInfo)">
  1480. <summary>刷新动态数据</summary>
  1481. </member>
  1482. <member name="T:NewLife.MachineInfo">
  1483. <summary>机器信息</summary>
  1484. <remarks>
  1485. 文档 https://newlifex.com/core/machine_info
  1486. 刷新信息成本较高,建议采用单例模式
  1487. </remarks>
  1488. </member>
  1489. <member name="P:NewLife.MachineInfo.OSName">
  1490. <summary>系统名称</summary>
  1491. </member>
  1492. <member name="P:NewLife.MachineInfo.OSVersion">
  1493. <summary>系统版本</summary>
  1494. </member>
  1495. <member name="P:NewLife.MachineInfo.Product">
  1496. <summary>产品名称</summary>
  1497. </member>
  1498. <member name="P:NewLife.MachineInfo.Vendor">
  1499. <summary>制造商</summary>
  1500. </member>
  1501. <member name="P:NewLife.MachineInfo.Processor">
  1502. <summary>处理器型号</summary>
  1503. </member>
  1504. <member name="P:NewLife.MachineInfo.UUID">
  1505. <summary>硬件唯一标识。取主板编码,部分品牌存在重复</summary>
  1506. </member>
  1507. <member name="P:NewLife.MachineInfo.Guid">
  1508. <summary>软件唯一标识。系统标识,操作系统重装后更新,Linux系统的machine_id,Android的android_id,Ghost系统存在重复</summary>
  1509. </member>
  1510. <member name="P:NewLife.MachineInfo.Serial">
  1511. <summary>计算机序列号。适用于品牌机,跟笔记本标签显示一致</summary>
  1512. </member>
  1513. <member name="P:NewLife.MachineInfo.Board">
  1514. <summary>主板。序列号或家族信息</summary>
  1515. </member>
  1516. <member name="P:NewLife.MachineInfo.DiskID">
  1517. <summary>磁盘序列号</summary>
  1518. </member>
  1519. <member name="P:NewLife.MachineInfo.Memory">
  1520. <summary>内存总量。单位Byte</summary>
  1521. </member>
  1522. <member name="P:NewLife.MachineInfo.AvailableMemory">
  1523. <summary>可用内存。单位Byte</summary>
  1524. </member>
  1525. <member name="P:NewLife.MachineInfo.CpuRate">
  1526. <summary>CPU占用率</summary>
  1527. </member>
  1528. <member name="P:NewLife.MachineInfo.UplinkSpeed">
  1529. <summary>网络上行速度。字节每秒,初始化后首次读取为0</summary>
  1530. </member>
  1531. <member name="P:NewLife.MachineInfo.DownlinkSpeed">
  1532. <summary>网络下行速度。字节每秒,初始化后首次读取为0</summary>
  1533. </member>
  1534. <member name="P:NewLife.MachineInfo.Temperature">
  1535. <summary>温度。单位度</summary>
  1536. </member>
  1537. <member name="P:NewLife.MachineInfo.Battery">
  1538. <summary>电池剩余。小于1的小数,常用百分比表示</summary>
  1539. </member>
  1540. <member name="P:NewLife.MachineInfo.Item(System.String)">
  1541. <summary>获取 或 设置 扩展属性数据</summary>
  1542. <param name="key"></param>
  1543. <returns></returns>
  1544. </member>
  1545. <member name="P:NewLife.MachineInfo.Current">
  1546. <summary>当前机器信息。默认null,在RegisterAsync后才能使用</summary>
  1547. </member>
  1548. <member name="P:NewLife.MachineInfo.Provider">
  1549. <summary>机器信息提供者。外部实现可修改部分行为</summary>
  1550. </member>
  1551. <member name="M:NewLife.MachineInfo.RegisterAsync">
  1552. <summary>异步注册一个初始化后的机器信息实例</summary>
  1553. <returns></returns>
  1554. </member>
  1555. <member name="M:NewLife.MachineInfo.GetCurrent">
  1556. <summary>获取当前信息,如果未设置则等待异步注册结果</summary>
  1557. <returns></returns>
  1558. </member>
  1559. <member name="M:NewLife.MachineInfo.Resolve">
  1560. <summary>从对象容器中获取一个已注册机器信息实例</summary>
  1561. <returns></returns>
  1562. </member>
  1563. <member name="M:NewLife.MachineInfo.Init">
  1564. <summary>初始化静态数据。可能是实例化后执行,也可能是Json反序列化后执行</summary>
  1565. </member>
  1566. <member name="M:NewLife.MachineInfo.Refresh">
  1567. <summary>获取实时数据,如CPU、内存、温度</summary>
  1568. </member>
  1569. <member name="M:NewLife.MachineInfo.RefreshSpeed">
  1570. <summary>刷新网络速度</summary>
  1571. </member>
  1572. <member name="M:NewLife.MachineInfo.GetLinuxName">
  1573. <summary>获取Linux发行版名称</summary>
  1574. <returns></returns>
  1575. </member>
  1576. <member name="M:NewLife.MachineInfo.ReadInfo(System.String,System.Char)">
  1577. <summary>读取文件信息,分割为字典</summary>
  1578. <param name="file"></param>
  1579. <param name="separate"></param>
  1580. <returns></returns>
  1581. </member>
  1582. <member name="M:NewLife.MachineInfo.ReadWmic(System.String,System.String[])">
  1583. <summary>通过WMIC命令读取信息</summary>
  1584. <param name="type"></param>
  1585. <param name="keys"></param>
  1586. <returns></returns>
  1587. </member>
  1588. <member name="M:NewLife.MachineInfo.ReadDeviceInfo">
  1589. <summary>
  1590. 获取设备信息。用于Xamarin
  1591. </summary>
  1592. <returns></returns>
  1593. </member>
  1594. <member name="M:NewLife.MachineInfo.ReadDeviceBattery">
  1595. <summary>
  1596. 获取设备电量。用于 Xamarin
  1597. </summary>
  1598. <returns></returns>
  1599. </member>
  1600. <member name="M:NewLife.MachineInfo.GetFreeSpace(System.String)">
  1601. <summary>获取指定目录所在盘可用空间,默认当前目录</summary>
  1602. <param name="path"></param>
  1603. <returns>返回可用空间,字节,获取失败返回-1</returns>
  1604. </member>
  1605. <member name="M:NewLife.MachineInfo.GetFiles(System.String,System.Boolean)">
  1606. <summary>获取指定目录下文件名,支持去掉后缀的去重,主要用于Linux</summary>
  1607. <param name="path"></param>
  1608. <param name="trimSuffix"></param>
  1609. <returns></returns>
  1610. </member>
  1611. <member name="M:NewLife.MachineInfo.GetInfo(System.String,System.String,System.String)">
  1612. <summary>获取WMI信息</summary>
  1613. <param name="path"></param>
  1614. <param name="property"></param>
  1615. <param name="nameSpace"></param>
  1616. <returns></returns>
  1617. </member>
  1618. <member name="T:NewLife.Common.PinYin">
  1619. <summary>汉字拼音转换类</summary>
  1620. <remarks>
  1621. 文档 https://newlifex.com/core/pinyin
  1622. </remarks>
  1623. </member>
  1624. <member name="F:NewLife.Common.PinYin._py2">
  1625. <summary>二级汉字数组</summary>
  1626. </member>
  1627. <member name="F:NewLife.Common.PinYin._pyValue2">
  1628. <summary>二级汉字对应拼音数组</summary>
  1629. </member>
  1630. <member name="M:NewLife.Common.PinYin.GetFirst(System.Char)">
  1631. <summary>取字符的拼音首字母</summary>
  1632. <param name="ch"></param>
  1633. <returns></returns>
  1634. </member>
  1635. <member name="M:NewLife.Common.PinYin.GetFirst(System.String)">
  1636. <summary>取字符串各字符的拼音首字母</summary>
  1637. <param name="str"></param>
  1638. <returns></returns>
  1639. </member>
  1640. <member name="M:NewLife.Common.PinYin.Get(System.Char)">
  1641. <summary>获取单字拼音</summary>
  1642. <param name="ch"></param>
  1643. <returns></returns>
  1644. </member>
  1645. <member name="M:NewLife.Common.PinYin.GetAll(System.String)">
  1646. <summary>把汉字转换成拼音(全拼)</summary>
  1647. <param name="str">汉字字符串</param>
  1648. <returns>转换后的拼音(全拼)字符串</returns>
  1649. </member>
  1650. <member name="M:NewLife.Common.PinYin.Get(System.String)">
  1651. <summary>把汉字转换成拼音(全拼)</summary>
  1652. <param name="str">汉字字符串</param>
  1653. <returns>转换后的拼音(全拼)字符串</returns>
  1654. </member>
  1655. <member name="T:NewLife.Common.SysConfig">
  1656. <summary>系统设置。提供系统名称、版本等基本设置</summary>
  1657. <remarks>
  1658. 文档 https://newlifex.com/core/sysconfig
  1659. </remarks>
  1660. </member>
  1661. <member name="P:NewLife.Common.SysConfig.Name">
  1662. <summary>系统名称</summary>
  1663. </member>
  1664. <member name="P:NewLife.Common.SysConfig.Version">
  1665. <summary>系统版本</summary>
  1666. </member>
  1667. <member name="P:NewLife.Common.SysConfig.DisplayName">
  1668. <summary>显示名称</summary>
  1669. </member>
  1670. <member name="P:NewLife.Common.SysConfig.Company">
  1671. <summary>公司</summary>
  1672. </member>
  1673. <member name="P:NewLife.Common.SysConfig.Instance">
  1674. <summary>应用实例。单应用多实例部署时用于唯一标识实例节点</summary>
  1675. </member>
  1676. <member name="P:NewLife.Common.SysConfig.Develop">
  1677. <summary>开发者模式</summary>
  1678. </member>
  1679. <member name="P:NewLife.Common.SysConfig.Enable">
  1680. <summary>启用</summary>
  1681. </member>
  1682. <member name="P:NewLife.Common.SysConfig.InstallTime">
  1683. <summary>安装时间</summary>
  1684. </member>
  1685. <member name="M:NewLife.Common.SysConfig.OnLoaded">
  1686. <summary>加载后触发</summary>
  1687. </member>
  1688. <member name="P:NewLife.Common.SysConfig.SysAssembly">
  1689. <summary>系统主程序集</summary>
  1690. </member>
  1691. <member name="T:NewLife.Runtime">
  1692. <summary>运行时</summary>
  1693. <remarks>
  1694. 文档 https://newlifex.com/core/runtime
  1695. </remarks>
  1696. </member>
  1697. <member name="P:NewLife.Runtime.IsConsole">
  1698. <summary>是否控制台。用于判断是否可以执行一些控制台操作。</summary>
  1699. </member>
  1700. <member name="P:NewLife.Runtime.Container">
  1701. <summary>是否在容器中运行</summary>
  1702. </member>
  1703. <member name="P:NewLife.Runtime.Mono">
  1704. <summary>是否Mono环境</summary>
  1705. </member>
  1706. <member name="P:NewLife.Runtime.IsWeb">
  1707. <summary>是否Web环境</summary>
  1708. </member>
  1709. <member name="P:NewLife.Runtime.Windows">
  1710. <summary>是否Windows环境</summary>
  1711. </member>
  1712. <member name="P:NewLife.Runtime.Linux">
  1713. <summary>是否Linux环境</summary>
  1714. </member>
  1715. <member name="P:NewLife.Runtime.OSX">
  1716. <summary>是否OSX环境</summary>
  1717. </member>
  1718. <member name="P:NewLife.Runtime.TickCount64">
  1719. <summary>系统启动以来的毫秒数</summary>
  1720. </member>
  1721. <member name="M:NewLife.Runtime.GetEnvironmentVariable(System.String)">
  1722. <summary>
  1723. 获取环境变量。不区分大小写
  1724. </summary>
  1725. <param name="variable"></param>
  1726. <returns></returns>
  1727. </member>
  1728. <member name="M:NewLife.Runtime.GetEnvironmentVariables">
  1729. <summary>
  1730. 获取环境变量集合。不区分大小写
  1731. </summary>
  1732. <returns></returns>
  1733. </member>
  1734. <member name="T:NewLife.Configuration.ApolloConfigProvider">
  1735. <summary>阿波罗配置中心提供者</summary>
  1736. </member>
  1737. <member name="P:NewLife.Configuration.ApolloConfigProvider.NameSpace">
  1738. <summary>命名空间。Apollo专用,多个命名空间用逗号或分号隔开</summary>
  1739. </member>
  1740. <member name="M:NewLife.Configuration.ApolloConfigProvider.ToString">
  1741. <summary>已重载。输出友好信息</summary>
  1742. <returns></returns>
  1743. </member>
  1744. <member name="M:NewLife.Configuration.ApolloConfigProvider.SetApollo(System.String)">
  1745. <summary>设置阿波罗服务端</summary>
  1746. <param name="nameSpaces">命名空间。多个命名空间用逗号或分号隔开</param>
  1747. </member>
  1748. <member name="M:NewLife.Configuration.ApolloConfigProvider.LoadApollo(System.String,System.String)">
  1749. <summary>从本地配置文件读取阿波罗地址,并得到阿波罗配置提供者</summary>
  1750. <param name="fileName">阿波罗配置文件名,默认appsettings.json</param>
  1751. <param name="path">加载路径,默认apollo</param>
  1752. <returns></returns>
  1753. </member>
  1754. <member name="M:NewLife.Configuration.ApolloConfigProvider.GetAll">
  1755. <summary>获取所有配置</summary>
  1756. <returns></returns>
  1757. </member>
  1758. <member name="M:NewLife.Configuration.ApolloConfigProvider.SetAll(System.Collections.Generic.IDictionary{System.String,System.Object})">
  1759. <summary>设置配置项,保存到服务端</summary>
  1760. <param name="configs"></param>
  1761. <returns></returns>
  1762. </member>
  1763. <member name="T:NewLife.Configuration.CommandParser">
  1764. <summary>命令分析器</summary>
  1765. </member>
  1766. <member name="P:NewLife.Configuration.CommandParser.IgnoreCase">
  1767. <summary>不区分大小写</summary>
  1768. </member>
  1769. <member name="P:NewLife.Configuration.CommandParser.TrimStart">
  1770. <summary>去除前导横杠。默认true</summary>
  1771. </member>
  1772. <member name="M:NewLife.Configuration.CommandParser.Parse(System.String[])">
  1773. <summary>分析参数数组,得到名值字段</summary>
  1774. <param name="args"></param>
  1775. <returns></returns>
  1776. </member>
  1777. <member name="M:NewLife.Configuration.CommandParser.TrimQuote(System.String)">
  1778. <summary>去除两头的双引号</summary>
  1779. <param name="value"></param>
  1780. <returns></returns>
  1781. </member>
  1782. <member name="T:NewLife.Configuration.CompositeConfigProvider">
  1783. <summary>复合配置提供者。常用于本地配置与网络配置的混合</summary>
  1784. </member>
  1785. <member name="P:NewLife.Configuration.CompositeConfigProvider.Configs">
  1786. <summary>日志提供者集合</summary>
  1787. <remarks>为了线程安全,使用数组</remarks>
  1788. </member>
  1789. <member name="P:NewLife.Configuration.CompositeConfigProvider.Name">
  1790. <summary>名称</summary>
  1791. </member>
  1792. <member name="P:NewLife.Configuration.CompositeConfigProvider.Root">
  1793. <summary>根元素</summary>
  1794. </member>
  1795. <member name="P:NewLife.Configuration.CompositeConfigProvider.Keys">
  1796. <summary>所有键</summary>
  1797. </member>
  1798. <member name="P:NewLife.Configuration.CompositeConfigProvider.IsNew">
  1799. <summary>是否新的配置文件</summary>
  1800. </member>
  1801. <member name="P:NewLife.Configuration.CompositeConfigProvider.GetConfig">
  1802. <summary>返回获取配置的委托</summary>
  1803. </member>
  1804. <member name="M:NewLife.Configuration.CompositeConfigProvider.#ctor(NewLife.Configuration.IConfigProvider,NewLife.Configuration.IConfigProvider)">
  1805. <summary>实例化</summary>
  1806. <param name="configProvider1"></param>
  1807. <param name="configProvider2"></param>
  1808. </member>
  1809. <member name="M:NewLife.Configuration.CompositeConfigProvider.Add(NewLife.Configuration.IConfigProvider[])">
  1810. <summary>添加</summary>
  1811. <param name="configProviders"></param>
  1812. </member>
  1813. <member name="P:NewLife.Configuration.CompositeConfigProvider.Item(System.String)">
  1814. <summary>获取 或 设置 配置值</summary>
  1815. <param name="key">键</param>
  1816. <returns></returns>
  1817. </member>
  1818. <member name="M:NewLife.Configuration.CompositeConfigProvider.GetSection(System.String)">
  1819. <summary>查找配置项。可得到子级和配置</summary>
  1820. <param name="key">配置名</param>
  1821. <returns></returns>
  1822. </member>
  1823. <member name="M:NewLife.Configuration.CompositeConfigProvider.LoadAll">
  1824. <summary>从数据源加载数据到配置树</summary>
  1825. </member>
  1826. <member name="M:NewLife.Configuration.CompositeConfigProvider.SaveAll">
  1827. <summary>保存配置树到数据源</summary>
  1828. </member>
  1829. <member name="M:NewLife.Configuration.CompositeConfigProvider.Load``1(System.String)">
  1830. <summary>加载配置到模型</summary>
  1831. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  1832. <param name="path">路径。配置树位置,配置中心等多对象混合使用时</param>
  1833. <returns></returns>
  1834. </member>
  1835. <member name="M:NewLife.Configuration.CompositeConfigProvider.Save``1(``0,System.String)">
  1836. <summary>保存模型实例</summary>
  1837. <typeparam name="T">模型</typeparam>
  1838. <param name="model">模型实例</param>
  1839. <param name="path">路径。配置树位置</param>
  1840. </member>
  1841. <member name="M:NewLife.Configuration.CompositeConfigProvider.Bind``1(``0,System.Boolean,System.String)">
  1842. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  1843. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  1844. <param name="model">模型实例</param>
  1845. <param name="autoReload">是否自动更新。默认true</param>
  1846. <param name="path">命名空间。配置树位置,配置中心等多对象混合使用时</param>
  1847. </member>
  1848. <member name="M:NewLife.Configuration.CompositeConfigProvider.Bind``1(``0,System.String,System.Action{NewLife.Configuration.IConfigSection})">
  1849. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  1850. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  1851. <param name="model">模型实例</param>
  1852. <param name="path">命名空间。配置树位置,配置中心等多对象混合使用时</param>
  1853. <param name="onChange">配置改变时执行的委托</param>
  1854. </member>
  1855. <member name="M:NewLife.Configuration.CompositeConfigProvider.NotifyChange">
  1856. <summary>通知绑定对象,配置数据有改变</summary>
  1857. </member>
  1858. <member name="E:NewLife.Configuration.CompositeConfigProvider.Changed">
  1859. <summary>配置改变事件。执行了某些动作,可能导致配置数据发生改变时触发</summary>
  1860. </member>
  1861. <member name="T:NewLife.Configuration.Config`1">
  1862. <summary>配置文件基类</summary>
  1863. <remarks>
  1864. 标准用法:TConfig.Current
  1865. 配置实体类通过<see cref="T:NewLife.Configuration.ConfigAttribute"/>特性指定配置文件路径。
  1866. Current将加载配置文件,如果文件不存在或者加载失败,将实例化一个对象返回。
  1867. </remarks>
  1868. <typeparam name="TConfig"></typeparam>
  1869. </member>
  1870. <member name="P:NewLife.Configuration.Config`1.Provider">
  1871. <summary>当前使用的提供者</summary>
  1872. </member>
  1873. <member name="P:NewLife.Configuration.Config`1.Current">
  1874. <summary>当前实例。通过置空可以使其重新加载。</summary>
  1875. </member>
  1876. <member name="P:NewLife.Configuration.Config`1.IsNew">
  1877. <summary>是否新的配置文件</summary>
  1878. </member>
  1879. <member name="M:NewLife.Configuration.Config`1.OnLoaded">
  1880. <summary>从配置文件中读取完成后触发</summary>
  1881. </member>
  1882. <member name="M:NewLife.Configuration.Config`1.Save">
  1883. <summary>保存到配置文件中去</summary>
  1884. </member>
  1885. <member name="T:NewLife.Configuration.ConfigAttribute">
  1886. <summary>配置特性</summary>
  1887. <remarks>
  1888. 声明配置模型使用哪一种配置提供者,以及所需要的文件名和分类名。
  1889. 如未指定提供者,则使用全局默认,此时将根据全局代码配置或环境变量配置使用不同提供者,实现配置信息整体转移。
  1890. </remarks>
  1891. </member>
  1892. <member name="P:NewLife.Configuration.ConfigAttribute.Provider">
  1893. <summary>提供者。内置ini/xml/json/http,一般不指定,使用全局默认</summary>
  1894. </member>
  1895. <member name="P:NewLife.Configuration.ConfigAttribute.Name">
  1896. <summary>配置名。可以是文件名或分类名</summary>
  1897. </member>
  1898. <member name="M:NewLife.Configuration.ConfigAttribute.#ctor(System.String,System.String)">
  1899. <summary>指定配置名</summary>
  1900. <param name="name">配置名。可以是文件名或分类名</param>
  1901. <param name="provider">提供者。内置ini/xml/json/http,一般不指定,使用全局默认</param>
  1902. </member>
  1903. <member name="T:NewLife.Configuration.HttpConfigAttribute">
  1904. <summary>http配置特性</summary>
  1905. <remarks>
  1906. 声明配置模型使用哪一种配置提供者,以及所需要的文件名和分类名。
  1907. 如未指定提供者,则使用全局默认,此时将根据全局代码配置或环境变量配置使用不同提供者,实现配置信息整体转移。
  1908. </remarks>
  1909. </member>
  1910. <member name="P:NewLife.Configuration.HttpConfigAttribute.Server">
  1911. <summary>应用标识</summary>
  1912. </member>
  1913. <member name="P:NewLife.Configuration.HttpConfigAttribute.Action">
  1914. <summary>服务操作</summary>
  1915. </member>
  1916. <member name="P:NewLife.Configuration.HttpConfigAttribute.AppId">
  1917. <summary>应用标识</summary>
  1918. </member>
  1919. <member name="P:NewLife.Configuration.HttpConfigAttribute.Secret">
  1920. <summary>应用密钥</summary>
  1921. </member>
  1922. <member name="P:NewLife.Configuration.HttpConfigAttribute.Scope">
  1923. <summary>作用域。获取指定作用域下的配置值,生产、开发、测试 等</summary>
  1924. </member>
  1925. <member name="P:NewLife.Configuration.HttpConfigAttribute.CacheLevel">
  1926. <summary>本地缓存配置数据。即使网络断开,仍然能够加载使用本地数据,默认Encrypted</summary>
  1927. </member>
  1928. <member name="M:NewLife.Configuration.HttpConfigAttribute.#ctor(System.String,System.String,System.String,System.String,System.String,System.String,NewLife.Configuration.ConfigCacheLevel)">
  1929. <summary>指定配置名</summary>
  1930. <param name="server">服务器地址</param>
  1931. <param name="action">服务操作</param>
  1932. <param name="name">配置名。可以是文件名或分类名</param>
  1933. <param name="appId">应用标识</param>
  1934. <param name="secret">应用密钥</param>
  1935. <param name="scope">作用域。获取指定作用域下的配置值,生产、开发、测试 等</param>
  1936. <param name="cacheLevel">本地缓存配置数据。即使网络断开,仍然能够加载使用本地数据,默认Encrypted</param>
  1937. </member>
  1938. <member name="T:NewLife.Configuration.ConfigCacheLevel">
  1939. <summary>配置数据缓存等级</summary>
  1940. </member>
  1941. <member name="F:NewLife.Configuration.ConfigCacheLevel.NoCache">
  1942. <summary>不缓存</summary>
  1943. </member>
  1944. <member name="F:NewLife.Configuration.ConfigCacheLevel.Json">
  1945. <summary>Json格式缓存</summary>
  1946. </member>
  1947. <member name="F:NewLife.Configuration.ConfigCacheLevel.Encrypted">
  1948. <summary>加密缓存</summary>
  1949. </member>
  1950. <member name="T:NewLife.Configuration.ConfigHelper">
  1951. <summary>配置助手</summary>
  1952. </member>
  1953. <member name="M:NewLife.Configuration.ConfigHelper.Find(NewLife.Configuration.IConfigSection,System.String,System.Boolean)">
  1954. <summary>查找配置项。可得到子级和配置</summary>
  1955. <param name="section"></param>
  1956. <param name="key"></param>
  1957. <param name="createOnMiss"></param>
  1958. <returns></returns>
  1959. </member>
  1960. <member name="M:NewLife.Configuration.ConfigHelper.AddChild(NewLife.Configuration.IConfigSection,System.String)">
  1961. <summary>添加子节点</summary>
  1962. <param name="section"></param>
  1963. <param name="key"></param>
  1964. <returns></returns>
  1965. </member>
  1966. <member name="M:NewLife.Configuration.ConfigHelper.GetOrAddChild(NewLife.Configuration.IConfigSection,System.String)">
  1967. <summary>查找或添加子节点</summary>
  1968. <param name="section"></param>
  1969. <param name="key"></param>
  1970. <returns></returns>
  1971. </member>
  1972. <member name="M:NewLife.Configuration.ConfigHelper.SetValue(NewLife.Configuration.IConfigSection,System.Object)">
  1973. <summary>设置节点值。格式化友好字符串</summary>
  1974. <param name="section"></param>
  1975. <param name="value"></param>
  1976. </member>
  1977. <member name="M:NewLife.Configuration.ConfigHelper.MapTo(NewLife.Configuration.IConfigSection,System.Object,NewLife.Configuration.IConfigProvider)">
  1978. <summary>映射配置树到实例公有属性</summary>
  1979. <param name="section">数据源</param>
  1980. <param name="model">模型</param>
  1981. <param name="provider">提供者</param>
  1982. </member>
  1983. <member name="M:NewLife.Configuration.ConfigHelper.MapFrom(NewLife.Configuration.IConfigSection,System.Object)">
  1984. <summary>从实例公有属性映射到配置树</summary>
  1985. <param name="section"></param>
  1986. <param name="model"></param>
  1987. </member>
  1988. <member name="T:NewLife.Configuration.FileConfigProvider">
  1989. <summary>文件配置提供者</summary>
  1990. <remarks>
  1991. 每个提供者实例对应一个配置文件,支持热更新
  1992. </remarks>
  1993. </member>
  1994. <member name="P:NewLife.Configuration.FileConfigProvider.FileName">
  1995. <summary>文件名。最高优先级,优先于模型特性指定的文件名</summary>
  1996. </member>
  1997. <member name="P:NewLife.Configuration.FileConfigProvider.Period">
  1998. <summary>更新周期。默认5秒</summary>
  1999. </member>
  2000. <member name="M:NewLife.Configuration.FileConfigProvider.Dispose(System.Boolean)">
  2001. <summary>销毁</summary>
  2002. <param name="disposing"></param>
  2003. </member>
  2004. <member name="M:NewLife.Configuration.FileConfigProvider.ToString">
  2005. <summary>已重载。输出友好信息</summary>
  2006. <returns></returns>
  2007. </member>
  2008. <member name="M:NewLife.Configuration.FileConfigProvider.Init(System.String)">
  2009. <summary>初始化</summary>
  2010. <param name="value"></param>
  2011. </member>
  2012. <member name="M:NewLife.Configuration.FileConfigProvider.LoadAll">
  2013. <summary>加载配置</summary>
  2014. </member>
  2015. <member name="M:NewLife.Configuration.FileConfigProvider.OnRead(System.String,NewLife.Configuration.IConfigSection)">
  2016. <summary>读取配置文件</summary>
  2017. <param name="fileName">文件名</param>
  2018. <param name="section">配置段</param>
  2019. </member>
  2020. <member name="M:NewLife.Configuration.FileConfigProvider.SaveAll">
  2021. <summary>保存配置树到数据源</summary>
  2022. </member>
  2023. <member name="M:NewLife.Configuration.FileConfigProvider.Save``1(``0,System.String)">
  2024. <summary>保存模型实例</summary>
  2025. <typeparam name="T">模型</typeparam>
  2026. <param name="model">模型实例</param>
  2027. <param name="path">路径。配置树位置</param>
  2028. </member>
  2029. <member name="M:NewLife.Configuration.FileConfigProvider.OnWrite(System.String,NewLife.Configuration.IConfigSection)">
  2030. <summary>写入配置文件</summary>
  2031. <param name="fileName">文件名</param>
  2032. <param name="section">配置段</param>
  2033. </member>
  2034. <member name="M:NewLife.Configuration.FileConfigProvider.GetString(NewLife.Configuration.IConfigSection)">
  2035. <summary>获取字符串形式</summary>
  2036. <param name="section">配置段</param>
  2037. <returns></returns>
  2038. </member>
  2039. <member name="M:NewLife.Configuration.FileConfigProvider.Bind``1(``0,System.Boolean,System.String)">
  2040. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  2041. <typeparam name="T">模型</typeparam>
  2042. <param name="model">模型实例</param>
  2043. <param name="autoReload">是否自动更新。默认true</param>
  2044. <param name="path">路径。配置树位置,配置中心等多对象混合使用时</param>
  2045. </member>
  2046. <member name="T:NewLife.Configuration.GetConfigCallback">
  2047. <summary>获取配置委托。便于集成配置中心</summary>
  2048. <param name="key"></param>
  2049. <returns></returns>
  2050. </member>
  2051. <member name="T:NewLife.Configuration.HttpConfigProvider">
  2052. <summary>配置中心提供者</summary>
  2053. </member>
  2054. <member name="P:NewLife.Configuration.HttpConfigProvider.Server">
  2055. <summary>服务器</summary>
  2056. </member>
  2057. <member name="P:NewLife.Configuration.HttpConfigProvider.Action">
  2058. <summary>服务操作 默认:Config/GetAll</summary>
  2059. </member>
  2060. <member name="P:NewLife.Configuration.HttpConfigProvider.AppId">
  2061. <summary>应用标识</summary>
  2062. </member>
  2063. <member name="P:NewLife.Configuration.HttpConfigProvider.Secret">
  2064. <summary>应用密钥</summary>
  2065. </member>
  2066. <member name="P:NewLife.Configuration.HttpConfigProvider.ClientId">
  2067. <summary>实例。应用可能多实例部署,ip@proccessid</summary>
  2068. </member>
  2069. <member name="P:NewLife.Configuration.HttpConfigProvider.Scope">
  2070. <summary>作用域。获取指定作用域下的配置值,生产、开发、测试 等</summary>
  2071. </member>
  2072. <member name="P:NewLife.Configuration.HttpConfigProvider.CacheLevel">
  2073. <summary>本地缓存配置数据。即使网络断开,仍然能够加载使用本地数据,默认Encrypted</summary>
  2074. </member>
  2075. <member name="P:NewLife.Configuration.HttpConfigProvider.Period">
  2076. <summary>更新周期。默认60秒,0秒表示不做自动更新</summary>
  2077. </member>
  2078. <member name="P:NewLife.Configuration.HttpConfigProvider.Client">
  2079. <summary>Api客户端</summary>
  2080. </member>
  2081. <member name="P:NewLife.Configuration.HttpConfigProvider.Info">
  2082. <summary>服务器信息。配置中心最后一次接口响应,包含配置数据以外的其它内容</summary>
  2083. </member>
  2084. <member name="P:NewLife.Configuration.HttpConfigProvider.IgnoreChangedKeys">
  2085. <summary>需要忽略改变的键。这些键的改变不产生改变事件</summary>
  2086. </member>
  2087. <member name="M:NewLife.Configuration.HttpConfigProvider.#ctor">
  2088. <summary>实例化Http配置提供者,对接星尘和阿波罗等配置中心</summary>
  2089. </member>
  2090. <member name="M:NewLife.Configuration.HttpConfigProvider.Dispose(System.Boolean)">
  2091. <summary>销毁</summary>
  2092. <param name="disposing"></param>
  2093. </member>
  2094. <member name="M:NewLife.Configuration.HttpConfigProvider.ToString">
  2095. <summary>已重载。输出友好信息</summary>
  2096. <returns></returns>
  2097. </member>
  2098. <member name="M:NewLife.Configuration.HttpConfigProvider.GetClient">
  2099. <summary>获取客户端</summary>
  2100. <returns></returns>
  2101. </member>
  2102. <member name="M:NewLife.Configuration.HttpConfigProvider.GetAll">
  2103. <summary>获取所有配置</summary>
  2104. <returns></returns>
  2105. </member>
  2106. <member name="M:NewLife.Configuration.HttpConfigProvider.SetAll(System.Collections.Generic.IDictionary{System.String,System.Object})">
  2107. <summary>设置配置项,保存到服务端</summary>
  2108. <param name="configs"></param>
  2109. <returns></returns>
  2110. </member>
  2111. <member name="M:NewLife.Configuration.HttpConfigProvider.Init(System.String)">
  2112. <summary>初始化提供者,如有必要,此时加载缓存文件</summary>
  2113. <param name="value"></param>
  2114. </member>
  2115. <member name="M:NewLife.Configuration.HttpConfigProvider.Build(System.Collections.Generic.IDictionary{System.String,System.Object})">
  2116. <summary>加载配置字典为配置树</summary>
  2117. <param name="configs"></param>
  2118. <returns></returns>
  2119. </member>
  2120. <member name="M:NewLife.Configuration.HttpConfigProvider.LoadAll">
  2121. <summary>加载配置</summary>
  2122. </member>
  2123. <member name="M:NewLife.Configuration.HttpConfigProvider.SaveAll">
  2124. <summary>保存配置树到数据源</summary>
  2125. </member>
  2126. <member name="M:NewLife.Configuration.HttpConfigProvider.Bind``1(``0,System.Boolean,System.String)">
  2127. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  2128. <typeparam name="T">模型</typeparam>
  2129. <param name="model">模型实例</param>
  2130. <param name="autoReload">是否自动更新。默认true</param>
  2131. <param name="path">路径。配置树位置,配置中心等多对象混合使用时</param>
  2132. </member>
  2133. <member name="F:NewLife.Configuration.HttpConfigProvider._timer">
  2134. <summary>定时器</summary>
  2135. </member>
  2136. <member name="M:NewLife.Configuration.HttpConfigProvider.DoRefresh(System.Object)">
  2137. <summary>定时刷新配置</summary>
  2138. <param name="state"></param>
  2139. </member>
  2140. <member name="T:NewLife.Configuration.IConfigMapping">
  2141. <summary>配置映射接口。用于自定义映射配置树到当前对象</summary>
  2142. <remarks>
  2143. 整体配置数据改变时触发调用该接口,但不表示当前对象所绑定路径的配置数据有改变,用户需要自己判断所属配置数据是否已改变。
  2144. </remarks>
  2145. </member>
  2146. <member name="M:NewLife.Configuration.IConfigMapping.MapConfig(NewLife.Configuration.IConfigProvider,NewLife.Configuration.IConfigSection)">
  2147. <summary>映射配置树到当前对象</summary>
  2148. <param name="provider">配置提供者</param>
  2149. <param name="section">配置数据段</param>
  2150. </member>
  2151. <member name="T:NewLife.Configuration.IConfigProvider">
  2152. <summary>配置提供者</summary>
  2153. <remarks>
  2154. 建立树状配置数据体系,以分布式配置中心为核心,支持基于key的索引读写,也支持Load/Save/Bind的实体模型转换。
  2155. key索引支持冒号分隔的多层结构,在配置中心中不同命名空间使用不同提供者实例,在文件配置中不同文件使用不同提供者实例。
  2156. 一个配置类,支持从不同持久化提供者读取,可根据需要选择配置持久化策略。
  2157. 例如,小系统采用ini/xml/json文件配置,分布式系统采用配置中心。
  2158. 可通过实现IConfigMapping接口来自定义映射配置到模型实例。
  2159. </remarks>
  2160. </member>
  2161. <member name="P:NewLife.Configuration.IConfigProvider.Name">
  2162. <summary>名称</summary>
  2163. </member>
  2164. <member name="P:NewLife.Configuration.IConfigProvider.Root">
  2165. <summary>根元素</summary>
  2166. </member>
  2167. <member name="P:NewLife.Configuration.IConfigProvider.Keys">
  2168. <summary>所有键</summary>
  2169. </member>
  2170. <member name="P:NewLife.Configuration.IConfigProvider.IsNew">
  2171. <summary>是否新的配置文件</summary>
  2172. </member>
  2173. <member name="P:NewLife.Configuration.IConfigProvider.Item(System.String)">
  2174. <summary>获取 或 设置 配置值</summary>
  2175. <param name="key">配置名,支持冒号分隔的多级名称</param>
  2176. <returns></returns>
  2177. </member>
  2178. <member name="M:NewLife.Configuration.IConfigProvider.GetSection(System.String)">
  2179. <summary>查找配置项。可得到子级和配置</summary>
  2180. <param name="key">配置名</param>
  2181. <returns></returns>
  2182. </member>
  2183. <member name="E:NewLife.Configuration.IConfigProvider.Changed">
  2184. <summary>配置改变事件。执行了某些动作,可能导致配置数据发生改变时触发</summary>
  2185. </member>
  2186. <member name="P:NewLife.Configuration.IConfigProvider.GetConfig">
  2187. <summary>返回获取配置的委托</summary>
  2188. </member>
  2189. <member name="M:NewLife.Configuration.IConfigProvider.LoadAll">
  2190. <summary>从数据源加载数据到配置树</summary>
  2191. </member>
  2192. <member name="M:NewLife.Configuration.IConfigProvider.SaveAll">
  2193. <summary>保存配置树到数据源</summary>
  2194. </member>
  2195. <member name="M:NewLife.Configuration.IConfigProvider.Load``1(System.String)">
  2196. <summary>加载配置到模型</summary>
  2197. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  2198. <param name="path">路径。配置树位置,配置中心等多对象混合使用时</param>
  2199. <returns></returns>
  2200. </member>
  2201. <member name="M:NewLife.Configuration.IConfigProvider.Save``1(``0,System.String)">
  2202. <summary>保存模型实例</summary>
  2203. <typeparam name="T">模型</typeparam>
  2204. <param name="model">模型实例</param>
  2205. <param name="path">路径。配置树位置,配置中心等多对象混合使用时</param>
  2206. </member>
  2207. <member name="M:NewLife.Configuration.IConfigProvider.Bind``1(``0,System.Boolean,System.String)">
  2208. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  2209. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  2210. <param name="model">模型实例</param>
  2211. <param name="autoReload">是否自动更新。默认true</param>
  2212. <param name="path">命名空间。配置树位置,配置中心等多对象混合使用时</param>
  2213. </member>
  2214. <member name="M:NewLife.Configuration.IConfigProvider.Bind``1(``0,System.String,System.Action{NewLife.Configuration.IConfigSection})">
  2215. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  2216. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  2217. <param name="model">模型实例</param>
  2218. <param name="path">命名空间。配置树位置,配置中心等多对象混合使用时</param>
  2219. <param name="onChange">配置改变时执行的委托</param>
  2220. </member>
  2221. <member name="T:NewLife.Configuration.ConfigProvider">
  2222. <summary>配置提供者基类</summary>
  2223. <remarks>
  2224. 同时也是基于Items字典的内存配置提供者。
  2225. </remarks>
  2226. </member>
  2227. <member name="P:NewLife.Configuration.ConfigProvider.Name">
  2228. <summary>名称</summary>
  2229. </member>
  2230. <member name="P:NewLife.Configuration.ConfigProvider.Root">
  2231. <summary>根元素</summary>
  2232. </member>
  2233. <member name="P:NewLife.Configuration.ConfigProvider.Keys">
  2234. <summary>所有键</summary>
  2235. </member>
  2236. <member name="P:NewLife.Configuration.ConfigProvider.UsedKeys">
  2237. <summary>已使用的键</summary>
  2238. </member>
  2239. <member name="P:NewLife.Configuration.ConfigProvider.MissedKeys">
  2240. <summary>缺失的键</summary>
  2241. </member>
  2242. <member name="P:NewLife.Configuration.ConfigProvider.GetConfig">
  2243. <summary>返回获取配置的委托</summary>
  2244. </member>
  2245. <member name="E:NewLife.Configuration.ConfigProvider.Changed">
  2246. <summary>配置改变事件。执行了某些动作,可能导致配置数据发生改变时触发</summary>
  2247. </member>
  2248. <member name="P:NewLife.Configuration.ConfigProvider.IsNew">
  2249. <summary>是否新的配置文件</summary>
  2250. </member>
  2251. <member name="M:NewLife.Configuration.ConfigProvider.#ctor">
  2252. <summary>构造函数</summary>
  2253. </member>
  2254. <member name="P:NewLife.Configuration.ConfigProvider.Item(System.String)">
  2255. <summary>获取 或 设置 配置值</summary>
  2256. <param name="key">键</param>
  2257. <returns></returns>
  2258. </member>
  2259. <member name="M:NewLife.Configuration.ConfigProvider.GetSection(System.String)">
  2260. <summary>查找配置项。可得到子级和配置</summary>
  2261. <param name="key"></param>
  2262. <returns></returns>
  2263. </member>
  2264. <member name="M:NewLife.Configuration.ConfigProvider.Find(System.String,System.Boolean)">
  2265. <summary>查找配置项,可指定是否创建</summary>
  2266. <remarks>配置提供者可以重载该方法以实现增强功能。例如星尘配置从注册中心读取数据</remarks>
  2267. <param name="key"></param>
  2268. <param name="createOnMiss"></param>
  2269. <returns></returns>
  2270. </member>
  2271. <member name="M:NewLife.Configuration.ConfigProvider.Init(System.String)">
  2272. <summary>初始化提供者</summary>
  2273. <param name="value"></param>
  2274. </member>
  2275. <member name="M:NewLife.Configuration.ConfigProvider.LoadAll">
  2276. <summary>从数据源加载数据到配置树</summary>
  2277. </member>
  2278. <member name="M:NewLife.Configuration.ConfigProvider.Load``1(System.String)">
  2279. <summary>加载配置到模型</summary>
  2280. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  2281. <param name="path">路径。配置树位置,配置中心等多对象混合使用时</param>
  2282. <returns></returns>
  2283. </member>
  2284. <member name="M:NewLife.Configuration.ConfigProvider.SaveAll">
  2285. <summary>保存配置树到数据源</summary>
  2286. </member>
  2287. <member name="M:NewLife.Configuration.ConfigProvider.Save``1(``0,System.String)">
  2288. <summary>保存模型实例</summary>
  2289. <typeparam name="T">模型</typeparam>
  2290. <param name="model">模型实例</param>
  2291. <param name="path">路径。配置树位置</param>
  2292. </member>
  2293. <member name="M:NewLife.Configuration.ConfigProvider.Bind``1(``0,System.Boolean,System.String)">
  2294. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  2295. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  2296. <param name="model">模型实例</param>
  2297. <param name="autoReload">是否自动更新。默认true</param>
  2298. <param name="path">命名空间。配置树位置,配置中心等多对象混合使用时</param>
  2299. </member>
  2300. <member name="M:NewLife.Configuration.ConfigProvider.Bind``1(``0,System.String,System.Action{NewLife.Configuration.IConfigSection})">
  2301. <summary>绑定模型,使能热更新,配置存储数据改变时同步修改模型属性</summary>
  2302. <typeparam name="T">模型。可通过实现IConfigMapping接口来自定义映射配置到模型实例</typeparam>
  2303. <param name="model">模型实例</param>
  2304. <param name="path">命名空间。配置树位置,配置中心等多对象混合使用时</param>
  2305. <param name="onChange">配置改变时执行的委托</param>
  2306. </member>
  2307. <member name="M:NewLife.Configuration.ConfigProvider.NotifyChange">
  2308. <summary>通知绑定对象,配置数据有改变</summary>
  2309. </member>
  2310. <member name="P:NewLife.Configuration.ConfigProvider.DefaultProvider">
  2311. <summary>默认提供者。默认xml</summary>
  2312. </member>
  2313. <member name="M:NewLife.Configuration.ConfigProvider.Register``1(System.String)">
  2314. <summary>注册提供者</summary>
  2315. <typeparam name="TProvider"></typeparam>
  2316. <param name="name"></param>
  2317. </member>
  2318. <member name="M:NewLife.Configuration.ConfigProvider.Create(System.String)">
  2319. <summary>根据指定名称创建提供者</summary>
  2320. <remarks>
  2321. 如果是文件名,根据后缀确定使用哪一种提供者。
  2322. </remarks>
  2323. <param name="name"></param>
  2324. <returns></returns>
  2325. </member>
  2326. <member name="T:NewLife.Configuration.IConfigSection">
  2327. <summary>配置对象</summary>
  2328. </member>
  2329. <member name="P:NewLife.Configuration.IConfigSection.Key">
  2330. <summary>配置名</summary>
  2331. </member>
  2332. <member name="P:NewLife.Configuration.IConfigSection.Value">
  2333. <summary>配置值</summary>
  2334. </member>
  2335. <member name="P:NewLife.Configuration.IConfigSection.Comment">
  2336. <summary>注释</summary>
  2337. </member>
  2338. <member name="P:NewLife.Configuration.IConfigSection.Childs">
  2339. <summary>子级</summary>
  2340. </member>
  2341. <member name="P:NewLife.Configuration.IConfigSection.Item(System.String)">
  2342. <summary>获取 或 设置 配置值</summary>
  2343. <param name="key">配置名,支持冒号分隔的多级名称</param>
  2344. <returns></returns>
  2345. </member>
  2346. <member name="T:NewLife.Configuration.ConfigSection">
  2347. <summary>配置项</summary>
  2348. </member>
  2349. <member name="P:NewLife.Configuration.ConfigSection.Key">
  2350. <summary>配置名</summary>
  2351. </member>
  2352. <member name="P:NewLife.Configuration.ConfigSection.Value">
  2353. <summary>配置值</summary>
  2354. </member>
  2355. <member name="P:NewLife.Configuration.ConfigSection.Comment">
  2356. <summary>注释</summary>
  2357. </member>
  2358. <member name="P:NewLife.Configuration.ConfigSection.Childs">
  2359. <summary>子级</summary>
  2360. </member>
  2361. <member name="P:NewLife.Configuration.ConfigSection.Item(System.String)">
  2362. <summary>获取 或 设置 配置值</summary>
  2363. <param name="key">键</param>
  2364. <returns></returns>
  2365. </member>
  2366. <member name="M:NewLife.Configuration.ConfigSection.ToString">
  2367. <summary>已重载。</summary>
  2368. <returns></returns>
  2369. </member>
  2370. <member name="T:NewLife.Configuration.InIConfigProvider">
  2371. <summary>Ini文件配置提供者</summary>
  2372. <remarks>
  2373. 支持从不同配置文件加载到不同配置模型
  2374. </remarks>
  2375. </member>
  2376. <member name="M:NewLife.Configuration.InIConfigProvider.Init(System.String)">
  2377. <summary>初始化</summary>
  2378. <param name="value"></param>
  2379. </member>
  2380. <member name="M:NewLife.Configuration.InIConfigProvider.OnRead(System.String,NewLife.Configuration.IConfigSection)">
  2381. <summary>读取配置文件</summary>
  2382. <param name="fileName">文件名</param>
  2383. <param name="section">配置段</param>
  2384. </member>
  2385. <member name="M:NewLife.Configuration.InIConfigProvider.GetString(NewLife.Configuration.IConfigSection)">
  2386. <summary>获取字符串形式</summary>
  2387. <param name="section">配置段</param>
  2388. <returns></returns>
  2389. </member>
  2390. <member name="T:NewLife.Configuration.JsonConfigProvider">
  2391. <summary>Json文件配置提供者</summary>
  2392. <remarks>
  2393. 支持从不同配置文件加载到不同配置模型
  2394. </remarks>
  2395. </member>
  2396. <member name="M:NewLife.Configuration.JsonConfigProvider.LoadAppSettings(System.String)">
  2397. <summary>加载本地配置文件得到配置提供者</summary>
  2398. <param name="fileName">配置文件名,默认appsettings.json</param>
  2399. <returns></returns>
  2400. </member>
  2401. <member name="M:NewLife.Configuration.JsonConfigProvider.Init(System.String)">
  2402. <summary>初始化</summary>
  2403. <param name="value"></param>
  2404. </member>
  2405. <member name="M:NewLife.Configuration.JsonConfigProvider.OnRead(System.String,NewLife.Configuration.IConfigSection)">
  2406. <summary>读取配置文件</summary>
  2407. <param name="fileName">文件名</param>
  2408. <param name="section">配置段</param>
  2409. </member>
  2410. <member name="M:NewLife.Configuration.JsonConfigProvider.GetString(NewLife.Configuration.IConfigSection)">
  2411. <summary>获取字符串形式</summary>
  2412. <param name="section">配置段</param>
  2413. <returns></returns>
  2414. </member>
  2415. <member name="M:NewLife.Configuration.JsonConfigProvider.Map(System.Collections.Generic.IDictionary{System.String,System.Object},NewLife.Configuration.IConfigSection)">
  2416. <summary>字典映射到配置树</summary>
  2417. <param name="src"></param>
  2418. <param name="section"></param>
  2419. </member>
  2420. <member name="M:NewLife.Configuration.JsonConfigProvider.Map(NewLife.Configuration.IConfigSection,System.Collections.Generic.IDictionary{System.String,System.Object})">
  2421. <summary>配置树映射到字典</summary>
  2422. <param name="section"></param>
  2423. <param name="dst"></param>
  2424. </member>
  2425. <member name="M:NewLife.Configuration.JsonConfigProvider.TrimComment(System.String)">
  2426. <summary>
  2427. 清理json字符串中的注释,避免json解析错误
  2428. </summary>
  2429. <param name="text"></param>
  2430. <returns></returns>
  2431. </member>
  2432. <member name="T:NewLife.Configuration.XmlConfigProvider">
  2433. <summary>Xml文件配置提供者</summary>
  2434. <remarks>
  2435. 支持从不同配置文件加载到不同配置模型
  2436. </remarks>
  2437. </member>
  2438. <member name="P:NewLife.Configuration.XmlConfigProvider.RootName">
  2439. <summary>根元素名称</summary>
  2440. </member>
  2441. <member name="M:NewLife.Configuration.XmlConfigProvider.Init(System.String)">
  2442. <summary>初始化</summary>
  2443. <param name="value"></param>
  2444. </member>
  2445. <member name="M:NewLife.Configuration.XmlConfigProvider.OnRead(System.String,NewLife.Configuration.IConfigSection)">
  2446. <summary>读取配置文件</summary>
  2447. <param name="fileName">文件名</param>
  2448. <param name="section">配置段</param>
  2449. </member>
  2450. <member name="M:NewLife.Configuration.XmlConfigProvider.GetString(NewLife.Configuration.IConfigSection)">
  2451. <summary>获取字符串形式</summary>
  2452. <param name="section">配置段</param>
  2453. <returns></returns>
  2454. </member>
  2455. <member name="T:NewLife.Data.DbRow">
  2456. <summary>数据行</summary>
  2457. <remarks>
  2458. 文档 https://newlifex.com/core/dbtable
  2459. </remarks>
  2460. <remarks>构造数据行</remarks>
  2461. <param name="table"></param>
  2462. <param name="index"></param>
  2463. </member>
  2464. <member name="M:NewLife.Data.DbRow.#ctor(NewLife.Data.DbTable,System.Int32)">
  2465. <summary>数据行</summary>
  2466. <remarks>
  2467. 文档 https://newlifex.com/core/dbtable
  2468. </remarks>
  2469. <remarks>构造数据行</remarks>
  2470. <param name="table"></param>
  2471. <param name="index"></param>
  2472. </member>
  2473. <member name="P:NewLife.Data.DbRow.Table">
  2474. <summary>数据表</summary>
  2475. </member>
  2476. <member name="P:NewLife.Data.DbRow.Index">
  2477. <summary>行索引</summary>
  2478. </member>
  2479. <member name="P:NewLife.Data.DbRow.Item(System.Int32)">
  2480. <summary>基于列索引访问</summary>
  2481. <param name="column"></param>
  2482. <returns></returns>
  2483. </member>
  2484. <member name="P:NewLife.Data.DbRow.Item(System.String)">
  2485. <summary>基于列名访问</summary>
  2486. <param name="name"></param>
  2487. <returns></returns>
  2488. </member>
  2489. <member name="M:NewLife.Data.DbRow.Get``1(System.String)">
  2490. <summary>读取指定行的字段值</summary>
  2491. <typeparam name="T"></typeparam>
  2492. <param name="name"></param>
  2493. <returns></returns>
  2494. </member>
  2495. <member name="T:NewLife.Data.DbTable">
  2496. <summary>数据表</summary>
  2497. <remarks>
  2498. 文档 https://newlifex.com/core/dbtable
  2499. </remarks>
  2500. </member>
  2501. <member name="P:NewLife.Data.DbTable.Columns">
  2502. <summary>数据列</summary>
  2503. </member>
  2504. <member name="P:NewLife.Data.DbTable.Types">
  2505. <summary>数据列类型</summary>
  2506. </member>
  2507. <member name="P:NewLife.Data.DbTable.Rows">
  2508. <summary>数据行</summary>
  2509. </member>
  2510. <member name="P:NewLife.Data.DbTable.Total">
  2511. <summary>总行数</summary>
  2512. </member>
  2513. <member name="M:NewLife.Data.DbTable.Read(System.Data.IDataReader)">
  2514. <summary>读取数据</summary>
  2515. <param name="dr"></param>
  2516. </member>
  2517. <member name="M:NewLife.Data.DbTable.ReadHeader(System.Data.IDataReader)">
  2518. <summary>读取头部</summary>
  2519. <param name="dr"></param>
  2520. </member>
  2521. <member name="M:NewLife.Data.DbTable.ReadData(System.Data.IDataReader,System.Int32[])">
  2522. <summary>读取数据</summary>
  2523. <param name="dr">数据读取器</param>
  2524. <param name="fields">要读取的字段序列</param>
  2525. </member>
  2526. <member name="M:NewLife.Data.DbTable.ReadAsync(System.Data.Common.DbDataReader,System.Threading.CancellationToken)">
  2527. <summary>读取数据</summary>
  2528. <param name="dr"></param>
  2529. <param name="cancellationToken">取消通知</param>
  2530. </member>
  2531. <member name="M:NewLife.Data.DbTable.ReadDataAsync(System.Data.Common.DbDataReader,System.Int32[],System.Threading.CancellationToken)">
  2532. <summary>读取数据</summary>
  2533. <param name="dr">数据读取器</param>
  2534. <param name="fields">要读取的字段序列</param>
  2535. <param name="cancellationToken">取消通知</param>
  2536. </member>
  2537. <member name="M:NewLife.Data.DbTable.Read(System.Data.DataTable)">
  2538. <summary>从DataTable读取数据</summary>
  2539. <param name="dataTable">数据表</param>
  2540. </member>
  2541. <member name="M:NewLife.Data.DbTable.ToDataTable">
  2542. <summary>转换为DataTable</summary>
  2543. <returns></returns>
  2544. </member>
  2545. <member name="M:NewLife.Data.DbTable.Write(System.Data.DataTable)">
  2546. <summary>转换为DataTable</summary>
  2547. <param name="dataTable">数据表</param>
  2548. <returns></returns>
  2549. </member>
  2550. <member name="M:NewLife.Data.DbTable.Read(System.IO.Stream)">
  2551. <summary>从数据流读取</summary>
  2552. <param name="stream"></param>
  2553. </member>
  2554. <member name="M:NewLife.Data.DbTable.ReadHeader(NewLife.Serialization.Binary)">
  2555. <summary>读取头部</summary>
  2556. <param name="bn"></param>
  2557. </member>
  2558. <member name="M:NewLife.Data.DbTable.ReadData(NewLife.Serialization.Binary,System.Int32)">
  2559. <summary>读取数据</summary>
  2560. <param name="bn"></param>
  2561. <param name="rows"></param>
  2562. <returns></returns>
  2563. </member>
  2564. <member name="M:NewLife.Data.DbTable.Read(NewLife.Data.Packet)">
  2565. <summary>读取</summary>
  2566. <param name="pk"></param>
  2567. <returns></returns>
  2568. </member>
  2569. <member name="M:NewLife.Data.DbTable.LoadFile(System.String,System.Boolean)">
  2570. <summary>从文件加载</summary>
  2571. <param name="file"></param>
  2572. <param name="compressed">是否压缩</param>
  2573. <returns></returns>
  2574. </member>
  2575. <member name="M:NewLife.Data.DbTable.Write(System.IO.Stream)">
  2576. <summary>写入数据流</summary>
  2577. <param name="stream"></param>
  2578. </member>
  2579. <member name="M:NewLife.Data.DbTable.WriteHeader(NewLife.Serialization.Binary)">
  2580. <summary>写入头部到数据流</summary>
  2581. <param name="bn"></param>
  2582. </member>
  2583. <member name="M:NewLife.Data.DbTable.WriteData(NewLife.Serialization.Binary)">
  2584. <summary>写入数据部分到数据流</summary>
  2585. <param name="bn"></param>
  2586. </member>
  2587. <member name="M:NewLife.Data.DbTable.WriteData(NewLife.Serialization.Binary,System.Int32[])">
  2588. <summary>写入数据部分到数据流</summary>
  2589. <param name="bn"></param>
  2590. <param name="fields">要写入的字段序列</param>
  2591. </member>
  2592. <member name="M:NewLife.Data.DbTable.ToPacket">
  2593. <summary>转数据包</summary>
  2594. <returns></returns>
  2595. </member>
  2596. <member name="M:NewLife.Data.DbTable.SaveFile(System.String,System.Boolean)">
  2597. <summary>保存到文件</summary>
  2598. <param name="file"></param>
  2599. <param name="compressed">是否压缩</param>
  2600. <returns></returns>
  2601. </member>
  2602. <member name="M:NewLife.Data.DbTable.ToJson(System.Boolean,System.Boolean,System.Boolean)">
  2603. <summary>转Json字符串</summary>
  2604. <param name="indented">是否缩进。默认false</param>
  2605. <param name="nullValue">是否写空值。默认true</param>
  2606. <param name="camelCase">是否驼峰命名。默认false</param>
  2607. <returns></returns>
  2608. </member>
  2609. <member name="M:NewLife.Data.DbTable.ToDictionary">
  2610. <summary>转为字典数组形式</summary>
  2611. <returns></returns>
  2612. </member>
  2613. <member name="M:NewLife.Data.DbTable.GetXml">
  2614. <summary>转Xml字符串</summary>
  2615. <returns></returns>
  2616. </member>
  2617. <member name="M:NewLife.Data.DbTable.WriteXml(System.IO.Stream)">
  2618. <summary>以Xml格式写入数据流中</summary>
  2619. <param name="stream"></param>
  2620. </member>
  2621. <member name="M:NewLife.Data.DbTable.SaveCsv(System.String)">
  2622. <summary>保存到Csv文件</summary>
  2623. <param name="file"></param>
  2624. </member>
  2625. <member name="M:NewLife.Data.DbTable.LoadCsv(System.String)">
  2626. <summary>从Csv文件加载</summary>
  2627. <param name="file"></param>
  2628. </member>
  2629. <member name="M:NewLife.Data.DbTable.WriteModels``1(System.Collections.Generic.IEnumerable{``0})">
  2630. <summary>写入模型列表</summary>
  2631. <typeparam name="T"></typeparam>
  2632. <param name="models"></param>
  2633. </member>
  2634. <member name="M:NewLife.Data.DbTable.ReadModels``1">
  2635. <summary>数据表转模型列表。普通反射,便于DAL查询后转任意模型列表</summary>
  2636. <typeparam name="T"></typeparam>
  2637. <returns></returns>
  2638. </member>
  2639. <member name="M:NewLife.Data.DbTable.Get``1(System.Int32,System.String)">
  2640. <summary>读取指定行的字段值</summary>
  2641. <typeparam name="T"></typeparam>
  2642. <param name="row"></param>
  2643. <param name="name"></param>
  2644. <returns></returns>
  2645. </member>
  2646. <member name="M:NewLife.Data.DbTable.TryGet``1(System.Int32,System.String,``0@)">
  2647. <summary>尝试读取指定行的字段值</summary>
  2648. <typeparam name="T"></typeparam>
  2649. <param name="row"></param>
  2650. <param name="name"></param>
  2651. <param name="value"></param>
  2652. <returns></returns>
  2653. </member>
  2654. <member name="M:NewLife.Data.DbTable.GetColumn(System.String)">
  2655. <summary>根据名称找字段序号</summary>
  2656. <param name="name"></param>
  2657. <returns></returns>
  2658. </member>
  2659. <member name="M:NewLife.Data.DbTable.ToString">
  2660. <summary>数据集</summary>
  2661. <returns></returns>
  2662. </member>
  2663. <member name="M:NewLife.Data.DbTable.Clone">
  2664. <summary>克隆</summary>
  2665. <returns></returns>
  2666. </member>
  2667. <member name="M:NewLife.Data.DbTable.GetRow(System.Int32)">
  2668. <summary>获取数据行</summary>
  2669. <param name="index"></param>
  2670. <returns></returns>
  2671. </member>
  2672. <member name="M:NewLife.Data.DbTable.GetEnumerator">
  2673. <summary>获取枚举</summary>
  2674. <returns></returns>
  2675. </member>
  2676. <member name="T:NewLife.Data.GeoHash">
  2677. <summary>经纬坐标的一维编码表示</summary>
  2678. <remarks>
  2679. 文档 https://newlifex.com/core/geo_hash
  2680. 一维编码表示一个矩形区域,前缀表示更大区域,例如北京wx4fbzdvs80包含在wx4fbzdvs里面。
  2681. 这个特性可以用于附近地点搜索。
  2682. GeoHash编码位数及距离关系:
  2683. 1位,+-2500km;
  2684. 2位,+-630km;
  2685. 3位,+-78km;
  2686. 4位,+-20km;
  2687. 5位,+-2.4km;
  2688. 6位,+-610m;
  2689. 7位,+-76m;
  2690. 8位,+-19m;
  2691. 9位,+-2m;
  2692. </remarks>
  2693. </member>
  2694. <member name="M:NewLife.Data.GeoHash.Encode(System.Double,System.Double,System.Int32)">
  2695. <summary>编码坐标点为GeoHash字符串</summary>
  2696. <param name="longitude">经度</param>
  2697. <param name="latitude">纬度</param>
  2698. <param name="charCount">字符个数。默认9位字符编码,精度2米</param>
  2699. <returns></returns>
  2700. </member>
  2701. <member name="M:NewLife.Data.GeoHash.Decode(System.String)">
  2702. <summary>解码GeoHash字符串为坐标点</summary>
  2703. <param name="geohash"></param>
  2704. <returns></returns>
  2705. </member>
  2706. <member name="T:NewLife.Data.IData">
  2707. <summary>数据帧接口。用于网络通信领域,定义数据帧的必要字段</summary>
  2708. </member>
  2709. <member name="P:NewLife.Data.IData.Packet">
  2710. <summary>原始数据包</summary>
  2711. </member>
  2712. <member name="P:NewLife.Data.IData.Remote">
  2713. <summary>远程地址</summary>
  2714. </member>
  2715. <member name="P:NewLife.Data.IData.Message">
  2716. <summary>解码后的消息</summary>
  2717. </member>
  2718. <member name="P:NewLife.Data.IData.UserState">
  2719. <summary>用户自定义数据</summary>
  2720. </member>
  2721. <member name="T:NewLife.Data.IExtend">
  2722. <summary>具有可读写的扩展数据</summary>
  2723. <remarks>
  2724. 仅限于扩展属性,不包括基本属性,区别于 IModel
  2725. </remarks>
  2726. </member>
  2727. <member name="P:NewLife.Data.IExtend.Items">
  2728. <summary>数据项</summary>
  2729. </member>
  2730. <member name="P:NewLife.Data.IExtend.Item(System.String)">
  2731. <summary>设置 或 获取 数据项</summary>
  2732. <param name="key"></param>
  2733. <returns></returns>
  2734. </member>
  2735. <member name="T:NewLife.Data.IExtend2">
  2736. <summary>具有扩展数据字典</summary>
  2737. <remarks>
  2738. 仅限于扩展属性,不包括基本属性
  2739. </remarks>
  2740. </member>
  2741. <member name="P:NewLife.Data.IExtend2.Keys">
  2742. <summary>扩展数据键集合</summary>
  2743. </member>
  2744. <member name="T:NewLife.Data.IExtend3">
  2745. <summary>具有扩展数据字典</summary>
  2746. <remarks>
  2747. 仅限于扩展属性,不包括基本属性
  2748. </remarks>
  2749. </member>
  2750. <member name="T:NewLife.Data.IFilter">
  2751. <summary>数据过滤器</summary>
  2752. </member>
  2753. <member name="P:NewLife.Data.IFilter.Next">
  2754. <summary>下一个过滤器</summary>
  2755. </member>
  2756. <member name="M:NewLife.Data.IFilter.Execute(NewLife.Data.FilterContext)">
  2757. <summary>对封包执行过滤器</summary>
  2758. <param name="context"></param>
  2759. </member>
  2760. <member name="T:NewLife.Data.FilterContext">
  2761. <summary>过滤器上下文</summary>
  2762. </member>
  2763. <member name="P:NewLife.Data.FilterContext.Packet">
  2764. <summary>封包</summary>
  2765. </member>
  2766. <member name="T:NewLife.Data.FilterHelper">
  2767. <summary>过滤器助手</summary>
  2768. </member>
  2769. <member name="M:NewLife.Data.FilterHelper.Find(NewLife.Data.IFilter,System.Type)">
  2770. <summary>在链条里面查找指定类型的过滤器</summary>
  2771. <param name="filter"></param>
  2772. <param name="filterType"></param>
  2773. <returns></returns>
  2774. </member>
  2775. <member name="T:NewLife.Data.FilterBase">
  2776. <summary>数据过滤器基类</summary>
  2777. </member>
  2778. <member name="P:NewLife.Data.FilterBase.Next">
  2779. <summary>下一个过滤器</summary>
  2780. </member>
  2781. <member name="M:NewLife.Data.FilterBase.Execute(NewLife.Data.FilterContext)">
  2782. <summary>对封包执行过滤器</summary>
  2783. <param name="context"></param>
  2784. </member>
  2785. <member name="M:NewLife.Data.FilterBase.OnExecute(NewLife.Data.FilterContext)">
  2786. <summary>执行过滤</summary>
  2787. <param name="context"></param>
  2788. <returns>返回是否执行下一个过滤器</returns>
  2789. </member>
  2790. <member name="T:NewLife.Data.IModel">
  2791. <summary>模型数据接口,支持索引器读写属性</summary>
  2792. <remarks>
  2793. 可借助反射取得属性列表成员,从而对实体模型属性进行读写操作,避免反射带来的负担。
  2794. 常用于WebApi模型类以及XCode数据实体类,也用于魔方接口拷贝。
  2795. 逐步替代 IExtend 的大部分使用场景
  2796. </remarks>
  2797. </member>
  2798. <member name="P:NewLife.Data.IModel.Item(System.String)">
  2799. <summary>设置 或 获取 数据项</summary>
  2800. <param name="key"></param>
  2801. <returns></returns>
  2802. </member>
  2803. <member name="T:NewLife.Data.IndexRange">
  2804. <summary>
  2805. 范围
  2806. </summary>
  2807. </member>
  2808. <member name="F:NewLife.Data.IndexRange.Start">
  2809. <summary>
  2810. 开始,包含
  2811. </summary>
  2812. </member>
  2813. <member name="F:NewLife.Data.IndexRange.End">
  2814. <summary>
  2815. 结束,不包含
  2816. </summary>
  2817. </member>
  2818. <member name="M:NewLife.Data.IndexRange.ToString">
  2819. <summary>
  2820. 已重载
  2821. </summary>
  2822. <returns></returns>
  2823. </member>
  2824. <member name="T:NewLife.Data.IPacketEncoder">
  2825. <summary>数据包编码器接口</summary>
  2826. </member>
  2827. <member name="M:NewLife.Data.IPacketEncoder.Encode(System.Object)">
  2828. <summary>数值转数据包</summary>
  2829. <param name="value">数值对象</param>
  2830. <returns></returns>
  2831. </member>
  2832. <member name="M:NewLife.Data.IPacketEncoder.Decode(NewLife.Data.Packet,System.Type)">
  2833. <summary>数据包转对象</summary>
  2834. <param name="data">数据包</param>
  2835. <param name="type">目标类型</param>
  2836. <returns></returns>
  2837. </member>
  2838. <member name="T:NewLife.Data.DefaultPacketEncoder">
  2839. <summary>默认数据包编码器。基础类型直接转,复杂类型Json序列化</summary>
  2840. </member>
  2841. <member name="P:NewLife.Data.DefaultPacketEncoder.ThrowOnError">
  2842. <summary>解码出错时抛出异常。默认false不抛出异常,仅返回默认值</summary>
  2843. </member>
  2844. <member name="M:NewLife.Data.DefaultPacketEncoder.Encode(System.Object)">
  2845. <summary>数值转数据包</summary>
  2846. <param name="value"></param>
  2847. <returns></returns>
  2848. </member>
  2849. <member name="M:NewLife.Data.DefaultPacketEncoder.Decode(NewLife.Data.Packet,System.Type)">
  2850. <summary>数据包转对象</summary>
  2851. <param name="data"></param>
  2852. <param name="type"></param>
  2853. <returns></returns>
  2854. </member>
  2855. <member name="T:NewLife.Data.Packet">
  2856. <summary>数据包。表示数据区Data的指定范围(Offset, Count)。</summary>
  2857. <remarks>
  2858. 文档 https://newlifex.com/core/packet
  2859. 设计于.NET2.0时代,功能上类似于NETCore的Span/Memory。
  2860. Packet的设计目标就是网络库零拷贝,所以Slice切片是其最重要功能。
  2861. </remarks>
  2862. </member>
  2863. <member name="P:NewLife.Data.Packet.Data">
  2864. <summary>数据</summary>
  2865. </member>
  2866. <member name="P:NewLife.Data.Packet.Offset">
  2867. <summary>偏移</summary>
  2868. </member>
  2869. <member name="P:NewLife.Data.Packet.Count">
  2870. <summary>长度</summary>
  2871. </member>
  2872. <member name="P:NewLife.Data.Packet.Next">
  2873. <summary>下一个链式包</summary>
  2874. </member>
  2875. <member name="P:NewLife.Data.Packet.Total">
  2876. <summary>总长度</summary>
  2877. </member>
  2878. <member name="M:NewLife.Data.Packet.#ctor(System.Byte[],System.Int32,System.Int32)">
  2879. <summary>根据数据区实例化</summary>
  2880. <param name="data"></param>
  2881. <param name="offset"></param>
  2882. <param name="count"></param>
  2883. </member>
  2884. <member name="M:NewLife.Data.Packet.#ctor(System.ArraySegment{System.Byte})">
  2885. <summary>根据数组段实例化</summary>
  2886. <param name="seg"></param>
  2887. </member>
  2888. <member name="M:NewLife.Data.Packet.#ctor(System.IO.Stream)">
  2889. <summary>从可扩展内存流实例化,尝试窃取内存流内部的字节数组,失败后拷贝</summary>
  2890. <remarks>因数据包内数组窃取自内存流,需要特别小心,避免多线程共用。常用于内存流转数据包,而内存流不再使用</remarks>
  2891. <param name="stream"></param>
  2892. </member>
  2893. <member name="P:NewLife.Data.Packet.Item(System.Int32)">
  2894. <summary>获取/设置 指定位置的字节</summary>
  2895. <param name="index"></param>
  2896. <returns></returns>
  2897. </member>
  2898. <member name="M:NewLife.Data.Packet.Set(System.Byte[],System.Int32,System.Int32)">
  2899. <summary>设置新的数据区</summary>
  2900. <param name="data">数据区</param>
  2901. <param name="offset">偏移</param>
  2902. <param name="count">字节个数</param>
  2903. </member>
  2904. <member name="M:NewLife.Data.Packet.Slice(System.Int32,System.Int32)">
  2905. <summary>截取子数据区</summary>
  2906. <param name="offset">相对偏移</param>
  2907. <param name="count">字节个数</param>
  2908. <returns></returns>
  2909. </member>
  2910. <member name="M:NewLife.Data.Packet.IndexOf(System.Byte[],System.Int32,System.Int32)">
  2911. <summary>查找目标数组</summary>
  2912. <param name="data">目标数组</param>
  2913. <param name="offset">本数组起始偏移</param>
  2914. <param name="count">本数组搜索个数</param>
  2915. <returns></returns>
  2916. </member>
  2917. <member name="M:NewLife.Data.Packet.Append(NewLife.Data.Packet)">
  2918. <summary>附加一个包到当前包链的末尾</summary>
  2919. <param name="pk"></param>
  2920. </member>
  2921. <member name="M:NewLife.Data.Packet.ToArray">
  2922. <summary>返回字节数组。无差别复制,一定返回新数组</summary>
  2923. <returns></returns>
  2924. </member>
  2925. <member name="M:NewLife.Data.Packet.ReadBytes(System.Int32,System.Int32)">
  2926. <summary>从封包中读取指定数据区,读取全部时直接返回缓冲区,以提升性能</summary>
  2927. <param name="offset">相对于数据包的起始位置,实际上是数组的Offset+offset</param>
  2928. <param name="count">字节个数</param>
  2929. <returns></returns>
  2930. </member>
  2931. <member name="M:NewLife.Data.Packet.ToSegment">
  2932. <summary>返回数据段</summary>
  2933. <returns></returns>
  2934. </member>
  2935. <member name="M:NewLife.Data.Packet.ToSegments">
  2936. <summary>返回数据段集合</summary>
  2937. <returns></returns>
  2938. </member>
  2939. <member name="M:NewLife.Data.Packet.GetStream">
  2940. <summary>获取封包的数据流形式</summary>
  2941. <returns></returns>
  2942. </member>
  2943. <member name="M:NewLife.Data.Packet.CopyTo(System.IO.Stream)">
  2944. <summary>把封包写入到数据流</summary>
  2945. <param name="stream"></param>
  2946. </member>
  2947. <member name="M:NewLife.Data.Packet.WriteTo(System.Byte[],System.Int32,System.Int32)">
  2948. <summary>把封包写入到目标数组</summary>
  2949. <param name="buffer">目标数组</param>
  2950. <param name="offset">目标数组的偏移量</param>
  2951. <param name="count">目标数组的字节数</param>
  2952. </member>
  2953. <member name="M:NewLife.Data.Packet.CopyToAsync(System.IO.Stream)">
  2954. <summary>异步复制到目标数据流</summary>
  2955. <param name="stream"></param>
  2956. <returns></returns>
  2957. </member>
  2958. <member name="M:NewLife.Data.Packet.CopyToAsync(System.IO.Stream,System.Threading.CancellationToken)">
  2959. <summary>异步复制到目标数据流</summary>
  2960. <param name="stream"></param>
  2961. <param name="cancellationToken">取消通知</param>
  2962. <returns></returns>
  2963. </member>
  2964. <member name="M:NewLife.Data.Packet.Clone">
  2965. <summary>深度克隆一份数据包,拷贝数据区</summary>
  2966. <returns></returns>
  2967. </member>
  2968. <member name="M:NewLife.Data.Packet.ToStr(System.Text.Encoding,System.Int32,System.Int32)">
  2969. <summary>以字符串表示</summary>
  2970. <param name="encoding">字符串编码,默认URF-8</param>
  2971. <param name="offset"></param>
  2972. <param name="count"></param>
  2973. <returns></returns>
  2974. </member>
  2975. <member name="M:NewLife.Data.Packet.ToHex(System.Int32,System.String,System.Int32)">
  2976. <summary>以十六进制编码表示</summary>
  2977. <param name="maxLength">最大显示多少个字节。默认-1显示全部</param>
  2978. <param name="separate">分隔符</param>
  2979. <param name="groupSize">分组大小,为0时对每个字节应用分隔符,否则对每个分组使用</param>
  2980. <returns></returns>
  2981. </member>
  2982. <member name="M:NewLife.Data.Packet.ToBase64">
  2983. <summary>转为Base64编码</summary>
  2984. <returns></returns>
  2985. </member>
  2986. <member name="M:NewLife.Data.Packet.ReadUInt16(System.Boolean)">
  2987. <summary>读取无符号短整数</summary>
  2988. <param name="isLittleEndian"></param>
  2989. <returns></returns>
  2990. </member>
  2991. <member name="M:NewLife.Data.Packet.ReadUInt32(System.Boolean)">
  2992. <summary>读取无符号整数</summary>
  2993. <param name="isLittleEndian"></param>
  2994. <returns></returns>
  2995. </member>
  2996. <member name="M:NewLife.Data.Packet.op_Implicit(System.Byte[])~NewLife.Data.Packet">
  2997. <summary>重载类型转换,字节数组直接转为Packet对象</summary>
  2998. <param name="value"></param>
  2999. <returns></returns>
  3000. </member>
  3001. <member name="M:NewLife.Data.Packet.op_Implicit(System.ArraySegment{System.Byte})~NewLife.Data.Packet">
  3002. <summary>重载类型转换,一维数组直接转为Packet对象</summary>
  3003. <param name="value"></param>
  3004. <returns></returns>
  3005. </member>
  3006. <member name="M:NewLife.Data.Packet.op_Implicit(System.String)~NewLife.Data.Packet">
  3007. <summary>重载类型转换,字符串直接转为Packet对象</summary>
  3008. <param name="value"></param>
  3009. <returns></returns>
  3010. </member>
  3011. <member name="M:NewLife.Data.Packet.ToString">
  3012. <summary>已重载</summary>
  3013. <returns></returns>
  3014. </member>
  3015. <member name="T:NewLife.Data.PageParameter">
  3016. <summary>分页参数信息。可携带统计和数据权限扩展查询等信息</summary>
  3017. <remarks>
  3018. 文档 https://newlifex.com/core/page_parameter
  3019. </remarks>
  3020. </member>
  3021. <member name="P:NewLife.Data.PageParameter.Sort">
  3022. <summary>获取 或 设置 排序字段,前台接收,便于做SQL安全性校验</summary>
  3023. <remarks>
  3024. 一般用于接收单个排序字段,可以带上Asc/Desc,这里会自动拆分。
  3025. 极少数情况下,前端需要传递多个字段排序,这时候可以使用OrderBy。
  3026. OrderBy优先级更高,且支持手写复杂排序语句(不做SQL安全性校验)。
  3027. 如果设置Sort,OrderBy将被清空。
  3028. </remarks>
  3029. </member>
  3030. <member name="P:NewLife.Data.PageParameter.Desc">
  3031. <summary>获取 或 设置 是否降序</summary>
  3032. </member>
  3033. <member name="P:NewLife.Data.PageParameter.PageIndex">
  3034. <summary>获取 或 设置 页面索引。从1开始,默认1</summary>
  3035. <remarks>如果设定了开始行,分页时将不再使用PageIndex</remarks>
  3036. </member>
  3037. <member name="P:NewLife.Data.PageParameter.PageSize">
  3038. <summary>获取 或 设置 页面大小。默认20,若为0表示不分页</summary>
  3039. </member>
  3040. <member name="P:NewLife.Data.PageParameter.TotalCount">
  3041. <summary>获取 或 设置 总记录数</summary>
  3042. </member>
  3043. <member name="P:NewLife.Data.PageParameter.PageCount">
  3044. <summary>获取 页数</summary>
  3045. </member>
  3046. <member name="P:NewLife.Data.PageParameter.OrderBy">
  3047. <summary>获取 或 设置 自定义排序字句。常用于用户自定义排序,不经过SQL安全性校验</summary>
  3048. <remarks>
  3049. OrderBy优先级更高,且支持手写复杂排序语句(不做SQL安全性校验)。
  3050. 如果设置Sort,OrderBy将被清空。
  3051. </remarks>
  3052. </member>
  3053. <member name="P:NewLife.Data.PageParameter.StartRow">
  3054. <summary>获取 或 设置 开始行</summary>
  3055. <remarks>如果设定了开始行,分页时将不再使用PageIndex</remarks>
  3056. </member>
  3057. <member name="P:NewLife.Data.PageParameter.RetrieveTotalCount">
  3058. <summary>获取 或 设置 是否获取总记录数,默认false</summary>
  3059. </member>
  3060. <member name="P:NewLife.Data.PageParameter.State">
  3061. <summary>获取 或 设置 状态。用于传递统计、扩展查询等用户数据</summary>
  3062. </member>
  3063. <member name="P:NewLife.Data.PageParameter.RetrieveState">
  3064. <summary>获取 或 设置 是否获取统计,默认false</summary>
  3065. </member>
  3066. <member name="M:NewLife.Data.PageParameter.#ctor">
  3067. <summary>实例化分页参数</summary>
  3068. </member>
  3069. <member name="M:NewLife.Data.PageParameter.#ctor(NewLife.Data.PageParameter)">
  3070. <summary>通过另一个分页参数来实例化当前分页参数</summary>
  3071. <param name="pm"></param>
  3072. </member>
  3073. <member name="M:NewLife.Data.PageParameter.CopyFrom(NewLife.Data.PageParameter)">
  3074. <summary>从另一个分页参数拷贝到当前分页参数</summary>
  3075. <param name="pm"></param>
  3076. <returns></returns>
  3077. </member>
  3078. <member name="M:NewLife.Data.PageParameter.GetKey">
  3079. <summary>获取表示分页参数唯一性的键值,可用作缓存键</summary>
  3080. <returns></returns>
  3081. </member>
  3082. <member name="T:NewLife.Data.RingBuffer">
  3083. <summary>环形缓冲区。用于协议组包设计</summary>
  3084. </member>
  3085. <member name="P:NewLife.Data.RingBuffer.Capacity">
  3086. <summary>容量</summary>
  3087. </member>
  3088. <member name="P:NewLife.Data.RingBuffer.Head">
  3089. <summary>头指针。写入位置</summary>
  3090. </member>
  3091. <member name="P:NewLife.Data.RingBuffer.Tail">
  3092. <summary>尾指针。读取位置</summary>
  3093. </member>
  3094. <member name="P:NewLife.Data.RingBuffer.Length">
  3095. <summary>数据长度</summary>
  3096. </member>
  3097. <member name="M:NewLife.Data.RingBuffer.#ctor">
  3098. <summary>使用默认容量1024来初始化</summary>
  3099. </member>
  3100. <member name="M:NewLife.Data.RingBuffer.#ctor(System.Int32)">
  3101. <summary>实例化环形缓冲区</summary>
  3102. <param name="capacity">容量。合理的容量能够减少扩容</param>
  3103. </member>
  3104. <member name="M:NewLife.Data.RingBuffer.EnsureCapacity(System.Int32)">
  3105. <summary>扩容,确保容量</summary>
  3106. <param name="capacity"></param>
  3107. </member>
  3108. <member name="M:NewLife.Data.RingBuffer.Write(System.Byte[],System.Int32,System.Int32)">
  3109. <summary>写入数据</summary>
  3110. <param name="data">数据</param>
  3111. <param name="offset">偏移量</param>
  3112. <param name="count">个数</param>
  3113. </member>
  3114. <member name="M:NewLife.Data.RingBuffer.Read(System.Byte[],System.Int32,System.Int32)">
  3115. <summary>读取数据</summary>
  3116. <param name="data">数据</param>
  3117. <param name="offset">偏移量</param>
  3118. <param name="count">个数</param>
  3119. <returns></returns>
  3120. </member>
  3121. <member name="T:NewLife.Data.Snowflake">
  3122. <summary>雪花算法。分布式Id,业务内必须确保单例</summary>
  3123. <remarks>
  3124. 文档 https://newlifex.com/core/snow_flake
  3125. 使用一个 64 bit 的 long 型的数字作为全局唯一 id。在分布式系统中的应用十分广泛,且ID 引入了时间戳,基本上保持自增。
  3126. 1bit保留 + 41bit时间戳 + 10bit机器 + 12bit序列号
  3127. 内置自动选择机器workerId,IP+进程+线程,无法绝对保证唯一,从而导致整体生成的雪花Id有一定几率重复。
  3128. 如果想要绝对唯一,建议在外部设置唯一的workerId,再结合单例使用,此时确保最终生成的Id绝对不重复!
  3129. 高要求场合,推荐使用Redis自增序数作为workerId,在大型分布式系统中亦能保证绝对唯一。
  3130. 已提供JoinCluster方法,用于把当前对象加入集群,确保workerId唯一。
  3131. 务必请保证Snowflake对象的唯一性,Snowflake确保本对象生成的Id绝对唯一,但如果有多个Snowflake对象,可能会生成重复Id。
  3132. 特别在使用XCode等数据中间件时,要确保每张表只有一个Snowflake实例。
  3133. </remarks>
  3134. </member>
  3135. <member name="P:NewLife.Data.Snowflake.StartTimestamp">
  3136. <summary>开始时间戳。首次使用前设置,否则无效,默认1970-1-1</summary>
  3137. <remarks>
  3138. 该时间戳默认已带有时区偏移,不管是为本地时间还是UTC时间生成雪花Id,都是一样的时间大小。
  3139. 默认值本质上就是UTC 1970-1-1,转本地时间是为了方便解析雪花Id时得到的时间就是本地时间,最大兼容已有业务。
  3140. 在星尘和IoT的自动分表场景中,一般需要用本地时间来作为分表依据,所以默认值是本地时间。
  3141. </remarks>
  3142. </member>
  3143. <member name="P:NewLife.Data.Snowflake.WorkerId">
  3144. <summary>机器Id,取10位</summary>
  3145. <remarks>
  3146. 内置默认取IP+进程+线程,不能保证绝对唯一,要求高的场合建议外部保证workerId唯一。
  3147. 一般借助Redis自增序数作为workerId,确保绝对唯一。
  3148. 如果应用接入星尘,将自动从星尘配置中心获取workerId,确保全局唯一。
  3149. </remarks>
  3150. </member>
  3151. <member name="P:NewLife.Data.Snowflake.Sequence">
  3152. <summary>序列号,取12位。进程内静态,避免多个实例生成重复Id</summary>
  3153. </member>
  3154. <member name="P:NewLife.Data.Snowflake.GlobalWorkerId">
  3155. <summary>全局机器Id。若设置,所有雪花实例都将使用该Id,可以由星尘配置中心提供本应用全局唯一机器码,且跨多环境唯一</summary>
  3156. </member>
  3157. <member name="P:NewLife.Data.Snowflake.Cluster">
  3158. <summary>workerId分配集群。配置后可确保所有实例化的雪花对象得到唯一workerId,建议使用Redis</summary>
  3159. </member>
  3160. <member name="M:NewLife.Data.Snowflake.NewId">
  3161. <summary>获取下一个Id</summary>
  3162. <remarks>基于当前时间,转StartTimestamp所属时区后,生成Id</remarks>
  3163. <returns></returns>
  3164. </member>
  3165. <member name="M:NewLife.Data.Snowflake.NewId(System.DateTime)">
  3166. <summary>获取指定时间的Id,带上节点和序列号。可用于根据业务时间构造插入Id</summary>
  3167. <remarks>
  3168. 基于指定时间,转StartTimestamp所属时区后,生成Id。
  3169. 如果为指定毫秒时间生成多个Id(超过4096),则可能重复。
  3170. </remarks>
  3171. <param name="time">时间</param>
  3172. <returns></returns>
  3173. </member>
  3174. <member name="M:NewLife.Data.Snowflake.NewId(System.DateTime,System.Int32)">
  3175. <summary>获取指定时间的Id,传入唯一业务id(取模为10位)。可用于物联网数据采集,每1024个传感器为一组,每组每毫秒多个Id</summary>
  3176. <remarks>
  3177. 基于指定时间,转StartTimestamp所属时区后,生成Id。
  3178. 在物联网数据采集中,数据分析需要,更多希望能够按照采集时间去存储。
  3179. 为了避免主键重复,可以使用传感器id作为workerId。
  3180. uid需要取模为10位,即按1024分组,每组每毫秒最多生成4096个Id。
  3181. 如果为指定分组在特定毫秒时间生成多个Id(超过4096),则可能重复。
  3182. </remarks>
  3183. <param name="time">时间</param>
  3184. <param name="uid">唯一业务id。例如传感器id</param>
  3185. <returns></returns>
  3186. </member>
  3187. <member name="M:NewLife.Data.Snowflake.NewId22(System.DateTime,System.Int32)">
  3188. <summary>获取指定时间的Id,传入唯一业务id(22位)。可用于物联网数据采集,每4194304个传感器一组,每组每毫秒1个Id</summary>
  3189. <remarks>
  3190. 基于指定时间,转StartTimestamp所属时区后,生成Id。
  3191. 在物联网数据采集中,数据分析需要,更多希望能够按照采集时间去存储。
  3192. 为了避免主键重复,可以使用传感器id作为workerId。
  3193. 再配合upsert写入数据,如果同一个毫秒内传感器有多行数据,则只会插入一行。
  3194. 如果为指定业务id在特定毫秒时间生成多个Id(超过1个),则可能重复。
  3195. </remarks>
  3196. <param name="time">时间</param>
  3197. <param name="uid">唯一业务id。例如传感器id</param>
  3198. <returns></returns>
  3199. </member>
  3200. <member name="M:NewLife.Data.Snowflake.GetId(System.DateTime)">
  3201. <summary>时间转为Id,不带节点和序列号。可用于构建时间片段查询</summary>
  3202. <remarks>
  3203. 基于指定时间,转StartTimestamp所属时区后,生成不带WorkerId和序列号的Id。
  3204. 一般用于构建时间片段查询,例如查询某个时间段内的数据,把时间片段转为雪花Id片段。
  3205. </remarks>
  3206. <param name="time">时间</param>
  3207. <returns></returns>
  3208. </member>
  3209. <member name="M:NewLife.Data.Snowflake.TryParse(System.Int64,System.DateTime@,System.Int32@,System.Int32@)">
  3210. <summary>解析雪花Id,得到时间、WorkerId和序列号</summary>
  3211. <remarks>
  3212. 其中的时间是StartTimestamp所属时区的时间。
  3213. </remarks>
  3214. <param name="id"></param>
  3215. <param name="time">时间</param>
  3216. <param name="workerId">节点</param>
  3217. <param name="sequence">序列号</param>
  3218. <returns></returns>
  3219. </member>
  3220. <member name="M:NewLife.Data.Snowflake.ConvertKind(System.DateTime)">
  3221. <summary>把输入时间转为开始时间戳的类型,便于相减</summary>
  3222. <param name="time"></param>
  3223. <returns></returns>
  3224. </member>
  3225. <member name="M:NewLife.Data.Snowflake.JoinCluster(NewLife.Caching.ICache,System.String)">
  3226. <summary>加入集群。由集群统一分配WorkerId,确保唯一,从而保证生成的雪花Id绝对唯一</summary>
  3227. <param name="cache"></param>
  3228. <param name="key"></param>
  3229. </member>
  3230. <member name="T:NewLife.Data.TimePoint">
  3231. <summary>
  3232. 时序点,用于时序数据计算
  3233. </summary>
  3234. </member>
  3235. <member name="F:NewLife.Data.TimePoint.Time">
  3236. <summary>
  3237. 时间
  3238. </summary>
  3239. </member>
  3240. <member name="F:NewLife.Data.TimePoint.Value">
  3241. <summary>
  3242. 数值
  3243. </summary>
  3244. </member>
  3245. <member name="M:NewLife.Data.TimePoint.ToString">
  3246. <summary>
  3247. 已重载
  3248. </summary>
  3249. <returns></returns>
  3250. </member>
  3251. <member name="T:NewLife.EventArgs`1">
  3252. <summary>泛型事件参数</summary>
  3253. <typeparam name="TArg"></typeparam>
  3254. </member>
  3255. <member name="P:NewLife.EventArgs`1.Arg">
  3256. <summary>参数</summary>
  3257. </member>
  3258. <member name="M:NewLife.EventArgs`1.#ctor(`0)">
  3259. <summary>使用参数初始化</summary>
  3260. <param name="arg"></param>
  3261. </member>
  3262. <member name="M:NewLife.EventArgs`1.Pop(`0@)">
  3263. <summary>弹出</summary>
  3264. <param name="arg"></param>
  3265. </member>
  3266. <member name="T:NewLife.EventArgs`2">
  3267. <summary>泛型事件参数</summary>
  3268. <typeparam name="TArg1"></typeparam>
  3269. <typeparam name="TArg2"></typeparam>
  3270. </member>
  3271. <member name="P:NewLife.EventArgs`2.Arg1">
  3272. <summary>参数</summary>
  3273. </member>
  3274. <member name="P:NewLife.EventArgs`2.Arg2">
  3275. <summary>参数2</summary>
  3276. </member>
  3277. <member name="M:NewLife.EventArgs`2.#ctor(`0,`1)">
  3278. <summary>使用参数初始化</summary>
  3279. <param name="arg1"></param>
  3280. <param name="arg2"></param>
  3281. </member>
  3282. <member name="M:NewLife.EventArgs`2.Pop(`0@,`1@)">
  3283. <summary>弹出</summary>
  3284. <param name="arg1"></param>
  3285. <param name="arg2"></param>
  3286. </member>
  3287. <member name="T:NewLife.EventArgs`3">
  3288. <summary>泛型事件参数</summary>
  3289. <typeparam name="TArg1"></typeparam>
  3290. <typeparam name="TArg2"></typeparam>
  3291. <typeparam name="TArg3"></typeparam>
  3292. </member>
  3293. <member name="P:NewLife.EventArgs`3.Arg1">
  3294. <summary>参数</summary>
  3295. </member>
  3296. <member name="P:NewLife.EventArgs`3.Arg2">
  3297. <summary>参数2</summary>
  3298. </member>
  3299. <member name="P:NewLife.EventArgs`3.Arg3">
  3300. <summary>参数3</summary>
  3301. </member>
  3302. <member name="M:NewLife.EventArgs`3.#ctor(`0,`1,`2)">
  3303. <summary>使用参数初始化</summary>
  3304. <param name="arg1"></param>
  3305. <param name="arg2"></param>
  3306. <param name="arg3"></param>
  3307. </member>
  3308. <member name="M:NewLife.EventArgs`3.Pop(`0@,`1@,`2@)">
  3309. <summary>弹出</summary>
  3310. <param name="arg1"></param>
  3311. <param name="arg2"></param>
  3312. <param name="arg3"></param>
  3313. </member>
  3314. <member name="T:NewLife.EventArgs`4">
  3315. <summary>泛型事件参数</summary>
  3316. <typeparam name="TArg1"></typeparam>
  3317. <typeparam name="TArg2"></typeparam>
  3318. <typeparam name="TArg3"></typeparam>
  3319. <typeparam name="TArg4"></typeparam>
  3320. </member>
  3321. <member name="P:NewLife.EventArgs`4.Arg1">
  3322. <summary>参数</summary>
  3323. </member>
  3324. <member name="P:NewLife.EventArgs`4.Arg2">
  3325. <summary>参数2</summary>
  3326. </member>
  3327. <member name="P:NewLife.EventArgs`4.Arg3">
  3328. <summary>参数3</summary>
  3329. </member>
  3330. <member name="P:NewLife.EventArgs`4.Arg4">
  3331. <summary>参数4</summary>
  3332. </member>
  3333. <member name="M:NewLife.EventArgs`4.#ctor(`0,`1,`2,`3)">
  3334. <summary>使用参数初始化</summary>
  3335. <param name="arg1"></param>
  3336. <param name="arg2"></param>
  3337. <param name="arg3"></param>
  3338. <param name="arg4"></param>
  3339. </member>
  3340. <member name="M:NewLife.EventArgs`4.Pop(`0@,`1@,`2@,`3@)">
  3341. <summary>弹出</summary>
  3342. <param name="arg1"></param>
  3343. <param name="arg2"></param>
  3344. <param name="arg3"></param>
  3345. <param name="arg4"></param>
  3346. </member>
  3347. <member name="T:NewLife.WeakAction`1">
  3348. <summary>弱引用Action</summary>
  3349. <remarks>
  3350. 常见的事件和委托,都包括两部分:对象和方法,当然如果委托到静态方法上,对象是为空的。
  3351. 如果把事件委托到某个对象的方法上,同时就间接的引用了这个对象,导致其一直无法被回收,从而造成内存泄漏。
  3352. 弱引用Action,原理就是把委托拆分,然后弱引用对象部分,需要调用委托的时候,再把对象“拉”回来,如果被回收了,就没有必要再调用它的方法了。
  3353. 文档 https://newlifex.com/core/weak_action
  3354. </remarks>
  3355. <typeparam name="TArgs"></typeparam>
  3356. </member>
  3357. <member name="F:NewLife.WeakAction`1.Target">
  3358. <summary>目标对象。弱引用,使得调用方对象可以被GC回收</summary>
  3359. </member>
  3360. <member name="F:NewLife.WeakAction`1.Method">
  3361. <summary>委托方法</summary>
  3362. </member>
  3363. <member name="F:NewLife.WeakAction`1.Handler">
  3364. <summary>经过包装的新的委托</summary>
  3365. </member>
  3366. <member name="F:NewLife.WeakAction`1.UnHandler">
  3367. <summary>取消注册的委托</summary>
  3368. </member>
  3369. <member name="F:NewLife.WeakAction`1.Once">
  3370. <summary>是否只使用一次,如果只使用一次,执行委托后马上取消注册</summary>
  3371. </member>
  3372. <member name="P:NewLife.WeakAction`1.IsAlive">
  3373. <summary>是否可用</summary>
  3374. </member>
  3375. <member name="M:NewLife.WeakAction`1.#ctor(System.Object,System.Reflection.MethodInfo)">
  3376. <summary>实例化</summary>
  3377. <param name="target">目标对象</param>
  3378. <param name="method">目标方法</param>
  3379. </member>
  3380. <member name="M:NewLife.WeakAction`1.#ctor(System.Object,System.Reflection.MethodInfo,System.Action{System.Action{`0}},System.Boolean)">
  3381. <summary>实例化</summary>
  3382. <param name="target">目标对象</param>
  3383. <param name="method">目标方法</param>
  3384. <param name="unHandler">取消注册回调</param>
  3385. <param name="once">是否一次性事件</param>
  3386. </member>
  3387. <member name="M:NewLife.WeakAction`1.#ctor(System.Delegate)">
  3388. <summary>实例化</summary>
  3389. <param name="handler">事件处理器</param>
  3390. </member>
  3391. <member name="M:NewLife.WeakAction`1.#ctor(System.Delegate,System.Action{System.Action{`0}},System.Boolean)">
  3392. <summary>使用事件处理器、取消注册回调、是否一次性事件来初始化</summary>
  3393. <param name="handler">事件处理器</param>
  3394. <param name="unHandler">取消注册回调</param>
  3395. <param name="once">是否一次性事件</param>
  3396. </member>
  3397. <member name="M:NewLife.WeakAction`1.Invoke(`0)">
  3398. <summary>调用委托</summary>
  3399. <param name="e"></param>
  3400. </member>
  3401. <member name="M:NewLife.WeakAction`1.op_Implicit(NewLife.WeakAction{`0})~System.Action{`0}">
  3402. <summary>把弱引用事件处理器转换为普通事件处理器</summary>
  3403. <param name="handler"></param>
  3404. <returns></returns>
  3405. </member>
  3406. <member name="M:NewLife.WeakAction`1.ToString">
  3407. <summary>已重载</summary>
  3408. <returns></returns>
  3409. </member>
  3410. <member name="T:NewLife.XException">
  3411. <summary>X组件异常</summary>
  3412. </member>
  3413. <member name="M:NewLife.XException.#ctor">
  3414. <summary>初始化</summary>
  3415. </member>
  3416. <member name="M:NewLife.XException.#ctor(System.String)">
  3417. <summary>初始化</summary>
  3418. <param name="message"></param>
  3419. </member>
  3420. <member name="M:NewLife.XException.#ctor(System.String,System.Object[])">
  3421. <summary>初始化</summary>
  3422. <param name="format"></param>
  3423. <param name="args"></param>
  3424. </member>
  3425. <member name="M:NewLife.XException.#ctor(System.String,System.Exception)">
  3426. <summary>初始化</summary>
  3427. <param name="message"></param>
  3428. <param name="innerException"></param>
  3429. </member>
  3430. <member name="M:NewLife.XException.#ctor(System.Exception,System.String,System.Object[])">
  3431. <summary>初始化</summary>
  3432. <param name="innerException"></param>
  3433. <param name="format"></param>
  3434. <param name="args"></param>
  3435. </member>
  3436. <member name="M:NewLife.XException.#ctor(System.Exception)">
  3437. <summary>初始化</summary>
  3438. <param name="innerException"></param>
  3439. </member>
  3440. <member name="T:NewLife.ExceptionEventArgs">
  3441. <summary>异常事件参数</summary>
  3442. </member>
  3443. <member name="P:NewLife.ExceptionEventArgs.Action">
  3444. <summary>发生异常时进行的动作</summary>
  3445. </member>
  3446. <member name="P:NewLife.ExceptionEventArgs.Exception">
  3447. <summary>异常</summary>
  3448. </member>
  3449. <member name="M:NewLife.ExceptionEventArgs.#ctor(System.String,System.Exception)">
  3450. <summary>实例化</summary>
  3451. <param name="action"></param>
  3452. <param name="ex"></param>
  3453. </member>
  3454. <member name="T:NewLife.ExceptionHelper">
  3455. <summary>异常助手</summary>
  3456. </member>
  3457. <member name="M:NewLife.ExceptionHelper.IsDisposed(System.Exception)">
  3458. <summary>是否对象已被释放异常</summary>
  3459. <param name="ex"></param>
  3460. <returns></returns>
  3461. </member>
  3462. <member name="T:NewLife.BitHelper">
  3463. <summary>数据位助手</summary>
  3464. </member>
  3465. <member name="M:NewLife.BitHelper.SetBit(System.UInt16,System.Int32,System.Boolean)">
  3466. <summary>设置数据位</summary>
  3467. <param name="value">数值</param>
  3468. <param name="position"></param>
  3469. <param name="flag"></param>
  3470. <returns></returns>
  3471. </member>
  3472. <member name="M:NewLife.BitHelper.SetBits(System.UInt16,System.Int32,System.Int32,System.UInt16)">
  3473. <summary>设置数据位</summary>
  3474. <param name="value">数值</param>
  3475. <param name="position"></param>
  3476. <param name="length"></param>
  3477. <param name="bits"></param>
  3478. <returns></returns>
  3479. </member>
  3480. <member name="M:NewLife.BitHelper.SetBit(System.Byte,System.Int32,System.Boolean)">
  3481. <summary>设置数据位</summary>
  3482. <param name="value">数值</param>
  3483. <param name="position"></param>
  3484. <param name="flag"></param>
  3485. <returns></returns>
  3486. </member>
  3487. <member name="M:NewLife.BitHelper.GetBit(System.UInt16,System.Int32)">
  3488. <summary>获取数据位</summary>
  3489. <param name="value">数值</param>
  3490. <param name="position"></param>
  3491. <returns></returns>
  3492. </member>
  3493. <member name="M:NewLife.BitHelper.GetBits(System.UInt16,System.Int32,System.Int32)">
  3494. <summary>获取数据位</summary>
  3495. <param name="value">数值</param>
  3496. <param name="position"></param>
  3497. <param name="length"></param>
  3498. <returns></returns>
  3499. </member>
  3500. <member name="M:NewLife.BitHelper.GetBit(System.Byte,System.Int32)">
  3501. <summary>获取数据位</summary>
  3502. <param name="value">数值</param>
  3503. <param name="position"></param>
  3504. <returns></returns>
  3505. </member>
  3506. <member name="T:NewLife.EnumHelper">
  3507. <summary>枚举类型助手类</summary>
  3508. </member>
  3509. <member name="M:NewLife.EnumHelper.Has(System.Enum,System.Enum)">
  3510. <summary>枚举变量是否包含指定标识</summary>
  3511. <param name="value">枚举变量</param>
  3512. <param name="flag">要判断的标识</param>
  3513. <returns></returns>
  3514. </member>
  3515. <member name="M:NewLife.EnumHelper.Set``1(System.Enum,``0,System.Boolean)">
  3516. <summary>设置标识位</summary>
  3517. <typeparam name="T"></typeparam>
  3518. <param name="source"></param>
  3519. <param name="flag"></param>
  3520. <param name="value">数值</param>
  3521. <returns></returns>
  3522. </member>
  3523. <member name="M:NewLife.EnumHelper.GetDescription(System.Enum)">
  3524. <summary>获取枚举字段的注释</summary>
  3525. <param name="value">数值</param>
  3526. <returns></returns>
  3527. </member>
  3528. <member name="M:NewLife.EnumHelper.GetDescriptions``1">
  3529. <summary>获取枚举类型的所有字段注释</summary>
  3530. <typeparam name="TEnum"></typeparam>
  3531. <returns></returns>
  3532. </member>
  3533. <member name="M:NewLife.EnumHelper.GetDescriptions(System.Type)">
  3534. <summary>获取枚举类型的所有字段注释</summary>
  3535. <param name="enumType"></param>
  3536. <returns></returns>
  3537. </member>
  3538. <member name="M:NewLife.Extension.SpeakProvider.SpeakAsyncCancelAll">
  3539. <summary>
  3540. 停止话音播报
  3541. </summary>
  3542. </member>
  3543. <member name="T:NewLife.StringHelper">
  3544. <summary>字符串助手类</summary>
  3545. <remarks>
  3546. 文档 https://newlifex.com/core/string_helper
  3547. </remarks>
  3548. </member>
  3549. <member name="M:NewLife.StringHelper.EqualIgnoreCase(System.String,System.String[])">
  3550. <summary>忽略大小写的字符串相等比较,判断是否与任意一个待比较字符串相等</summary>
  3551. <param name="value">字符串</param>
  3552. <param name="strs">待比较字符串数组</param>
  3553. <returns></returns>
  3554. </member>
  3555. <member name="M:NewLife.StringHelper.StartsWithIgnoreCase(System.String,System.String[])">
  3556. <summary>忽略大小写的字符串开始比较,判断是否与任意一个待比较字符串开始</summary>
  3557. <param name="value">字符串</param>
  3558. <param name="strs">待比较字符串数组</param>
  3559. <returns></returns>
  3560. </member>
  3561. <member name="M:NewLife.StringHelper.EndsWithIgnoreCase(System.String,System.String[])">
  3562. <summary>忽略大小写的字符串结束比较,判断是否以任意一个待比较字符串结束</summary>
  3563. <param name="value">字符串</param>
  3564. <param name="strs">待比较字符串数组</param>
  3565. <returns></returns>
  3566. </member>
  3567. <member name="M:NewLife.StringHelper.IsNullOrEmpty(System.String)">
  3568. <summary>指示指定的字符串是 null 还是 String.Empty 字符串</summary>
  3569. <param name="value">字符串</param>
  3570. <returns></returns>
  3571. </member>
  3572. <member name="M:NewLife.StringHelper.IsNullOrWhiteSpace(System.String)">
  3573. <summary>是否空或者空白字符串</summary>
  3574. <param name="value">字符串</param>
  3575. <returns></returns>
  3576. </member>
  3577. <member name="M:NewLife.StringHelper.Split(System.String,System.String[])">
  3578. <summary>拆分字符串,过滤空格,无效时返回空数组</summary>
  3579. <param name="value">字符串</param>
  3580. <param name="separators">分组分隔符,默认逗号分号</param>
  3581. <returns></returns>
  3582. </member>
  3583. <member name="M:NewLife.StringHelper.SplitAsInt(System.String,System.String[])">
  3584. <summary>拆分字符串成为整型数组,默认逗号分号分隔,无效时返回空数组</summary>
  3585. <remarks>过滤空格、过滤无效、不过滤重复</remarks>
  3586. <param name="value">字符串</param>
  3587. <param name="separators">分组分隔符,默认逗号分号</param>
  3588. <returns></returns>
  3589. </member>
  3590. <member name="M:NewLife.StringHelper.SplitAsDictionary(System.String,System.String,System.String,System.Boolean)">
  3591. <summary>拆分字符串成为不区分大小写的可空名值字典。逗号分组,等号分隔</summary>
  3592. <param name="value">字符串</param>
  3593. <param name="nameValueSeparator">名值分隔符,默认等于号</param>
  3594. <param name="separator">分组分隔符,默认分号</param>
  3595. <param name="trimQuotation">去掉括号</param>
  3596. <returns></returns>
  3597. </member>
  3598. <member name="M:NewLife.StringHelper.SplitAsDictionaryT(System.String,System.Char,System.Char,System.Boolean)">
  3599. <summary>
  3600. 在.netCore需要区分该部分内容
  3601. </summary>
  3602. <param name="value"></param>
  3603. <param name="nameValueSeparator"></param>
  3604. <param name="separator"></param>
  3605. <param name="trimQuotation"></param>
  3606. <returns></returns>
  3607. </member>
  3608. <member name="M:NewLife.StringHelper.Join(System.Collections.IEnumerable,System.String)">
  3609. <summary>把一个列表组合成为一个字符串,默认逗号分隔</summary>
  3610. <param name="value"></param>
  3611. <param name="separator">组合分隔符,默认逗号</param>
  3612. <returns></returns>
  3613. </member>
  3614. <member name="M:NewLife.StringHelper.Join``1(System.Collections.Generic.IEnumerable{``0},System.String,System.Func{``0,System.Object})">
  3615. <summary>把一个列表组合成为一个字符串,默认逗号分隔</summary>
  3616. <param name="value"></param>
  3617. <param name="separator">组合分隔符,默认逗号</param>
  3618. <param name="func">把对象转为字符串的委托</param>
  3619. <returns></returns>
  3620. </member>
  3621. <member name="M:NewLife.StringHelper.Separate(System.Text.StringBuilder,System.String)">
  3622. <summary>追加分隔符字符串,忽略开头,常用于拼接</summary>
  3623. <param name="sb">字符串构造者</param>
  3624. <param name="separator">分隔符</param>
  3625. <returns></returns>
  3626. </member>
  3627. <member name="M:NewLife.StringHelper.GetBytes(System.String,System.Text.Encoding)">
  3628. <summary>字符串转数组</summary>
  3629. <param name="value">字符串</param>
  3630. <param name="encoding">编码,默认utf-8无BOM</param>
  3631. <returns></returns>
  3632. </member>
  3633. <member name="M:NewLife.StringHelper.F(System.String,System.Object[])">
  3634. <summary>格式化字符串。特别支持无格式化字符串的时间参数</summary>
  3635. <param name="value">格式字符串</param>
  3636. <param name="args">参数</param>
  3637. <returns></returns>
  3638. </member>
  3639. <member name="M:NewLife.StringHelper.IsMatch(System.String,System.String,System.StringComparison)">
  3640. <summary>指定输入是否匹配目标表达式,支持*匹配</summary>
  3641. <param name="pattern">匹配表达式</param>
  3642. <param name="input">输入字符串</param>
  3643. <param name="comparisonType">字符串比较方式</param>
  3644. <returns></returns>
  3645. </member>
  3646. <member name="M:NewLife.StringHelper.Contains(System.String,System.Char)">
  3647. <summary>Returns a value indicating whether a specified character occurs within this string.</summary>
  3648. <param name="value"></param>
  3649. <param name="inputChar">The character to seek.</param>
  3650. <returns>
  3651. <see langword="true" /> if the <paramref name="inputChar" /> parameter occurs within this string; otherwise, <see langword="false" />.</returns>
  3652. </member>
  3653. <member name="M:NewLife.StringHelper.Split(System.String,System.Char,System.StringSplitOptions)">
  3654. <summary>Splits a string into substrings based on the characters in an array. You can specify whether the substrings include empty array elements.</summary>
  3655. <param name="value"></param>
  3656. <param name="separator">A character array that delimits the substrings in this string, an empty array that contains no delimiters, or <see langword="null" />.</param>
  3657. <param name="options">
  3658. <see cref="F:System.StringSplitOptions.RemoveEmptyEntries" /> to omit empty array elements from the array returned; or <see cref="F:System.StringSplitOptions.None" /> to include empty array elements in the array returned.</param>
  3659. <returns>An array whose elements contain the substrings in this string that are delimited by one or more characters in <paramref name="separator" />. For more information, see the Remarks section.</returns>
  3660. <exception cref="T:System.ArgumentException">
  3661. <paramref name="options" /> is not one of the <see cref="T:System.StringSplitOptions" /> values.</exception>
  3662. </member>
  3663. <member name="M:NewLife.StringHelper.EnsureStart(System.String,System.String)">
  3664. <summary>确保字符串以指定的另一字符串开始,不区分大小写</summary>
  3665. <param name="str">字符串</param>
  3666. <param name="start"></param>
  3667. <returns></returns>
  3668. </member>
  3669. <member name="M:NewLife.StringHelper.EnsureEnd(System.String,System.String)">
  3670. <summary>确保字符串以指定的另一字符串结束,不区分大小写</summary>
  3671. <param name="str">字符串</param>
  3672. <param name="end"></param>
  3673. <returns></returns>
  3674. </member>
  3675. <member name="M:NewLife.StringHelper.TrimStart(System.String,System.String[])">
  3676. <summary>从当前字符串开头移除另一字符串,不区分大小写,循环多次匹配前缀</summary>
  3677. <param name="str">当前字符串</param>
  3678. <param name="starts">另一字符串</param>
  3679. <returns></returns>
  3680. </member>
  3681. <member name="M:NewLife.StringHelper.TrimEnd(System.String,System.String[])">
  3682. <summary>从当前字符串结尾移除另一字符串,不区分大小写,循环多次匹配后缀</summary>
  3683. <param name="str">当前字符串</param>
  3684. <param name="ends">另一字符串</param>
  3685. <returns></returns>
  3686. </member>
  3687. <member name="M:NewLife.StringHelper.TrimInvisible(System.String)">
  3688. <summary>修剪不可见字符。仅修剪ASCII,不包含Unicode</summary>
  3689. <param name="value"></param>
  3690. <returns></returns>
  3691. </member>
  3692. <member name="M:NewLife.StringHelper.Substring(System.String,System.String,System.String,System.Int32,System.Int32[])">
  3693. <summary>从字符串中检索子字符串,在指定头部字符串之后,指定尾部字符串之前</summary>
  3694. <remarks>常用于截取xml某一个元素等操作</remarks>
  3695. <param name="str">目标字符串</param>
  3696. <param name="after">头部字符串,在它之后</param>
  3697. <param name="before">尾部字符串,在它之前</param>
  3698. <param name="startIndex">搜索的开始位置</param>
  3699. <param name="positions">位置数组,两个元素分别记录头尾位置</param>
  3700. <returns></returns>
  3701. </member>
  3702. <member name="M:NewLife.StringHelper.Cut(System.String,System.Int32,System.String)">
  3703. <summary>根据最大长度截取字符串,并允许以指定空白填充末尾</summary>
  3704. <param name="str">字符串</param>
  3705. <param name="maxLength">截取后字符串的最大允许长度,包含后面填充</param>
  3706. <param name="pad">需要填充在后面的字符串,比如几个圆点</param>
  3707. <returns></returns>
  3708. </member>
  3709. <member name="M:NewLife.StringHelper.CutStart(System.String,System.String[])">
  3710. <summary>从当前字符串开头移除另一字符串以及之前的部分</summary>
  3711. <param name="str">当前字符串</param>
  3712. <param name="starts">另一字符串</param>
  3713. <returns></returns>
  3714. </member>
  3715. <member name="M:NewLife.StringHelper.CutEnd(System.String,System.String[])">
  3716. <summary>从当前字符串结尾移除另一字符串以及之后的部分</summary>
  3717. <param name="str">当前字符串</param>
  3718. <param name="ends">另一字符串</param>
  3719. <returns></returns>
  3720. </member>
  3721. <member name="M:NewLife.StringHelper.LevenshteinSearch(System.String,System.String[])">
  3722. <summary>编辑距离搜索,从词组中找到最接近关键字的若干匹配项</summary>
  3723. <remarks>
  3724. 算法代码由@Aimeast 独立完成。http://www.cnblogs.com/Aimeast/archive/2011/09/05/2167844.html
  3725. </remarks>
  3726. <param name="key">关键字</param>
  3727. <param name="words">词组</param>
  3728. <returns></returns>
  3729. </member>
  3730. <member name="M:NewLife.StringHelper.LevenshteinDistance(System.String,System.String)">
  3731. <summary>编辑距离</summary>
  3732. <remarks>
  3733. 又称Levenshtein距离(也叫做Edit Distance),是指两个字串之间,由一个转成另一个所需的最少编辑操作次数。
  3734. 许可的编辑操作包括将一个字符替换成另一个字符,插入一个字符,删除一个字符。
  3735. 算法代码由@Aimeast 独立完成。http://www.cnblogs.com/Aimeast/archive/2011/09/05/2167844.html
  3736. </remarks>
  3737. <param name="str1"></param>
  3738. <param name="str2"></param>
  3739. <returns></returns>
  3740. </member>
  3741. <member name="M:NewLife.StringHelper.LCSSearch(System.String,System.String[])">
  3742. <summary>最长公共子序列搜索,从词组中找到最接近关键字的若干匹配项</summary>
  3743. <remarks>
  3744. 算法代码由@Aimeast 独立完成。http://www.cnblogs.com/Aimeast/archive/2011/09/05/2167844.html
  3745. </remarks>
  3746. <param name="key"></param>
  3747. <param name="words"></param>
  3748. <returns></returns>
  3749. </member>
  3750. <member name="M:NewLife.StringHelper.LCSDistance(System.String,System.String[])">
  3751. <summary>
  3752. 最长公共子序列问题是寻找两个或多个已知数列最长的子序列。
  3753. 一个数列 S,如果分别是两个或多个已知数列的子序列,且是所有符合此条件序列中最长的,则 S 称为已知序列的最长公共子序列。
  3754. The longest common subsequence (LCS) problem is to find the longest subsequence common to all sequences in a set of sequences (often just two). Note that subsequence is different from a substring, see substring vs. subsequence. It is a classic computer science problem, the basis of diff (a file comparison program that outputs the differences between two files), and has applications in bioinformatics.
  3755. </summary>
  3756. <remarks>
  3757. 算法代码由@Aimeast 独立完成。http://www.cnblogs.com/Aimeast/archive/2011/09/05/2167844.html
  3758. </remarks>
  3759. <param name="word"></param>
  3760. <param name="keys">多个关键字。长度必须大于0,必须按照字符串长度升序排列。</param>
  3761. <returns></returns>
  3762. </member>
  3763. <member name="M:NewLife.StringHelper.LCS``1(System.Collections.Generic.IEnumerable{``0},System.String,System.Func{``0,System.String})">
  3764. <summary>根据列表项成员计算距离</summary>
  3765. <typeparam name="T"></typeparam>
  3766. <param name="list"></param>
  3767. <param name="keys"></param>
  3768. <param name="keySelector"></param>
  3769. <returns></returns>
  3770. </member>
  3771. <member name="M:NewLife.StringHelper.LCSSearch``1(System.Collections.Generic.IEnumerable{``0},System.String,System.Func{``0,System.String},System.Int32)">
  3772. <summary>在列表项中进行模糊搜索</summary>
  3773. <typeparam name="T"></typeparam>
  3774. <param name="list"></param>
  3775. <param name="keys"></param>
  3776. <param name="keySelector"></param>
  3777. <param name="count"></param>
  3778. <returns></returns>
  3779. </member>
  3780. <member name="M:NewLife.StringHelper.Match``1(System.Collections.Generic.IEnumerable{``0},System.String,System.Func{``0,System.String})">
  3781. <summary>模糊匹配</summary>
  3782. <typeparam name="T"></typeparam>
  3783. <param name="list"></param>
  3784. <param name="keys"></param>
  3785. <param name="keySelector"></param>
  3786. <returns></returns>
  3787. </member>
  3788. <member name="M:NewLife.StringHelper.Match(System.String,System.String,System.Int32)">
  3789. <summary>模糊匹配</summary>
  3790. <param name="str"></param>
  3791. <param name="key"></param>
  3792. <param name="maxError"></param>
  3793. <returns></returns>
  3794. </member>
  3795. <member name="M:NewLife.StringHelper.Match``1(System.Collections.Generic.IEnumerable{``0},System.String,System.Func{``0,System.String},System.Int32,System.Double)">
  3796. <summary>模糊匹配</summary>
  3797. <typeparam name="T"></typeparam>
  3798. <param name="list">列表项</param>
  3799. <param name="keys">关键字</param>
  3800. <param name="keySelector">匹配字符串选择</param>
  3801. <param name="count">获取个数</param>
  3802. <param name="confidence">权重阀值</param>
  3803. <returns></returns>
  3804. </member>
  3805. <member name="M:NewLife.StringHelper.Speak(System.String)">
  3806. <summary>调用语音引擎说出指定话</summary>
  3807. <param name="value"></param>
  3808. </member>
  3809. <member name="M:NewLife.StringHelper.SpeakAsync(System.String)">
  3810. <summary>异步调用语音引擎说出指定话。可能导致后来的调用打断前面的语音</summary>
  3811. <param name="value"></param>
  3812. </member>
  3813. <member name="P:NewLife.StringHelper.EnableSpeechTip">
  3814. <summary>启用语音提示</summary>
  3815. </member>
  3816. <member name="M:NewLife.StringHelper.SpeechTip(System.String)">
  3817. <summary>语音提示操作</summary>
  3818. <param name="value"></param>
  3819. </member>
  3820. <member name="M:NewLife.StringHelper.SpeakAsyncCancelAll(System.String)">
  3821. <summary>
  3822. 停止所有语音播报
  3823. </summary>
  3824. <param name="value"></param>
  3825. </member>
  3826. <member name="M:NewLife.StringHelper.Run(System.String,System.String,System.Int32,System.Action{System.String},System.Action{System.Diagnostics.Process},System.String)">
  3827. <summary>以隐藏窗口执行命令行</summary>
  3828. <param name="cmd">文件名</param>
  3829. <param name="arguments">命令参数</param>
  3830. <param name="msWait">等待毫秒数</param>
  3831. <param name="output">进程输出内容。默认为空时输出到日志</param>
  3832. <param name="onExit">进程退出时执行</param>
  3833. <param name="working">工作目录</param>
  3834. <returns>进程退出代码</returns>
  3835. </member>
  3836. <member name="M:NewLife.StringHelper.ShellExecute(System.String,System.String,System.String)">
  3837. <summary>
  3838. 在Shell上执行命令。目标进程不是子进程,不会随着当前进程退出而退出
  3839. </summary>
  3840. <param name="fileName">文件名</param>
  3841. <param name="arguments">参数</param>
  3842. <param name="workingDirectory">工作目录。目标进程的当前目录</param>
  3843. <returns></returns>
  3844. </member>
  3845. <member name="T:NewLife.Http.ControllerHandler">
  3846. <summary>控制器处理器</summary>
  3847. </member>
  3848. <member name="P:NewLife.Http.ControllerHandler.ControllerType">
  3849. <summary>控制器类型</summary>
  3850. </member>
  3851. <member name="M:NewLife.Http.ControllerHandler.ProcessRequest(NewLife.Http.IHttpContext)">
  3852. <summary>处理请求</summary>
  3853. <param name="context"></param>
  3854. </member>
  3855. <member name="T:NewLife.Http.DnsHttpHandler">
  3856. <summary>支持优化Dns解析的HttpClient处理器</summary>
  3857. </member>
  3858. <member name="P:NewLife.Http.DnsHttpHandler.Resolver">
  3859. <summary>DNS解析器</summary>
  3860. </member>
  3861. <member name="M:NewLife.Http.DnsHttpHandler.#ctor(System.Net.Http.HttpMessageHandler)">
  3862. <summary>实例化一个支持APM的HttpClient处理器</summary>
  3863. <param name="innerHandler"></param>
  3864. </member>
  3865. <member name="M:NewLife.Http.DnsHttpHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
  3866. <summary>发送请求</summary>
  3867. <param name="request"></param>
  3868. <param name="cancellationToken"></param>
  3869. <returns></returns>
  3870. </member>
  3871. <member name="T:NewLife.Http.FormFile">
  3872. <summary>表单部分</summary>
  3873. </member>
  3874. <member name="P:NewLife.Http.FormFile.Name">
  3875. <summary>名称</summary>
  3876. </member>
  3877. <member name="P:NewLife.Http.FormFile.ContentDisposition">
  3878. <summary>内容部署</summary>
  3879. </member>
  3880. <member name="P:NewLife.Http.FormFile.ContentType">
  3881. <summary>内容类型</summary>
  3882. </member>
  3883. <member name="P:NewLife.Http.FormFile.FileName">
  3884. <summary>文件名</summary>
  3885. </member>
  3886. <member name="P:NewLife.Http.FormFile.Data">
  3887. <summary>数据</summary>
  3888. </member>
  3889. <member name="P:NewLife.Http.FormFile.Length">
  3890. <summary>长度</summary>
  3891. </member>
  3892. <member name="M:NewLife.Http.FormFile.OpenReadStream">
  3893. <summary>打开数据读取流</summary>
  3894. <returns></returns>
  3895. </member>
  3896. <member name="M:NewLife.Http.FormFile.SaveToFile(System.String)">
  3897. <summary>保存到文件</summary>
  3898. <param name="fileName"></param>
  3899. </member>
  3900. <member name="T:NewLife.Http.HttpBase">
  3901. <summary>Http请求响应基类</summary>
  3902. </member>
  3903. <member name="P:NewLife.Http.HttpBase.Version">
  3904. <summary>协议版本</summary>
  3905. </member>
  3906. <member name="P:NewLife.Http.HttpBase.ContentLength">
  3907. <summary>内容长度</summary>
  3908. </member>
  3909. <member name="P:NewLife.Http.HttpBase.ContentType">
  3910. <summary>内容类型</summary>
  3911. </member>
  3912. <member name="P:NewLife.Http.HttpBase.Body">
  3913. <summary>请求或响应的主体部分</summary>
  3914. </member>
  3915. <member name="P:NewLife.Http.HttpBase.BodyLength">
  3916. <summary>主体长度</summary>
  3917. </member>
  3918. <member name="P:NewLife.Http.HttpBase.IsCompleted">
  3919. <summary>是否已完整。头部未指定长度,或指定长度后内容已满足</summary>
  3920. </member>
  3921. <member name="P:NewLife.Http.HttpBase.Headers">
  3922. <summary>头部集合</summary>
  3923. </member>
  3924. <member name="P:NewLife.Http.HttpBase.Item(System.String)">
  3925. <summary>获取/设置 头部</summary>
  3926. <param name="key"></param>
  3927. <returns></returns>
  3928. </member>
  3929. <member name="M:NewLife.Http.HttpBase.FastValidHeader(NewLife.Data.Packet)">
  3930. <summary>快速验证协议头,剔除非HTTP协议。仅排除,验证通过不一定就是HTTP协议</summary>
  3931. <param name="pk"></param>
  3932. <returns></returns>
  3933. </member>
  3934. <member name="M:NewLife.Http.HttpBase.Parse(NewLife.Data.Packet)">
  3935. <summary>分析请求头</summary>
  3936. <param name="pk"></param>
  3937. <returns></returns>
  3938. </member>
  3939. <member name="M:NewLife.Http.HttpBase.OnParse(System.String)">
  3940. <summary>分析第一行</summary>
  3941. <param name="firstLine"></param>
  3942. </member>
  3943. <member name="M:NewLife.Http.HttpBase.Build">
  3944. <summary>创建请求响应包</summary>
  3945. <returns></returns>
  3946. </member>
  3947. <member name="M:NewLife.Http.HttpBase.BuildHeader(System.Int32)">
  3948. <summary>创建头部</summary>
  3949. <param name="length"></param>
  3950. <returns></returns>
  3951. </member>
  3952. <member name="T:NewLife.Http.HttpHelper">
  3953. <summary>Http帮助类</summary>
  3954. </member>
  3955. <member name="P:NewLife.Http.HttpHelper.Tracer">
  3956. <summary>性能跟踪器</summary>
  3957. </member>
  3958. <member name="P:NewLife.Http.HttpHelper.Filter">
  3959. <summary>Http过滤器</summary>
  3960. </member>
  3961. <member name="P:NewLife.Http.HttpHelper.DefaultUserAgent">
  3962. <summary>默认用户浏览器UserAgent。用于内部创建的HttpClient请求</summary>
  3963. </member>
  3964. <member name="M:NewLife.Http.HttpHelper.SetUserAgent(System.Net.Http.HttpClient)">
  3965. <summary>设置浏览器UserAgent。默认使用应用名和版本</summary>
  3966. <param name="client"></param>
  3967. <returns></returns>
  3968. </member>
  3969. <member name="M:NewLife.Http.HttpHelper.CreateHandler(System.Boolean,System.Boolean)">
  3970. <summary>为HttpClient创建Socket处理器,默认设置连接生命为5分钟,有效反映DNS网络更改</summary>
  3971. <remarks>
  3972. PooledConnectionLifetime 属性定义池中的最大连接生存期,从建立连接的时间跟踪其年龄,而不考虑其空闲时间或活动时间。
  3973. 在主动用于服务请求时,连接不会被拆毁。此生存期非常有用,以便定期重新建立连接,以便更好地反映 DNS 或其他网络更改。
  3974. </remarks>
  3975. <param name="useProxy">是否使用代理</param>
  3976. <param name="useCookie">是否使用Cookie</param>
  3977. <returns></returns>
  3978. </member>
  3979. <member name="M:NewLife.Http.HttpHelper.MakeRequest(System.String,System.Uri,System.Collections.Generic.IDictionary{System.String,System.Object},NewLife.Data.Packet)">
  3980. <summary>创建请求包</summary>
  3981. <param name="method"></param>
  3982. <param name="uri"></param>
  3983. <param name="headers"></param>
  3984. <param name="pk"></param>
  3985. <returns></returns>
  3986. </member>
  3987. <member name="M:NewLife.Http.HttpHelper.MakeResponse(System.Net.HttpStatusCode,System.Collections.Generic.IDictionary{System.String,System.Object},NewLife.Data.Packet)">
  3988. <summary>创建响应包</summary>
  3989. <param name="code"></param>
  3990. <param name="headers"></param>
  3991. <param name="pk"></param>
  3992. <returns></returns>
  3993. </member>
  3994. <member name="M:NewLife.Http.HttpHelper.ParseHeader(NewLife.Data.Packet)">
  3995. <summary>分析头部</summary>
  3996. <param name="pk"></param>
  3997. <returns></returns>
  3998. </member>
  3999. <member name="M:NewLife.Http.HttpHelper.PostJsonAsync(System.Net.Http.HttpClient,System.String,System.Object,System.Collections.Generic.IDictionary{System.String,System.String},System.Threading.CancellationToken)">
  4000. <summary>异步提交Json</summary>
  4001. <param name="client">Http客户端</param>
  4002. <param name="requestUri">请求资源地址</param>
  4003. <param name="data">数据</param>
  4004. <param name="headers">附加头部</param>
  4005. <param name="cancellationToken">取消通知</param>
  4006. <returns></returns>
  4007. </member>
  4008. <member name="M:NewLife.Http.HttpHelper.PostJson(System.Net.Http.HttpClient,System.String,System.Object,System.Collections.Generic.IDictionary{System.String,System.String})">
  4009. <summary>同步提交Json</summary>
  4010. <param name="client">Http客户端</param>
  4011. <param name="requestUri">请求资源地址</param>
  4012. <param name="data">数据</param>
  4013. <param name="headers">附加头部</param>
  4014. <returns></returns>
  4015. </member>
  4016. <member name="M:NewLife.Http.HttpHelper.PostXmlAsync(System.Net.Http.HttpClient,System.String,System.Object,System.Collections.Generic.IDictionary{System.String,System.String},System.Threading.CancellationToken)">
  4017. <summary>异步提交Xml</summary>
  4018. <param name="client">Http客户端</param>
  4019. <param name="requestUri">请求资源地址</param>
  4020. <param name="data">数据</param>
  4021. <param name="headers">附加头部</param>
  4022. <param name="cancellationToken">取消通知</param>
  4023. <returns></returns>
  4024. </member>
  4025. <member name="M:NewLife.Http.HttpHelper.PostXml(System.Net.Http.HttpClient,System.String,System.Object,System.Collections.Generic.IDictionary{System.String,System.String})">
  4026. <summary>同步提交Xml</summary>
  4027. <param name="client">Http客户端</param>
  4028. <param name="requestUri">请求资源地址</param>
  4029. <param name="data">数据</param>
  4030. <param name="headers">附加头部</param>
  4031. <returns></returns>
  4032. </member>
  4033. <member name="M:NewLife.Http.HttpHelper.PostFormAsync(System.Net.Http.HttpClient,System.String,System.Object,System.Collections.Generic.IDictionary{System.String,System.String},System.Threading.CancellationToken)">
  4034. <summary>异步提交表单,名值对传输字典参数</summary>
  4035. <param name="client">Http客户端</param>
  4036. <param name="requestUri">请求资源地址</param>
  4037. <param name="data">名值对数据。匿名对象或字典</param>
  4038. <param name="headers">附加头部</param>
  4039. <param name="cancellationToken">取消通知</param>
  4040. <returns></returns>
  4041. </member>
  4042. <member name="M:NewLife.Http.HttpHelper.PostForm(System.Net.Http.HttpClient,System.String,System.Object,System.Collections.Generic.IDictionary{System.String,System.String})">
  4043. <summary>同步提交表单,名值对传输字典参数</summary>
  4044. <param name="client">Http客户端</param>
  4045. <param name="requestUri">请求资源地址</param>
  4046. <param name="data">名值对数据。匿名对象或字典</param>
  4047. <param name="headers">附加头部</param>
  4048. <returns></returns>
  4049. </member>
  4050. <member name="M:NewLife.Http.HttpHelper.PostMultipartFormAsync(System.Net.Http.HttpClient,System.String,System.Object,System.Threading.CancellationToken)">
  4051. <summary>异步提交多段表单数据,含文件流</summary>
  4052. <param name="client">Http客户端</param>
  4053. <param name="requestUri">请求资源地址</param>
  4054. <param name="data">名值对数据。匿名对象或字典,支持文件流</param>
  4055. <param name="cancellationToken">取消通知</param>
  4056. </member>
  4057. <member name="M:NewLife.Http.HttpHelper.GetString(System.Net.Http.HttpClient,System.String,System.Collections.Generic.IDictionary{System.String,System.String})">
  4058. <summary>同步获取字符串</summary>
  4059. <param name="client">Http客户端</param>
  4060. <param name="requestUri">请求资源地址</param>
  4061. <param name="headers">附加头部</param>
  4062. <returns></returns>
  4063. </member>
  4064. <member name="M:NewLife.Http.HttpHelper.DownloadFileAsync(System.Net.Http.HttpClient,System.String,System.String)">
  4065. <summary>下载文件</summary>
  4066. <param name="client">Http客户端</param>
  4067. <param name="requestUri">请求资源地址</param>
  4068. <param name="fileName">目标文件名</param>
  4069. </member>
  4070. <member name="M:NewLife.Http.HttpHelper.DownloadFileAsync(System.Net.Http.HttpClient,System.String,System.String,System.Threading.CancellationToken)">
  4071. <summary>下载文件</summary>
  4072. <param name="client">Http客户端</param>
  4073. <param name="requestUri">请求资源地址</param>
  4074. <param name="fileName">目标文件名</param>
  4075. <param name="cancellationToken">取消通知</param>
  4076. </member>
  4077. <member name="M:NewLife.Http.HttpHelper.UploadFileAsync(System.Net.Http.HttpClient,System.String,System.String,System.Object,System.Threading.CancellationToken)">
  4078. <summary>上传文件以及表单数据</summary>
  4079. <param name="client">Http客户端</param>
  4080. <param name="requestUri">请求资源地址</param>
  4081. <param name="fileName">目标文件名</param>
  4082. <param name="data">其它表单数据</param>
  4083. <param name="cancellationToken">取消通知</param>
  4084. </member>
  4085. <member name="M:NewLife.Http.HttpHelper.ConsumeAndPushAsync(NewLife.Http.WebSocket,NewLife.Caching.IProducerConsumer{System.String},System.Func{System.String,System.Byte[]},System.Threading.CancellationTokenSource)">
  4086. <summary>从队列消费消息并推送到WebSocket客户端</summary>
  4087. <param name="socket">WebSocket实例</param>
  4088. <param name="queue">队列</param>
  4089. <param name="onProcess">数据处理委托</param>
  4090. <param name="source">取消通知源</param>
  4091. <returns></returns>
  4092. </member>
  4093. <member name="M:NewLife.Http.HttpHelper.ConsumeAndPushAsync(NewLife.Http.WebSocket,NewLife.Caching.ICache,System.String,System.Threading.CancellationTokenSource)">
  4094. <summary>从队列消费消息并推送到WebSocket客户端</summary>
  4095. <param name="socket">WebSocket实例</param>
  4096. <param name="host">缓存主机</param>
  4097. <param name="topic">主题</param>
  4098. <param name="source">取消通知源</param>
  4099. <returns></returns>
  4100. </member>
  4101. <member name="M:NewLife.Http.HttpHelper.ConsumeAndPushAsync(System.Net.WebSockets.WebSocket,NewLife.Caching.IProducerConsumer{System.String},System.Func{System.String,System.Byte[]},System.Threading.CancellationTokenSource)">
  4102. <summary>从队列消费消息并推送到WebSocket客户端</summary>
  4103. <param name="socket">WebSocket实例</param>
  4104. <param name="queue">队列</param>
  4105. <param name="onProcess">数据处理委托</param>
  4106. <param name="source">取消通知源</param>
  4107. <returns></returns>
  4108. </member>
  4109. <member name="M:NewLife.Http.HttpHelper.ConsumeAndPushAsync(System.Net.WebSockets.WebSocket,NewLife.Caching.ICache,System.String,System.Threading.CancellationTokenSource)">
  4110. <summary>从队列消费消息并推送到WebSocket客户端</summary>
  4111. <param name="socket">WebSocket实例</param>
  4112. <param name="host">缓存主机</param>
  4113. <param name="topic">主题</param>
  4114. <param name="source">取消通知源</param>
  4115. <returns></returns>
  4116. </member>
  4117. <member name="M:NewLife.Http.HttpHelper.WaitForClose(System.Net.WebSockets.WebSocket,System.Action{System.String},System.Threading.CancellationTokenSource)">
  4118. <summary>阻塞等待WebSocket关闭</summary>
  4119. <param name="socket">WebSocket实例</param>
  4120. <param name="onReceive">数据处理委托</param>
  4121. <param name="source">取消通知源</param>
  4122. <returns></returns>
  4123. </member>
  4124. <member name="T:NewLife.Http.HttpRequest">
  4125. <summary>Http请求</summary>
  4126. </member>
  4127. <member name="P:NewLife.Http.HttpRequest.Method">
  4128. <summary>Http方法</summary>
  4129. </member>
  4130. <member name="P:NewLife.Http.HttpRequest.RequestUri">
  4131. <summary>资源路径</summary>
  4132. </member>
  4133. <member name="P:NewLife.Http.HttpRequest.Host">
  4134. <summary>目标主机</summary>
  4135. </member>
  4136. <member name="P:NewLife.Http.HttpRequest.KeepAlive">
  4137. <summary>保持连接</summary>
  4138. </member>
  4139. <member name="P:NewLife.Http.HttpRequest.Files">
  4140. <summary>文件集合</summary>
  4141. </member>
  4142. <member name="M:NewLife.Http.HttpRequest.OnParse(System.String)">
  4143. <summary>分析第一行</summary>
  4144. <param name="firstLine"></param>
  4145. </member>
  4146. <member name="M:NewLife.Http.HttpRequest.FastParse(NewLife.Data.Packet)">
  4147. <summary>快速分析请求头,只分析第一行</summary>
  4148. <param name="pk"></param>
  4149. <returns></returns>
  4150. </member>
  4151. <member name="M:NewLife.Http.HttpRequest.BuildHeader(System.Int32)">
  4152. <summary>创建头部</summary>
  4153. <param name="length"></param>
  4154. <returns></returns>
  4155. </member>
  4156. <member name="M:NewLife.Http.HttpRequest.ParseFormData">
  4157. <summary>分析表单数据</summary>
  4158. </member>
  4159. <member name="M:NewLife.Http.HttpRequest.ToString">
  4160. <summary>已重载。</summary>
  4161. <returns></returns>
  4162. </member>
  4163. <member name="T:NewLife.Http.HttpResponse">
  4164. <summary>Http响应</summary>
  4165. </member>
  4166. <member name="P:NewLife.Http.HttpResponse.StatusCode">
  4167. <summary>状态码</summary>
  4168. </member>
  4169. <member name="P:NewLife.Http.HttpResponse.StatusDescription">
  4170. <summary>状态描述</summary>
  4171. </member>
  4172. <member name="M:NewLife.Http.HttpResponse.OnParse(System.String)">
  4173. <summary>分析第一行</summary>
  4174. <param name="firstLine"></param>
  4175. </member>
  4176. <member name="M:NewLife.Http.HttpResponse.Build">
  4177. <summary>创建请求响应包</summary>
  4178. <returns></returns>
  4179. </member>
  4180. <member name="M:NewLife.Http.HttpResponse.BuildHeader(System.Int32)">
  4181. <summary>创建头部</summary>
  4182. <param name="length"></param>
  4183. <returns></returns>
  4184. </member>
  4185. <member name="M:NewLife.Http.HttpResponse.Valid">
  4186. <summary>验证,如果失败则抛出异常</summary>
  4187. </member>
  4188. <member name="M:NewLife.Http.HttpResponse.SetResult(System.Object,System.String)">
  4189. <summary>设置结果,影响Body和ContentType</summary>
  4190. <param name="result"></param>
  4191. <param name="contentType"></param>
  4192. </member>
  4193. <member name="M:NewLife.Http.HttpResponse.ToString">
  4194. <summary>已重载。</summary>
  4195. <returns></returns>
  4196. </member>
  4197. <member name="T:NewLife.Http.HttpServer">
  4198. <summary>Http服务器</summary>
  4199. </member>
  4200. <member name="P:NewLife.Http.HttpServer.ServerName">
  4201. <summary>Http响应头Server名称</summary>
  4202. </member>
  4203. <member name="P:NewLife.Http.HttpServer.Routes">
  4204. <summary>路由映射</summary>
  4205. </member>
  4206. <member name="M:NewLife.Http.HttpServer.#ctor">
  4207. <summary>实例化</summary>
  4208. </member>
  4209. <member name="M:NewLife.Http.HttpServer.CreateHandler(NewLife.Net.INetSession)">
  4210. <summary>为会话创建网络数据处理器。可作为业务处理实现,也可以作为前置协议解析</summary>
  4211. <param name="session"></param>
  4212. <returns></returns>
  4213. </member>
  4214. <member name="M:NewLife.Http.HttpServer.Map(System.String,NewLife.Http.IHttpHandler)">
  4215. <summary>映射路由处理器</summary>
  4216. <param name="path"></param>
  4217. <param name="handler"></param>
  4218. </member>
  4219. <member name="M:NewLife.Http.HttpServer.Map(System.String,NewLife.Http.HttpProcessDelegate)">
  4220. <summary>映射路由处理器</summary>
  4221. <param name="path"></param>
  4222. <param name="handler"></param>
  4223. </member>
  4224. <member name="M:NewLife.Http.HttpServer.Map``1(System.String,System.Func{``0})">
  4225. <summary>映射路由处理器</summary>
  4226. <param name="path"></param>
  4227. <param name="handler"></param>
  4228. </member>
  4229. <member name="M:NewLife.Http.HttpServer.Map``2(System.String,System.Func{``0,``1})">
  4230. <summary>映射路由处理器</summary>
  4231. <param name="path"></param>
  4232. <param name="handler"></param>
  4233. </member>
  4234. <member name="M:NewLife.Http.HttpServer.Map``3(System.String,System.Func{``0,``1,``2})">
  4235. <summary>映射路由处理器</summary>
  4236. <param name="path"></param>
  4237. <param name="handler"></param>
  4238. </member>
  4239. <member name="M:NewLife.Http.HttpServer.Map``4(System.String,System.Func{``0,``1,``2,``3})">
  4240. <summary>映射路由处理器</summary>
  4241. <param name="path"></param>
  4242. <param name="handler"></param>
  4243. </member>
  4244. <member name="M:NewLife.Http.HttpServer.Map``5(System.String,System.Func{``0,``1,``2,``3,``4})">
  4245. <summary>映射路由处理器</summary>
  4246. <param name="path"></param>
  4247. <param name="handler"></param>
  4248. </member>
  4249. <member name="M:NewLife.Http.HttpServer.MapController``1(System.String)">
  4250. <summary>映射控制器</summary>
  4251. <typeparam name="TController"></typeparam>
  4252. <param name="path"></param>
  4253. </member>
  4254. <member name="M:NewLife.Http.HttpServer.MapController(System.Type,System.String)">
  4255. <summary>映射控制器</summary>
  4256. <param name="controllerType"></param>
  4257. <param name="path"></param>
  4258. </member>
  4259. <member name="M:NewLife.Http.HttpServer.MapStaticFiles(System.String,System.String)">
  4260. <summary>映射静态文件</summary>
  4261. <param name="path">映射路径,如 /js</param>
  4262. <param name="contentPath">内容目录,如 /wwwroot/js</param>
  4263. </member>
  4264. <member name="M:NewLife.Http.HttpServer.MatchHandler(System.String)">
  4265. <summary>匹配处理器</summary>
  4266. <param name="path"></param>
  4267. <returns></returns>
  4268. </member>
  4269. <member name="T:NewLife.Http.HttpSession">
  4270. <summary>Http会话</summary>
  4271. </member>
  4272. <member name="P:NewLife.Http.HttpSession.Request">
  4273. <summary>请求</summary>
  4274. </member>
  4275. <member name="P:NewLife.Http.HttpSession.MaxRequestLength">
  4276. <summary>最大请求长度。单位字节,默认1G</summary>
  4277. </member>
  4278. <member name="P:NewLife.Http.HttpSession.ExcludeHeaders">
  4279. <summary>忽略的头部</summary>
  4280. </member>
  4281. <member name="P:NewLife.Http.HttpSession.TagTypes">
  4282. <summary>支持作为标签数据的内容类型</summary>
  4283. </member>
  4284. <member name="M:NewLife.Http.HttpSession.Init(NewLife.Net.INetSession)">
  4285. <summary>建立连接时初始化会话</summary>
  4286. <param name="session">会话</param>
  4287. </member>
  4288. <member name="M:NewLife.Http.HttpSession.Process(NewLife.Data.IData)">
  4289. <summary>处理客户端发来的数据</summary>
  4290. <param name="data"></param>
  4291. </member>
  4292. <member name="M:NewLife.Http.HttpSession.OnNewRequest(NewLife.Http.HttpRequest,NewLife.Data.IData)">
  4293. <summary>收到新的Http请求,只有头部</summary>
  4294. <param name="request"></param>
  4295. <param name="data"></param>
  4296. </member>
  4297. <member name="M:NewLife.Http.HttpSession.ProcessRequest(NewLife.Http.HttpRequest,NewLife.Data.IData)">
  4298. <summary>处理Http请求</summary>
  4299. <param name="request"></param>
  4300. <param name="data"></param>
  4301. <returns></returns>
  4302. </member>
  4303. <member name="M:NewLife.Http.HttpSession.PrepareRequest(NewLife.Http.IHttpContext)">
  4304. <summary>准备请求参数</summary>
  4305. <param name="context"></param>
  4306. </member>
  4307. <member name="T:NewLife.Http.HttpTraceHandler">
  4308. <summary>支持APM跟踪的HttpClient处理器</summary>
  4309. </member>
  4310. <member name="P:NewLife.Http.HttpTraceHandler.Tracer">
  4311. <summary>APM跟踪器</summary>
  4312. </member>
  4313. <member name="P:NewLife.Http.HttpTraceHandler.ExceptionFilter">
  4314. <summary>异常过滤器。仅记录满足条件的异常,默认空记录所有异常</summary>
  4315. </member>
  4316. <member name="M:NewLife.Http.HttpTraceHandler.#ctor(System.Net.Http.HttpMessageHandler)">
  4317. <summary>实例化一个支持APM的HttpClient处理器</summary>
  4318. <param name="innerHandler"></param>
  4319. </member>
  4320. <member name="M:NewLife.Http.HttpTraceHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
  4321. <summary>发送请求</summary>
  4322. <param name="request"></param>
  4323. <param name="cancellationToken"></param>
  4324. <returns></returns>
  4325. </member>
  4326. <member name="T:NewLife.Http.IHttpContext">
  4327. <summary>Http上下文</summary>
  4328. </member>
  4329. <member name="P:NewLife.Http.IHttpContext.Request">
  4330. <summary>请求</summary>
  4331. </member>
  4332. <member name="P:NewLife.Http.IHttpContext.Response">
  4333. <summary>响应</summary>
  4334. </member>
  4335. <member name="P:NewLife.Http.IHttpContext.Connection">
  4336. <summary>连接会话</summary>
  4337. </member>
  4338. <member name="P:NewLife.Http.IHttpContext.WebSocket">
  4339. <summary>WebSocket连接</summary>
  4340. </member>
  4341. <member name="P:NewLife.Http.IHttpContext.Path">
  4342. <summary>执行路径</summary>
  4343. </member>
  4344. <member name="P:NewLife.Http.IHttpContext.Handler">
  4345. <summary>处理器</summary>
  4346. </member>
  4347. <member name="P:NewLife.Http.IHttpContext.ServiceProvider">
  4348. <summary>服务提供者</summary>
  4349. </member>
  4350. <member name="P:NewLife.Http.IHttpContext.Parameters">
  4351. <summary>请求参数</summary>
  4352. </member>
  4353. <member name="T:NewLife.Http.DefaultHttpContext">
  4354. <summary>默认Http上下文</summary>
  4355. </member>
  4356. <member name="P:NewLife.Http.DefaultHttpContext.Request">
  4357. <summary>请求</summary>
  4358. </member>
  4359. <member name="P:NewLife.Http.DefaultHttpContext.Response">
  4360. <summary>响应</summary>
  4361. </member>
  4362. <member name="P:NewLife.Http.DefaultHttpContext.Connection">
  4363. <summary>连接会话</summary>
  4364. </member>
  4365. <member name="P:NewLife.Http.DefaultHttpContext.WebSocket">
  4366. <summary>WebSocket连接</summary>
  4367. </member>
  4368. <member name="P:NewLife.Http.DefaultHttpContext.Path">
  4369. <summary>执行路径</summary>
  4370. </member>
  4371. <member name="P:NewLife.Http.DefaultHttpContext.Handler">
  4372. <summary>处理器</summary>
  4373. </member>
  4374. <member name="P:NewLife.Http.DefaultHttpContext.ServiceProvider">
  4375. <summary>服务提供者</summary>
  4376. </member>
  4377. <member name="P:NewLife.Http.DefaultHttpContext.Parameters">
  4378. <summary>请求参数</summary>
  4379. </member>
  4380. <member name="M:NewLife.Http.DefaultHttpContext.#ctor(NewLife.Net.INetSession,NewLife.Http.HttpRequest,System.String,NewLife.Http.IHttpHandler)">
  4381. <summary>实例化</summary>
  4382. <param name="session"></param>
  4383. <param name="request"></param>
  4384. <param name="path"></param>
  4385. <param name="handler"></param>
  4386. </member>
  4387. <member name="P:NewLife.Http.DefaultHttpContext.Current">
  4388. <summary>当前上下文</summary>
  4389. </member>
  4390. <member name="T:NewLife.Http.IHttpFilter">
  4391. <summary>Http过滤器,拦截请求前后</summary>
  4392. </member>
  4393. <member name="M:NewLife.Http.IHttpFilter.OnRequest(System.Net.Http.HttpClient,System.Net.Http.HttpRequestMessage,System.Object,System.Threading.CancellationToken)">
  4394. <summary>请求前</summary>
  4395. <param name="client">客户端</param>
  4396. <param name="request">请求消息</param>
  4397. <param name="state">状态数据</param>
  4398. <param name="cancellationToken">取消通知</param>
  4399. <returns></returns>
  4400. </member>
  4401. <member name="M:NewLife.Http.IHttpFilter.OnResponse(System.Net.Http.HttpClient,System.Net.Http.HttpResponseMessage,System.Object,System.Threading.CancellationToken)">
  4402. <summary>获取响应后</summary>
  4403. <param name="client">客户端</param>
  4404. <param name="response">响应消息</param>
  4405. <param name="state">状态数据</param>
  4406. <param name="cancellationToken">取消通知</param>
  4407. <returns></returns>
  4408. </member>
  4409. <member name="M:NewLife.Http.IHttpFilter.OnError(System.Net.Http.HttpClient,System.Exception,System.Object,System.Threading.CancellationToken)">
  4410. <summary>发生错误时</summary>
  4411. <param name="client">客户端</param>
  4412. <param name="exception">异常</param>
  4413. <param name="state">状态数据</param>
  4414. <param name="cancellationToken">取消通知</param>
  4415. <returns></returns>
  4416. </member>
  4417. <member name="T:NewLife.Http.IHttpHandler">
  4418. <summary>Http处理器</summary>
  4419. </member>
  4420. <member name="M:NewLife.Http.IHttpHandler.ProcessRequest(NewLife.Http.IHttpContext)">
  4421. <summary>处理请求</summary>
  4422. <param name="context"></param>
  4423. </member>
  4424. <member name="T:NewLife.Http.HttpProcessDelegate">
  4425. <summary>Http请求处理委托</summary>
  4426. <param name="context"></param>
  4427. </member>
  4428. <member name="T:NewLife.Http.DelegateHandler">
  4429. <summary>委托Http处理器</summary>
  4430. </member>
  4431. <member name="P:NewLife.Http.DelegateHandler.Callback">
  4432. <summary>委托</summary>
  4433. </member>
  4434. <member name="M:NewLife.Http.DelegateHandler.ProcessRequest(NewLife.Http.IHttpContext)">
  4435. <summary>处理请求</summary>
  4436. <param name="context"></param>
  4437. </member>
  4438. <member name="M:NewLife.Http.DelegateHandler.OnInvoke(System.Delegate,NewLife.Http.IHttpContext)">
  4439. <summary>复杂调用</summary>
  4440. <param name="handler"></param>
  4441. <param name="context"></param>
  4442. <returns></returns>
  4443. </member>
  4444. <member name="T:NewLife.Http.StaticFilesHandler">
  4445. <summary>静态文件处理器</summary>
  4446. </member>
  4447. <member name="P:NewLife.Http.StaticFilesHandler.Path">
  4448. <summary>映射路径</summary>
  4449. </member>
  4450. <member name="P:NewLife.Http.StaticFilesHandler.ContentPath">
  4451. <summary>内容目录</summary>
  4452. </member>
  4453. <member name="M:NewLife.Http.StaticFilesHandler.ProcessRequest(NewLife.Http.IHttpContext)">
  4454. <summary>处理请求</summary>
  4455. <param name="context"></param>
  4456. </member>
  4457. <member name="T:NewLife.Http.TinyHttpClient">
  4458. <summary>迷你Http客户端。支持https和302跳转</summary>
  4459. <remarks>
  4460. 基于Tcp连接设计,用于高吞吐的HTTP通信场景,功能较少,但一切均在掌控之中。
  4461. 单个实例使用单个连接,建议外部使用ObjectPool建立连接池。
  4462. </remarks>
  4463. </member>
  4464. <member name="P:NewLife.Http.TinyHttpClient.Client">
  4465. <summary>客户端</summary>
  4466. </member>
  4467. <member name="P:NewLife.Http.TinyHttpClient.BaseAddress">
  4468. <summary>基础地址</summary>
  4469. </member>
  4470. <member name="P:NewLife.Http.TinyHttpClient.KeepAlive">
  4471. <summary>保持连接</summary>
  4472. </member>
  4473. <member name="P:NewLife.Http.TinyHttpClient.Timeout">
  4474. <summary>超时时间。默认15s</summary>
  4475. </member>
  4476. <member name="P:NewLife.Http.TinyHttpClient.BufferSize">
  4477. <summary>缓冲区大小。接收缓冲区默认64*1024</summary>
  4478. </member>
  4479. <member name="P:NewLife.Http.TinyHttpClient.Tracer">
  4480. <summary>性能追踪</summary>
  4481. </member>
  4482. <member name="M:NewLife.Http.TinyHttpClient.#ctor">
  4483. <summary>实例化</summary>
  4484. </member>
  4485. <member name="M:NewLife.Http.TinyHttpClient.#ctor(System.String)">
  4486. <summary>实例化</summary>
  4487. <param name="server"></param>
  4488. </member>
  4489. <member name="M:NewLife.Http.TinyHttpClient.Dispose(System.Boolean)">
  4490. <summary>销毁</summary>
  4491. <param name="disposing"></param>
  4492. </member>
  4493. <member name="M:NewLife.Http.TinyHttpClient.GetStreamAsync(System.Uri)">
  4494. <summary>获取网络数据流</summary>
  4495. <param name="uri"></param>
  4496. <returns></returns>
  4497. </member>
  4498. <member name="M:NewLife.Http.TinyHttpClient.SendDataAsync(System.Uri,NewLife.Data.Packet)">
  4499. <summary>异步请求</summary>
  4500. <param name="uri"></param>
  4501. <param name="request"></param>
  4502. <returns></returns>
  4503. </member>
  4504. <member name="M:NewLife.Http.TinyHttpClient.SendAsync(NewLife.Http.HttpRequest)">
  4505. <summary>异步发出请求,并接收响应</summary>
  4506. <param name="request"></param>
  4507. <returns></returns>
  4508. </member>
  4509. <member name="M:NewLife.Http.TinyHttpClient.ReadChunkAsync(NewLife.Data.Packet)">
  4510. <summary>读取分片,返回链式Packet</summary>
  4511. <param name="body"></param>
  4512. <returns></returns>
  4513. </member>
  4514. <member name="M:NewLife.Http.TinyHttpClient.GetStringAsync(System.String)">
  4515. <summary>异步获取。连接池操作</summary>
  4516. <param name="url">地址</param>
  4517. <returns></returns>
  4518. </member>
  4519. <member name="M:NewLife.Http.TinyHttpClient.InvokeAsync``1(System.String,System.String,System.Object)">
  4520. <summary>异步调用,等待返回结果</summary>
  4521. <typeparam name="TResult">返回类型</typeparam>
  4522. <param name="method">Get/Post</param>
  4523. <param name="action">服务操作</param>
  4524. <param name="args">参数</param>
  4525. <returns></returns>
  4526. </member>
  4527. <member name="P:NewLife.Http.TinyHttpClient.Log">
  4528. <summary>日志</summary>
  4529. </member>
  4530. <member name="M:NewLife.Http.TinyHttpClient.WriteLog(System.String,System.Object[])">
  4531. <summary>写日志</summary>
  4532. <param name="format"></param>
  4533. <param name="args"></param>
  4534. </member>
  4535. <member name="T:NewLife.Http.TokenHttpFilter">
  4536. <summary>Http令牌过滤器,请求前加上令牌,请求后拦截401/403</summary>
  4537. </member>
  4538. <member name="P:NewLife.Http.TokenHttpFilter.UserName">
  4539. <summary>用户</summary>
  4540. </member>
  4541. <member name="P:NewLife.Http.TokenHttpFilter.Password">
  4542. <summary>密钥</summary>
  4543. </member>
  4544. <member name="P:NewLife.Http.TokenHttpFilter.ClientId">
  4545. <summary>客户端唯一标识。一般是IP@进程</summary>
  4546. </member>
  4547. <member name="P:NewLife.Http.TokenHttpFilter.SecurityKey">
  4548. <summary>安全密钥。keyName$keyValue</summary>
  4549. <remarks>
  4550. 公钥,用于RSA加密用户密码,在通信链路上保护用户密码安全,可以写死在代码里面。
  4551. 密钥前面可以增加keyName,形成keyName$keyValue,用于向服务端指示所使用的密钥标识,方便未来更换密钥。
  4552. </remarks>
  4553. </member>
  4554. <member name="P:NewLife.Http.TokenHttpFilter.Action">
  4555. <summary>申请令牌动作名,默认 OAuth/Token</summary>
  4556. </member>
  4557. <member name="P:NewLife.Http.TokenHttpFilter.Token">
  4558. <summary>令牌信息</summary>
  4559. </member>
  4560. <member name="P:NewLife.Http.TokenHttpFilter.Expire">
  4561. <summary>令牌有效期</summary>
  4562. </member>
  4563. <member name="P:NewLife.Http.TokenHttpFilter.ErrorCodes">
  4564. <summary>清空令牌的错误码。默认401和403</summary>
  4565. </member>
  4566. <member name="M:NewLife.Http.TokenHttpFilter.#ctor">
  4567. <summary>实例化令牌过滤器</summary>
  4568. </member>
  4569. <member name="M:NewLife.Http.TokenHttpFilter.OnRequest(System.Net.Http.HttpClient,System.Net.Http.HttpRequestMessage,System.Object,System.Threading.CancellationToken)">
  4570. <summary>请求前</summary>
  4571. <param name="client">客户端</param>
  4572. <param name="request">请求消息</param>
  4573. <param name="state">状态数据</param>
  4574. <param name="cancellationToken">取消通知</param>
  4575. <returns></returns>
  4576. </member>
  4577. <member name="M:NewLife.Http.TokenHttpFilter.SendAuth(System.Net.Http.HttpClient,System.Threading.CancellationToken)">
  4578. <summary>发起密码认证请求</summary>
  4579. <param name="client"></param>
  4580. <param name="cancellationToken">取消通知</param>
  4581. <returns></returns>
  4582. </member>
  4583. <member name="M:NewLife.Http.TokenHttpFilter.SendRefresh(System.Net.Http.HttpClient,System.Threading.CancellationToken)">
  4584. <summary>发起刷新令牌请求</summary>
  4585. <param name="client"></param>
  4586. <param name="cancellationToken">取消通知</param>
  4587. <returns></returns>
  4588. </member>
  4589. <member name="M:NewLife.Http.TokenHttpFilter.EncodePassword(System.String,System.String)">
  4590. <summary>编码密码,在传输中保护安全,一般使用RSA加密</summary>
  4591. <param name="username"></param>
  4592. <param name="password"></param>
  4593. <returns></returns>
  4594. </member>
  4595. <member name="M:NewLife.Http.TokenHttpFilter.OnResponse(System.Net.Http.HttpClient,System.Net.Http.HttpResponseMessage,System.Object,System.Threading.CancellationToken)">
  4596. <summary>获取响应后</summary>
  4597. <param name="client">客户端</param>
  4598. <param name="response">响应消息</param>
  4599. <param name="state">状态数据</param>
  4600. <param name="cancellationToken">取消通知</param>
  4601. <returns></returns>
  4602. </member>
  4603. <member name="M:NewLife.Http.TokenHttpFilter.OnError(System.Net.Http.HttpClient,System.Exception,System.Object,System.Threading.CancellationToken)">
  4604. <summary>发生错误时</summary>
  4605. <param name="client">客户端</param>
  4606. <param name="exception">异常</param>
  4607. <param name="state">状态数据</param>
  4608. <param name="cancellationToken">取消通知</param>
  4609. <returns></returns>
  4610. </member>
  4611. <member name="T:NewLife.Http.WebSocketDelegate">
  4612. <summary>WebSocket消息处理</summary>
  4613. <param name="socket"></param>
  4614. <param name="message"></param>
  4615. </member>
  4616. <member name="T:NewLife.Http.WebSocket">
  4617. <summary>WebSocket会话管理</summary>
  4618. </member>
  4619. <member name="P:NewLife.Http.WebSocket.Connected">
  4620. <summary>是否还在连接</summary>
  4621. </member>
  4622. <member name="P:NewLife.Http.WebSocket.Handler">
  4623. <summary>消息处理器</summary>
  4624. </member>
  4625. <member name="P:NewLife.Http.WebSocket.Context">
  4626. <summary>Http上下文</summary>
  4627. </member>
  4628. <member name="P:NewLife.Http.WebSocket.Version">
  4629. <summary>版本</summary>
  4630. </member>
  4631. <member name="P:NewLife.Http.WebSocket.ActiveTime">
  4632. <summary>活跃时间</summary>
  4633. </member>
  4634. <member name="M:NewLife.Http.WebSocket.Handshake(NewLife.Http.IHttpContext)">
  4635. <summary>WebSocket 握手</summary>
  4636. <param name="context"></param>
  4637. <returns></returns>
  4638. </member>
  4639. <member name="M:NewLife.Http.WebSocket.Process(NewLife.Data.Packet)">
  4640. <summary>处理WebSocket数据包,不支持超大数据帧(默认8k)</summary>
  4641. <param name="pk"></param>
  4642. </member>
  4643. <member name="M:NewLife.Http.WebSocket.Send(NewLife.Data.Packet,NewLife.Http.WebSocketMessageType)">
  4644. <summary>发送消息</summary>
  4645. <param name="data"></param>
  4646. <param name="type"></param>
  4647. </member>
  4648. <member name="M:NewLife.Http.WebSocket.Send(System.String)">
  4649. <summary>发送文本消息</summary>
  4650. <param name="message"></param>
  4651. </member>
  4652. <member name="M:NewLife.Http.WebSocket.SendAll(NewLife.Data.Packet,NewLife.Http.WebSocketMessageType,System.Func{NewLife.Net.INetSession,System.Boolean})">
  4653. <summary>向所有连接发送消息</summary>
  4654. <param name="data"></param>
  4655. <param name="type"></param>
  4656. <param name="predicate"></param>
  4657. </member>
  4658. <member name="M:NewLife.Http.WebSocket.SendAll(System.String,System.Func{NewLife.Net.INetSession,System.Boolean})">
  4659. <summary>想所有连接发送文本消息</summary>
  4660. <param name="message"></param>
  4661. <param name="predicate"></param>
  4662. </member>
  4663. <member name="M:NewLife.Http.WebSocket.Close(System.Int32,System.String)">
  4664. <summary>发送关闭连接</summary>
  4665. <param name="closeStatus"></param>
  4666. <param name="statusDescription"></param>
  4667. </member>
  4668. <member name="T:NewLife.Http.WebSocketHandler">
  4669. <summary>WebSocket处理器</summary>
  4670. </member>
  4671. <member name="M:NewLife.Http.WebSocketHandler.ProcessRequest(NewLife.Http.IHttpContext)">
  4672. <summary>处理请求</summary>
  4673. <param name="context"></param>
  4674. </member>
  4675. <member name="M:NewLife.Http.WebSocketHandler.ProcessMessage(NewLife.Http.WebSocket,NewLife.Http.WebSocketMessage)">
  4676. <summary>处理消息</summary>
  4677. <param name="socket"></param>
  4678. <param name="message"></param>
  4679. </member>
  4680. <member name="T:NewLife.Http.WebSocketMessageType">
  4681. <summary>WebSocket消息类型</summary>
  4682. </member>
  4683. <member name="F:NewLife.Http.WebSocketMessageType.Data">
  4684. <summary>附加数据</summary>
  4685. </member>
  4686. <member name="F:NewLife.Http.WebSocketMessageType.Text">
  4687. <summary>文本数据</summary>
  4688. </member>
  4689. <member name="F:NewLife.Http.WebSocketMessageType.Binary">
  4690. <summary>二进制数据</summary>
  4691. </member>
  4692. <member name="F:NewLife.Http.WebSocketMessageType.Close">
  4693. <summary>连接关闭</summary>
  4694. </member>
  4695. <member name="F:NewLife.Http.WebSocketMessageType.Ping">
  4696. <summary>心跳</summary>
  4697. </member>
  4698. <member name="F:NewLife.Http.WebSocketMessageType.Pong">
  4699. <summary>心跳响应</summary>
  4700. </member>
  4701. <member name="T:NewLife.Http.WebSocketMessage">
  4702. <summary>WebSocket消息</summary>
  4703. </member>
  4704. <member name="P:NewLife.Http.WebSocketMessage.Fin">
  4705. <summary>消息是否结束</summary>
  4706. </member>
  4707. <member name="P:NewLife.Http.WebSocketMessage.Type">
  4708. <summary>消息类型</summary>
  4709. </member>
  4710. <member name="P:NewLife.Http.WebSocketMessage.MaskKey">
  4711. <summary>加密数据的掩码</summary>
  4712. </member>
  4713. <member name="P:NewLife.Http.WebSocketMessage.Payload">
  4714. <summary>负载数据</summary>
  4715. </member>
  4716. <member name="P:NewLife.Http.WebSocketMessage.CloseStatus">
  4717. <summary>关闭状态。仅用于Close消息</summary>
  4718. </member>
  4719. <member name="P:NewLife.Http.WebSocketMessage.StatusDescription">
  4720. <summary>关闭状态描述。仅用于Close消息</summary>
  4721. </member>
  4722. <member name="M:NewLife.Http.WebSocketMessage.Read(NewLife.Data.Packet)">
  4723. <summary>读取消息</summary>
  4724. <param name="pk"></param>
  4725. <returns></returns>
  4726. </member>
  4727. <member name="M:NewLife.Http.WebSocketMessage.ToPacket">
  4728. <summary>把消息转为封包</summary>
  4729. <returns></returns>
  4730. </member>
  4731. <member name="T:NewLife.IO.CsvDb`1">
  4732. <summary>Csv文件轻量级数据库</summary>
  4733. <remarks>
  4734. 文档 https://newlifex.com/core/csv_db
  4735. 适用于大量数据需要快速存储、快速查找,很少修改和删除的场景。
  4736. 在桌面客户端中,关系型数据库SQLite很容易因非法关机而损坏,本数据库能跳过损坏行,自动恢复。
  4737. </remarks>
  4738. <typeparam name="T"></typeparam>
  4739. </member>
  4740. <member name="P:NewLife.IO.CsvDb`1.FileName">
  4741. <summary>文件名</summary>
  4742. </member>
  4743. <member name="P:NewLife.IO.CsvDb`1.Encoding">
  4744. <summary>文件编码,默认utf8</summary>
  4745. </member>
  4746. <member name="P:NewLife.IO.CsvDb`1.Comparer">
  4747. <summary>实体比较器</summary>
  4748. </member>
  4749. <member name="M:NewLife.IO.CsvDb`1.#ctor">
  4750. <summary>实例化Csv文件数据库</summary>
  4751. </member>
  4752. <member name="M:NewLife.IO.CsvDb`1.#ctor(System.Func{`0,`0,System.Boolean})">
  4753. <summary>实例化Csv文件数据库</summary>
  4754. <param name="comparer"></param>
  4755. </member>
  4756. <member name="M:NewLife.IO.CsvDb`1.Write(System.Collections.Generic.IEnumerable{`0},System.Boolean)">
  4757. <summary>强行写入数据</summary>
  4758. <param name="models">要写入的数据</param>
  4759. <param name="append">是否附加在尾部</param>
  4760. </member>
  4761. <member name="M:NewLife.IO.CsvDb`1.Add(`0)">
  4762. <summary>尾部插入数据,性能极好</summary>
  4763. <param name="model"></param>
  4764. </member>
  4765. <member name="M:NewLife.IO.CsvDb`1.Add(System.Collections.Generic.IEnumerable{`0})">
  4766. <summary>尾部插入数据,性能极好</summary>
  4767. <param name="models"></param>
  4768. </member>
  4769. <member name="M:NewLife.IO.CsvDb`1.Remove(`0)">
  4770. <summary>删除数据,性能很差,全部读取剔除后保存</summary>
  4771. <param name="model"></param>
  4772. <returns></returns>
  4773. </member>
  4774. <member name="M:NewLife.IO.CsvDb`1.Remove(System.Collections.Generic.IEnumerable{`0})">
  4775. <summary>删除数据,性能很差,全部读取剔除后保存</summary>
  4776. <param name="models"></param>
  4777. <returns></returns>
  4778. </member>
  4779. <member name="M:NewLife.IO.CsvDb`1.Remove(System.Func{`0,System.Boolean})">
  4780. <summary>删除满足条件的数据,性能很差,全部读取剔除后保存</summary>
  4781. <param name="predicate"></param>
  4782. <returns></returns>
  4783. </member>
  4784. <member name="M:NewLife.IO.CsvDb`1.Clear">
  4785. <summary>清空数据。只写头部</summary>
  4786. </member>
  4787. <member name="M:NewLife.IO.CsvDb`1.Update(`0)">
  4788. <summary>更新指定数据行,性能很差,全部读取替换后保存</summary>
  4789. <param name="model"></param>
  4790. <returns></returns>
  4791. </member>
  4792. <member name="M:NewLife.IO.CsvDb`1.Set(`0)">
  4793. <summary>设置(添加或更新)指定数据行,性能很差,全部读取替换后保存</summary>
  4794. <param name="model"></param>
  4795. <returns></returns>
  4796. </member>
  4797. <member name="M:NewLife.IO.CsvDb`1.Find(`0)">
  4798. <summary>查找指定数据行</summary>
  4799. <param name="model"></param>
  4800. <returns></returns>
  4801. </member>
  4802. <member name="M:NewLife.IO.CsvDb`1.Find(System.Func{`0,System.Boolean})">
  4803. <summary>获取满足条件的第一行数据</summary>
  4804. <param name="predicate"></param>
  4805. <returns></returns>
  4806. </member>
  4807. <member name="M:NewLife.IO.CsvDb`1.FindAll">
  4808. <summary>获取所有数据行</summary>
  4809. <returns></returns>
  4810. </member>
  4811. <member name="M:NewLife.IO.CsvDb`1.Query(System.Func{`0,System.Boolean},System.Int32)">
  4812. <summary>获取满足条件的数据行,性能好,顺序查找</summary>
  4813. <param name="predicate"></param>
  4814. <param name="count"></param>
  4815. <returns></returns>
  4816. </member>
  4817. <member name="M:NewLife.IO.CsvDb`1.FindCount">
  4818. <summary>获取数据行数,性能极好,文件行数(除头部)</summary>
  4819. <returns></returns>
  4820. </member>
  4821. <member name="T:NewLife.IO.CsvFile">
  4822. <summary>Csv文件</summary>
  4823. <remarks>
  4824. 文档 https://newlifex.com/core/csv_file
  4825. 支持整体读写以及增量式读写,目标是读写超大Csv文件
  4826. </remarks>
  4827. </member>
  4828. <member name="P:NewLife.IO.CsvFile.Encoding">
  4829. <summary>文件编码</summary>
  4830. </member>
  4831. <member name="P:NewLife.IO.CsvFile.Separator">
  4832. <summary>分隔符。默认逗号</summary>
  4833. </member>
  4834. <member name="M:NewLife.IO.CsvFile.#ctor(System.IO.Stream)">
  4835. <summary>数据流实例化</summary>
  4836. <param name="stream"></param>
  4837. </member>
  4838. <member name="M:NewLife.IO.CsvFile.#ctor(System.IO.Stream,System.Boolean)">
  4839. <summary>数据流实例化</summary>
  4840. <param name="stream"></param>
  4841. <param name="leaveOpen">保留打开</param>
  4842. </member>
  4843. <member name="M:NewLife.IO.CsvFile.#ctor(System.String,System.Boolean)">
  4844. <summary>Csv文件实例化</summary>
  4845. <param name="file"></param>
  4846. <param name="write"></param>
  4847. </member>
  4848. <member name="M:NewLife.IO.CsvFile.Dispose">
  4849. <summary>销毁</summary>
  4850. </member>
  4851. <member name="M:NewLife.IO.CsvFile.Dispose(System.Boolean)">
  4852. <summary>销毁</summary>
  4853. <param name="disposing"></param>
  4854. </member>
  4855. <member name="M:NewLife.IO.CsvFile.ReadLine">
  4856. <summary>读取一行</summary>
  4857. <returns></returns>
  4858. </member>
  4859. <member name="M:NewLife.IO.CsvFile.ReadAll">
  4860. <summary>读取所有行</summary>
  4861. <returns></returns>
  4862. </member>
  4863. <member name="M:NewLife.IO.CsvFile.WriteAll(System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Object}})">
  4864. <summary>写入全部</summary>
  4865. <param name="data"></param>
  4866. </member>
  4867. <member name="M:NewLife.IO.CsvFile.WriteLine(System.Collections.Generic.IEnumerable{System.Object})">
  4868. <summary>写入一行</summary>
  4869. <param name="line"></param>
  4870. </member>
  4871. <member name="M:NewLife.IO.CsvFile.WriteLine(System.Object[])">
  4872. <summary>
  4873. 写入一行
  4874. </summary>
  4875. <param name="values"></param>
  4876. </member>
  4877. <member name="M:NewLife.IO.CsvFile.WriteLineAsync(System.Collections.Generic.IEnumerable{System.Object})">
  4878. <summary>异步写入一行</summary>
  4879. <param name="line"></param>
  4880. </member>
  4881. <member name="M:NewLife.IO.CsvFile.BuildLine(System.Collections.Generic.IEnumerable{System.Object})">
  4882. <summary>构建一行</summary>
  4883. <param name="line"></param>
  4884. <returns></returns>
  4885. </member>
  4886. <member name="T:NewLife.IO.EasyClient">
  4887. <summary>文件存储客户端</summary>
  4888. <remarks>
  4889. 使用方式,可以引用sdk,也可以直接把 EasyClient 类抠出来使用。
  4890. </remarks>
  4891. </member>
  4892. <member name="P:NewLife.IO.EasyClient.Server">
  4893. <summary>服务端地址</summary>
  4894. </member>
  4895. <member name="P:NewLife.IO.EasyClient.AppId">
  4896. <summary>应用标识</summary>
  4897. </member>
  4898. <member name="P:NewLife.IO.EasyClient.Secret">
  4899. <summary>应用密钥</summary>
  4900. </member>
  4901. <member name="P:NewLife.IO.EasyClient.BaseAction">
  4902. <summary>基础控制器路径。默认/io/</summary>
  4903. </member>
  4904. <member name="P:NewLife.IO.EasyClient.CanGetUrl">
  4905. <summary>是否支持获取文件直接访问Url</summary>
  4906. </member>
  4907. <member name="P:NewLife.IO.EasyClient.CanDelete">
  4908. <summary>是否支持删除</summary>
  4909. </member>
  4910. <member name="P:NewLife.IO.EasyClient.CanSearch">
  4911. <summary>是否支持搜索</summary>
  4912. </member>
  4913. <member name="M:NewLife.IO.EasyClient.#ctor">
  4914. <summary>实例化</summary>
  4915. </member>
  4916. <member name="M:NewLife.IO.EasyClient.#ctor(System.IServiceProvider,System.String)">
  4917. <summary>指定服务提供者来实例化文件存储客户端,可对接配置中心或注册中心</summary>
  4918. <param name="serviceProvider">服务提供者</param>
  4919. <param name="name">配置名。默认指向注册中心的EasyIO服务</param>
  4920. </member>
  4921. <member name="M:NewLife.IO.EasyClient.GetClient">
  4922. <summary>获取客户端</summary>
  4923. <returns></returns>
  4924. <exception cref="T:System.ArgumentNullException"></exception>
  4925. </member>
  4926. <member name="M:NewLife.IO.EasyClient.Put(System.String,NewLife.Data.Packet)">
  4927. <summary>上传对象</summary>
  4928. <param name="id">对象标识。支持斜杠目录结构</param>
  4929. <param name="data"></param>
  4930. <returns></returns>
  4931. <exception cref="T:System.ArgumentNullException"></exception>
  4932. </member>
  4933. <member name="M:NewLife.IO.EasyClient.Get(System.String)">
  4934. <summary>根据Id获取对象</summary>
  4935. <param name="id">对象标识。支持斜杠目录结构</param>
  4936. <returns></returns>
  4937. <exception cref="T:System.ArgumentNullException"></exception>
  4938. </member>
  4939. <member name="M:NewLife.IO.EasyClient.GetUrl(System.String)">
  4940. <summary>获取对象下载Url</summary>
  4941. <param name="id">对象标识。支持斜杠目录结构</param>
  4942. <returns></returns>
  4943. </member>
  4944. <member name="M:NewLife.IO.EasyClient.Delete(System.String)">
  4945. <summary>删除文件对象</summary>
  4946. <param name="id">对象文件名</param>
  4947. <returns></returns>
  4948. </member>
  4949. <member name="M:NewLife.IO.EasyClient.Search(System.String,System.Int32,System.Int32)">
  4950. <summary>搜索文件</summary>
  4951. <param name="pattern">匹配模式。如/202304/*.jpg</param>
  4952. <param name="start">开始序号。0开始</param>
  4953. <param name="count">最大个数</param>
  4954. <returns></returns>
  4955. </member>
  4956. <member name="P:NewLife.IO.EasyClient.Tracer">
  4957. <summary>性能追踪</summary>
  4958. </member>
  4959. <member name="P:NewLife.IO.EasyClient.Log">
  4960. <summary>日志</summary>
  4961. </member>
  4962. <member name="M:NewLife.IO.EasyClient.WriteLog(System.String,System.Object[])">
  4963. <summary>写日志</summary>
  4964. <param name="format"></param>
  4965. <param name="args"></param>
  4966. </member>
  4967. <member name="T:NewLife.IO.ExcelReader">
  4968. <summary>轻量级Excel读取器,仅用于导入数据</summary>
  4969. <remarks>
  4970. 文档 https://newlifex.com/core/excel_reader
  4971. 仅支持xlsx格式,本质上是压缩包,内部xml。
  4972. 可根据xml格式扩展读取自己想要的内容。
  4973. </remarks>
  4974. </member>
  4975. <member name="P:NewLife.IO.ExcelReader.FileName">
  4976. <summary>文件名</summary>
  4977. </member>
  4978. <member name="P:NewLife.IO.ExcelReader.Sheets">
  4979. <summary>工作表</summary>
  4980. </member>
  4981. <member name="M:NewLife.IO.ExcelReader.#ctor(System.String)">
  4982. <summary>实例化读取器</summary>
  4983. <param name="fileName"></param>
  4984. </member>
  4985. <member name="M:NewLife.IO.ExcelReader.#ctor(System.IO.Stream,System.Text.Encoding)">
  4986. <summary>实例化读取器</summary>
  4987. <param name="stream"></param>
  4988. <param name="encoding"></param>
  4989. </member>
  4990. <member name="M:NewLife.IO.ExcelReader.Dispose(System.Boolean)">
  4991. <summary>销毁</summary>
  4992. <param name="disposing"></param>
  4993. </member>
  4994. <member name="M:NewLife.IO.ExcelReader.ReadRows(System.String)">
  4995. <summary>逐行读取数据,第一行很可能是表头</summary>
  4996. <param name="sheet">工作表名。一般是sheet1/sheet2/sheet3,默认空,使用第一个数据表</param>
  4997. <returns></returns>
  4998. </member>
  4999. <member name="T:NewLife.IO.IObjectInfo">
  5000. <summary>对象信息接口。代表文件存储对象,或者磁盘文件,也可以是目录</summary>
  5001. </member>
  5002. <member name="P:NewLife.IO.IObjectInfo.Name">
  5003. <summary>名称</summary>
  5004. </member>
  5005. <member name="P:NewLife.IO.IObjectInfo.Length">
  5006. <summary>大小</summary>
  5007. </member>
  5008. <member name="P:NewLife.IO.IObjectInfo.Time">
  5009. <summary>时间</summary>
  5010. </member>
  5011. <member name="P:NewLife.IO.IObjectInfo.IsDirectory">
  5012. <summary>是否目录</summary>
  5013. </member>
  5014. <member name="P:NewLife.IO.IObjectInfo.Data">
  5015. <summary>数据</summary>
  5016. </member>
  5017. <member name="T:NewLife.IO.ObjectInfo">
  5018. <summary>对象信息。代表文件存储对象,或者磁盘文件,也可以是目录</summary>
  5019. </member>
  5020. <member name="P:NewLife.IO.ObjectInfo.Name">
  5021. <summary>名称</summary>
  5022. </member>
  5023. <member name="P:NewLife.IO.ObjectInfo.Length">
  5024. <summary>大小</summary>
  5025. </member>
  5026. <member name="P:NewLife.IO.ObjectInfo.Time">
  5027. <summary>时间</summary>
  5028. </member>
  5029. <member name="P:NewLife.IO.ObjectInfo.IsDirectory">
  5030. <summary>是否目录</summary>
  5031. </member>
  5032. <member name="P:NewLife.IO.ObjectInfo.Data">
  5033. <summary>数据</summary>
  5034. </member>
  5035. <member name="T:NewLife.IO.IObjectStorage">
  5036. <summary>对象存储接口</summary>
  5037. <remarks>
  5038. 可对接阿里云,文档 https://newlifex.com/core/oss
  5039. 可对接EasyIO
  5040. 有的OSS实现,在地址栏增加目录结构,而有的在对象名增加目录。
  5041. </remarks>
  5042. </member>
  5043. <member name="P:NewLife.IO.IObjectStorage.Server">
  5044. <summary>服务器。某些OSS在域名前或地址后增加BucketName</summary>
  5045. </member>
  5046. <member name="P:NewLife.IO.IObjectStorage.AppId">
  5047. <summary>应用标识</summary>
  5048. </member>
  5049. <member name="P:NewLife.IO.IObjectStorage.Secret">
  5050. <summary>应用密钥</summary>
  5051. </member>
  5052. <member name="P:NewLife.IO.IObjectStorage.CanGetUrl">
  5053. <summary>是否支持获取文件直接访问Url</summary>
  5054. </member>
  5055. <member name="P:NewLife.IO.IObjectStorage.CanDelete">
  5056. <summary>是否支持删除</summary>
  5057. </member>
  5058. <member name="P:NewLife.IO.IObjectStorage.CanSearch">
  5059. <summary>是否支持搜索</summary>
  5060. </member>
  5061. <member name="M:NewLife.IO.IObjectStorage.Get(System.String)">
  5062. <summary>获取文件对象</summary>
  5063. <param name="id">对象文件名</param>
  5064. <returns></returns>
  5065. </member>
  5066. <member name="M:NewLife.IO.IObjectStorage.GetUrl(System.String)">
  5067. <summary>获取文件直接访问Url</summary>
  5068. <param name="id">对象文件名</param>
  5069. <returns></returns>
  5070. </member>
  5071. <member name="M:NewLife.IO.IObjectStorage.Put(System.String,NewLife.Data.Packet)">
  5072. <summary>上传文件对象</summary>
  5073. <param name="id">对象文件名。可以为空,此时自动生成文件名</param>
  5074. <param name="data">数据内容</param>
  5075. <returns>可能是自动生成的新文件名</returns>
  5076. </member>
  5077. <member name="M:NewLife.IO.IObjectStorage.Delete(System.String)">
  5078. <summary>删除文件对象</summary>
  5079. <param name="id">对象文件名</param>
  5080. <returns></returns>
  5081. </member>
  5082. <member name="M:NewLife.IO.IObjectStorage.Search(System.String,System.Int32,System.Int32)">
  5083. <summary>搜索文件</summary>
  5084. <param name="pattern">匹配模式。如/202304/*.jpg</param>
  5085. <param name="start">开始序号。0开始</param>
  5086. <param name="count">最大个数</param>
  5087. <returns></returns>
  5088. </member>
  5089. <member name="T:NewLife.IOHelper">
  5090. <summary>IO工具类</summary>
  5091. <remarks>
  5092. 文档 https://newlifex.com/core/io_helper
  5093. </remarks>
  5094. </member>
  5095. <member name="P:NewLife.IOHelper.MaxSafeArraySize">
  5096. <summary>最大安全数组大小。超过该大小时,读取数据操作将强制失败,默认1024*1024</summary>
  5097. <remarks>
  5098. 这是一个保护性设置,避免解码错误数据时读取了超大数组导致应用崩溃。
  5099. 需要解码较大二进制数据时,可以适当放宽该阈值。
  5100. </remarks>
  5101. </member>
  5102. <member name="M:NewLife.IOHelper.Compress(System.IO.Stream,System.IO.Stream)">
  5103. <summary>压缩数据流</summary>
  5104. <param name="inStream">输入流</param>
  5105. <param name="outStream">输出流。如果不指定,则内部实例化一个内存流</param>
  5106. <remarks>返回输出流,注意此时指针位于末端</remarks>
  5107. </member>
  5108. <member name="M:NewLife.IOHelper.Decompress(System.IO.Stream,System.IO.Stream)">
  5109. <summary>解压缩数据流</summary>
  5110. <returns>Deflate算法,如果是ZLIB格式,则前面多两个字节,解压缩之前去掉,RocketMQ中有用到</returns>
  5111. <param name="inStream">输入流</param>
  5112. <param name="outStream">输出流。如果不指定,则内部实例化一个内存流</param>
  5113. <remarks>返回输出流,注意此时指针位于末端</remarks>
  5114. </member>
  5115. <member name="M:NewLife.IOHelper.Compress(System.Byte[])">
  5116. <summary>压缩字节数组</summary>
  5117. <param name="data">字节数组</param>
  5118. <returns></returns>
  5119. </member>
  5120. <member name="M:NewLife.IOHelper.Decompress(System.Byte[])">
  5121. <summary>解压缩字节数组</summary>
  5122. <returns>Deflate算法,如果是ZLIB格式,则前面多两个字节,解压缩之前去掉,RocketMQ中有用到</returns>
  5123. <param name="data">字节数组</param>
  5124. <returns></returns>
  5125. </member>
  5126. <member name="M:NewLife.IOHelper.CompressGZip(System.IO.Stream,System.IO.Stream)">
  5127. <summary>压缩数据流</summary>
  5128. <param name="inStream">输入流</param>
  5129. <param name="outStream">输出流。如果不指定,则内部实例化一个内存流</param>
  5130. <remarks>返回输出流,注意此时指针位于末端</remarks>
  5131. </member>
  5132. <member name="M:NewLife.IOHelper.DecompressGZip(System.IO.Stream,System.IO.Stream)">
  5133. <summary>解压缩数据流</summary>
  5134. <param name="inStream">输入流</param>
  5135. <param name="outStream">输出流。如果不指定,则内部实例化一个内存流</param>
  5136. <remarks>返回输出流,注意此时指针位于末端</remarks>
  5137. </member>
  5138. <member name="M:NewLife.IOHelper.CompressGZip(System.Byte[])">
  5139. <summary>压缩字节数组</summary>
  5140. <param name="data">字节数组</param>
  5141. <returns></returns>
  5142. </member>
  5143. <member name="M:NewLife.IOHelper.DecompressGZip(System.Byte[])">
  5144. <summary>解压缩字节数组</summary>
  5145. <returns>Deflate算法,如果是ZLIB格式,则前面多两个字节,解压缩之前去掉,RocketMQ中有用到</returns>
  5146. <param name="data">字节数组</param>
  5147. <returns></returns>
  5148. </member>
  5149. <member name="M:NewLife.IOHelper.Write(System.IO.Stream,System.Byte[])">
  5150. <summary>把一个字节数组写入到一个数据流</summary>
  5151. <param name="des">目的数据流</param>
  5152. <param name="src">源数据流</param>
  5153. <returns></returns>
  5154. </member>
  5155. <member name="M:NewLife.IOHelper.WriteArray(System.IO.Stream,System.Byte[])">
  5156. <summary>写入字节数组,先写入压缩整数表示的长度</summary>
  5157. <param name="des"></param>
  5158. <param name="src"></param>
  5159. <returns></returns>
  5160. </member>
  5161. <member name="M:NewLife.IOHelper.ReadArray(System.IO.Stream)">
  5162. <summary>读取字节数组,先读取压缩整数表示的长度</summary>
  5163. <param name="des"></param>
  5164. <returns></returns>
  5165. </member>
  5166. <member name="M:NewLife.IOHelper.WriteDateTime(System.IO.Stream,System.DateTime)">
  5167. <summary>写入Unix格式时间,1970年以来秒数,绝对时间,非UTC</summary>
  5168. <param name="stream"></param>
  5169. <param name="dt"></param>
  5170. <returns></returns>
  5171. </member>
  5172. <member name="M:NewLife.IOHelper.ReadDateTime(System.IO.Stream)">
  5173. <summary>读取Unix格式时间,1970年以来秒数,绝对时间,非UTC</summary>
  5174. <param name="stream"></param>
  5175. <returns></returns>
  5176. </member>
  5177. <member name="M:NewLife.IOHelper.ReadBytes(System.Byte[],System.Int32,System.Int32)">
  5178. <summary>复制数组</summary>
  5179. <param name="src">源数组</param>
  5180. <param name="offset">起始位置。一般从0开始</param>
  5181. <param name="count">复制字节数。用-1表示截取剩余所有数据</param>
  5182. <returns>返回复制的总字节数</returns>
  5183. </member>
  5184. <member name="M:NewLife.IOHelper.Write(System.Byte[],System.Int32,System.Byte[],System.Int32,System.Int32)">
  5185. <summary>向字节数组写入一片数据</summary>
  5186. <param name="dst">目标数组</param>
  5187. <param name="dstOffset">目标偏移</param>
  5188. <param name="src">源数组</param>
  5189. <param name="srcOffset">源数组偏移</param>
  5190. <param name="count">数量</param>
  5191. <returns>返回实际写入的字节个数</returns>
  5192. </member>
  5193. <member name="M:NewLife.IOHelper.ReadBytes(System.IO.Stream,System.Int64)">
  5194. <summary>数据流转为字节数组</summary>
  5195. <remarks>
  5196. 针对MemoryStream进行优化。内存流的Read实现是一个个字节复制,而ToArray是调用内部内存复制方法
  5197. 如果要读完数据,又不支持定位,则采用内存流搬运
  5198. 如果指定长度超过数据流长度,就让其报错,因为那是调用者所期望的值
  5199. </remarks>
  5200. <param name="stream">数据流</param>
  5201. <param name="length">长度,-1表示读到结束</param>
  5202. <returns></returns>
  5203. </member>
  5204. <member name="M:NewLife.IOHelper.ToStr(System.IO.Stream,System.Text.Encoding)">
  5205. <summary>流转换为字符串</summary>
  5206. <param name="stream">目标流</param>
  5207. <param name="encoding">编码格式</param>
  5208. <returns></returns>
  5209. </member>
  5210. <member name="M:NewLife.IOHelper.ToStr(System.Byte[],System.Text.Encoding,System.Int32,System.Int32)">
  5211. <summary>字节数组转换为字符串</summary>
  5212. <param name="buf">字节数组</param>
  5213. <param name="encoding">编码格式</param>
  5214. <param name="offset">字节数组中的偏移</param>
  5215. <param name="count">字节数组中的查找长度</param>
  5216. <returns></returns>
  5217. </member>
  5218. <member name="M:NewLife.IOHelper.ToUInt16(System.Byte[],System.Int32,System.Boolean)">
  5219. <summary>从字节数据指定位置读取一个无符号16位整数</summary>
  5220. <param name="data"></param>
  5221. <param name="offset">偏移</param>
  5222. <param name="isLittleEndian">是否小端字节序</param>
  5223. <returns></returns>
  5224. </member>
  5225. <member name="M:NewLife.IOHelper.ToUInt32(System.Byte[],System.Int32,System.Boolean)">
  5226. <summary>从字节数据指定位置读取一个无符号32位整数</summary>
  5227. <param name="data"></param>
  5228. <param name="offset">偏移</param>
  5229. <param name="isLittleEndian">是否小端字节序</param>
  5230. <returns></returns>
  5231. </member>
  5232. <member name="M:NewLife.IOHelper.ToUInt64(System.Byte[],System.Int32,System.Boolean)">
  5233. <summary>从字节数据指定位置读取一个无符号64位整数</summary>
  5234. <param name="data"></param>
  5235. <param name="offset">偏移</param>
  5236. <param name="isLittleEndian">是否小端字节序</param>
  5237. <returns></returns>
  5238. </member>
  5239. <member name="M:NewLife.IOHelper.ToSingle(System.Byte[],System.Int32,System.Boolean)">
  5240. <summary>从字节数据指定位置读取一个单精度浮点数</summary>
  5241. <param name="data"></param>
  5242. <param name="offset">偏移</param>
  5243. <param name="isLittleEndian">是否小端字节序</param>
  5244. <returns></returns>
  5245. </member>
  5246. <member name="M:NewLife.IOHelper.ToDouble(System.Byte[],System.Int32,System.Boolean)">
  5247. <summary>从字节数据指定位置读取一个双精度浮点数</summary>
  5248. <param name="data"></param>
  5249. <param name="offset">偏移</param>
  5250. <param name="isLittleEndian">是否小端字节序</param>
  5251. <returns></returns>
  5252. </member>
  5253. <member name="M:NewLife.IOHelper.Write(System.Byte[],System.UInt16,System.Int32,System.Boolean)">
  5254. <summary>向字节数组的指定位置写入一个无符号16位整数</summary>
  5255. <param name="data"></param>
  5256. <param name="n">数字</param>
  5257. <param name="offset">偏移</param>
  5258. <param name="isLittleEndian">是否小端字节序</param>
  5259. <returns></returns>
  5260. </member>
  5261. <member name="M:NewLife.IOHelper.Write(System.Byte[],System.UInt32,System.Int32,System.Boolean)">
  5262. <summary>向字节数组的指定位置写入一个无符号32位整数</summary>
  5263. <param name="data"></param>
  5264. <param name="n">数字</param>
  5265. <param name="offset">偏移</param>
  5266. <param name="isLittleEndian">是否小端字节序</param>
  5267. <returns></returns>
  5268. </member>
  5269. <member name="M:NewLife.IOHelper.Write(System.Byte[],System.UInt64,System.Int32,System.Boolean)">
  5270. <summary>向字节数组的指定位置写入一个无符号64位整数</summary>
  5271. <param name="data"></param>
  5272. <param name="n">数字</param>
  5273. <param name="offset">偏移</param>
  5274. <param name="isLittleEndian">是否小端字节序</param>
  5275. <returns></returns>
  5276. </member>
  5277. <member name="M:NewLife.IOHelper.Write(System.Byte[],System.Single,System.Int32,System.Boolean)">
  5278. <summary>向字节数组的指定位置写入一个单精度浮点数</summary>
  5279. <param name="data"></param>
  5280. <param name="n">数字</param>
  5281. <param name="offset">偏移</param>
  5282. <param name="isLittleEndian">是否小端字节序</param>
  5283. <returns></returns>
  5284. </member>
  5285. <member name="M:NewLife.IOHelper.Write(System.Byte[],System.Double,System.Int32,System.Boolean)">
  5286. <summary>向字节数组的指定位置写入一个双精度浮点数</summary>
  5287. <param name="data"></param>
  5288. <param name="n">数字</param>
  5289. <param name="offset">偏移</param>
  5290. <param name="isLittleEndian">是否小端字节序</param>
  5291. <returns></returns>
  5292. </member>
  5293. <member name="M:NewLife.IOHelper.GetBytes(System.UInt16,System.Boolean)">
  5294. <summary>整数转为字节数组,注意大小端字节序</summary>
  5295. <param name="value"></param>
  5296. <param name="isLittleEndian"></param>
  5297. <returns></returns>
  5298. </member>
  5299. <member name="M:NewLife.IOHelper.GetBytes(System.Int16,System.Boolean)">
  5300. <summary>整数转为字节数组,注意大小端字节序</summary>
  5301. <param name="value"></param>
  5302. <param name="isLittleEndian"></param>
  5303. <returns></returns>
  5304. </member>
  5305. <member name="M:NewLife.IOHelper.GetBytes(System.UInt32,System.Boolean)">
  5306. <summary>整数转为字节数组,注意大小端字节序</summary>
  5307. <param name="value"></param>
  5308. <param name="isLittleEndian"></param>
  5309. <returns></returns>
  5310. </member>
  5311. <member name="M:NewLife.IOHelper.GetBytes(System.Int32,System.Boolean)">
  5312. <summary>整数转为字节数组,注意大小端字节序</summary>
  5313. <param name="value"></param>
  5314. <param name="isLittleEndian"></param>
  5315. <returns></returns>
  5316. </member>
  5317. <member name="M:NewLife.IOHelper.GetBytes(System.UInt64,System.Boolean)">
  5318. <summary>整数转为字节数组,注意大小端字节序</summary>
  5319. <param name="value"></param>
  5320. <param name="isLittleEndian"></param>
  5321. <returns></returns>
  5322. </member>
  5323. <member name="M:NewLife.IOHelper.GetBytes(System.Int64,System.Boolean)">
  5324. <summary>整数转为字节数组,注意大小端字节序</summary>
  5325. <param name="value"></param>
  5326. <param name="isLittleEndian"></param>
  5327. <returns></returns>
  5328. </member>
  5329. <member name="M:NewLife.IOHelper.GetBytes(System.Single,System.Boolean)">
  5330. <summary>单精度浮点数转为字节数组,注意大小端字节序</summary>
  5331. <param name="value"></param>
  5332. <param name="isLittleEndian"></param>
  5333. <returns></returns>
  5334. </member>
  5335. <member name="M:NewLife.IOHelper.GetBytes(System.Double,System.Boolean)">
  5336. <summary>双精度浮点数转为字节数组,注意大小端字节序</summary>
  5337. <param name="value"></param>
  5338. <param name="isLittleEndian"></param>
  5339. <returns></returns>
  5340. </member>
  5341. <member name="M:NewLife.IOHelper.Swap(System.Byte[],System.Boolean,System.Boolean)">
  5342. <summary>字节翻转。支持双字节和四字节多批次翻转,主要用于大小端转换</summary>
  5343. <param name="data"></param>
  5344. <param name="swap16"></param>
  5345. <param name="swap32"></param>
  5346. <returns></returns>
  5347. </member>
  5348. <member name="M:NewLife.IOHelper.ReadEncodedInt(System.IO.Stream)">
  5349. <summary>以压缩格式读取32位整数</summary>
  5350. <param name="stream">数据流</param>
  5351. <returns></returns>
  5352. </member>
  5353. <member name="M:NewLife.IOHelper.ReadEncodedInt64(System.IO.Stream)">
  5354. <summary>以压缩格式读取32位整数</summary>
  5355. <param name="stream">数据流</param>
  5356. <returns></returns>
  5357. </member>
  5358. <member name="M:NewLife.IOHelper.TryReadEncodedInt(System.IO.Stream,System.UInt32@)">
  5359. <summary>尝试读取压缩编码整数</summary>
  5360. <param name="stream"></param>
  5361. <param name="value"></param>
  5362. <returns></returns>
  5363. </member>
  5364. <member name="M:NewLife.IOHelper.WriteEncodedInt(System.IO.Stream,System.Int64)">
  5365. <summary>
  5366. 以7位压缩格式写入32位整数,小于7位用1个字节,小于14位用2个字节。
  5367. 由每次写入的一个字节的第一位标记后面的字节是否还是当前数据,所以每个字节实际可利用存储空间只有后7位。
  5368. </summary>
  5369. <param name="stream">数据流</param>
  5370. <param name="value">数值</param>
  5371. <returns>实际写入字节数</returns>
  5372. </member>
  5373. <member name="M:NewLife.IOHelper.GetEncodedInt(System.Int64)">
  5374. <summary>获取压缩编码整数</summary>
  5375. <param name="value"></param>
  5376. <returns></returns>
  5377. </member>
  5378. <member name="M:NewLife.IOHelper.ToHex(System.Byte[],System.Int32,System.Int32)">
  5379. <summary>把字节数组编码为十六进制字符串</summary>
  5380. <param name="data">字节数组</param>
  5381. <param name="offset">偏移</param>
  5382. <param name="count">数量。超过实际数量时,使用实际数量</param>
  5383. <returns></returns>
  5384. </member>
  5385. <member name="M:NewLife.IOHelper.ToHex(System.Byte[],System.String,System.Int32,System.Int32)">
  5386. <summary>把字节数组编码为十六进制字符串,带有分隔符和分组功能</summary>
  5387. <param name="data">字节数组</param>
  5388. <param name="separate">分隔符</param>
  5389. <param name="groupSize">分组大小,为0时对每个字节应用分隔符,否则对每个分组使用</param>
  5390. <param name="maxLength">最大显示多少个字节。默认-1显示全部</param>
  5391. <returns></returns>
  5392. </member>
  5393. <member name="M:NewLife.IOHelper.ToHex(System.Byte)">
  5394. <summary>1个字节转为2个16进制字符</summary>
  5395. <param name="b"></param>
  5396. <returns></returns>
  5397. </member>
  5398. <member name="M:NewLife.IOHelper.ToHex(System.String,System.Int32,System.Int32)">
  5399. <summary>解密</summary>
  5400. <param name="data">Hex编码的字符串</param>
  5401. <param name="startIndex">起始位置</param>
  5402. <param name="length">长度</param>
  5403. <returns></returns>
  5404. </member>
  5405. <member name="M:NewLife.IOHelper.ToBase64(System.Byte[],System.Int32,System.Int32,System.Boolean)">
  5406. <summary>字节数组转为Base64编码</summary>
  5407. <param name="data"></param>
  5408. <param name="offset"></param>
  5409. <param name="count"></param>
  5410. <param name="lineBreak">是否换行显示</param>
  5411. <returns></returns>
  5412. </member>
  5413. <member name="M:NewLife.IOHelper.ToUrlBase64(System.Byte[],System.Int32,System.Int32)">
  5414. <summary>字节数组转为Url改进型Base64编码</summary>
  5415. <param name="data"></param>
  5416. <param name="offset"></param>
  5417. <param name="count"></param>
  5418. <returns></returns>
  5419. </member>
  5420. <member name="M:NewLife.IOHelper.ToBase64(System.String)">
  5421. <summary>Base64字符串转为字节数组</summary>
  5422. <param name="data"></param>
  5423. <returns></returns>
  5424. </member>
  5425. <member name="M:NewLife.IOHelper.IndexOf(System.Byte[],System.Byte[],System.Int32,System.Int32)">
  5426. <summary>Boyer Moore 字符串搜索算法,比KMP更快,常用于IDE工具的查找</summary>
  5427. <param name="source"></param>
  5428. <param name="pattern"></param>
  5429. <param name="offset"></param>
  5430. <param name="count"></param>
  5431. <returns></returns>
  5432. </member>
  5433. <member name="T:NewLife.Log.ActionLog">
  5434. <summary>依托于动作的日志类</summary>
  5435. </member>
  5436. <member name="P:NewLife.Log.ActionLog.Method">
  5437. <summary>方法</summary>
  5438. </member>
  5439. <member name="M:NewLife.Log.ActionLog.#ctor(System.Action{System.String,System.Object[]})">
  5440. <summary>使用指定方法否则动作日志</summary>
  5441. <param name="action"></param>
  5442. </member>
  5443. <member name="M:NewLife.Log.ActionLog.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  5444. <summary>写日志</summary>
  5445. <param name="level"></param>
  5446. <param name="format"></param>
  5447. <param name="args"></param>
  5448. </member>
  5449. <member name="M:NewLife.Log.ActionLog.ToString">
  5450. <summary>已重载</summary>
  5451. <returns></returns>
  5452. </member>
  5453. <member name="T:NewLife.Log.CompositeLog">
  5454. <summary>复合日志提供者,多种方式输出</summary>
  5455. </member>
  5456. <member name="P:NewLife.Log.CompositeLog.Logs">
  5457. <summary>日志提供者集合</summary>
  5458. </member>
  5459. <member name="P:NewLife.Log.CompositeLog.Level">
  5460. <summary>日志等级,只输出大于等于该级别的日志,默认Info,打开NewLife.Debug时默认为最低的Debug</summary>
  5461. </member>
  5462. <member name="M:NewLife.Log.CompositeLog.#ctor">
  5463. <summary>实例化</summary>
  5464. </member>
  5465. <member name="M:NewLife.Log.CompositeLog.#ctor(NewLife.Log.ILog)">
  5466. <summary>实例化</summary>
  5467. <param name="log"></param>
  5468. </member>
  5469. <member name="M:NewLife.Log.CompositeLog.#ctor(NewLife.Log.ILog,NewLife.Log.ILog)">
  5470. <summary>实例化</summary>
  5471. <param name="log1"></param>
  5472. <param name="log2"></param>
  5473. </member>
  5474. <member name="M:NewLife.Log.CompositeLog.Add(NewLife.Log.ILog)">
  5475. <summary>添加一个日志提供者</summary>
  5476. <param name="log"></param>
  5477. <returns></returns>
  5478. </member>
  5479. <member name="M:NewLife.Log.CompositeLog.Remove(NewLife.Log.ILog)">
  5480. <summary>删除日志提供者</summary>
  5481. <param name="log"></param>
  5482. <returns></returns>
  5483. </member>
  5484. <member name="M:NewLife.Log.CompositeLog.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  5485. <summary>写日志</summary>
  5486. <param name="level"></param>
  5487. <param name="format"></param>
  5488. <param name="args"></param>
  5489. </member>
  5490. <member name="M:NewLife.Log.CompositeLog.Get``1">
  5491. <summary>从复合日志提供者中提取指定类型的日志提供者</summary>
  5492. <typeparam name="TLog"></typeparam>
  5493. <returns></returns>
  5494. </member>
  5495. <member name="M:NewLife.Log.CompositeLog.ToString">
  5496. <summary>已重载。</summary>
  5497. <returns></returns>
  5498. </member>
  5499. <member name="T:NewLife.Log.ConsoleLog">
  5500. <summary>控制台输出日志</summary>
  5501. </member>
  5502. <member name="P:NewLife.Log.ConsoleLog.UseColor">
  5503. <summary>是否使用多种颜色,默认使用</summary>
  5504. </member>
  5505. <member name="M:NewLife.Log.ConsoleLog.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  5506. <summary>写日志</summary>
  5507. <param name="level"></param>
  5508. <param name="format"></param>
  5509. <param name="args"></param>
  5510. </member>
  5511. <member name="M:NewLife.Log.ConsoleLog.ToString">
  5512. <summary>已重载。</summary>
  5513. <returns></returns>
  5514. </member>
  5515. <member name="T:NewLife.Log.ICounter">
  5516. <summary>性能计数器接口</summary>
  5517. </member>
  5518. <member name="P:NewLife.Log.ICounter.Value">
  5519. <summary>数值</summary>
  5520. </member>
  5521. <member name="P:NewLife.Log.ICounter.Times">
  5522. <summary>次数</summary>
  5523. </member>
  5524. <member name="P:NewLife.Log.ICounter.Speed">
  5525. <summary>速度</summary>
  5526. </member>
  5527. <member name="P:NewLife.Log.ICounter.Cost">
  5528. <summary>平均耗时,单位us</summary>
  5529. </member>
  5530. <member name="M:NewLife.Log.ICounter.Increment(System.Int64,System.Int64)">
  5531. <summary>增加</summary>
  5532. <param name="value">增加的数量</param>
  5533. <param name="usCost">耗时,单位us</param>
  5534. </member>
  5535. <member name="T:NewLife.Log.CounterHelper">
  5536. <summary>计数器助手</summary>
  5537. </member>
  5538. <member name="M:NewLife.Log.CounterHelper.StartCount(NewLife.Log.ICounter)">
  5539. <summary>开始计时</summary>
  5540. <param name="counter"></param>
  5541. <returns></returns>
  5542. </member>
  5543. <member name="M:NewLife.Log.CounterHelper.StopCount(NewLife.Log.ICounter,System.Nullable{System.Int64})">
  5544. <summary>结束计时</summary>
  5545. <param name="counter"></param>
  5546. <param name="startTicks"></param>
  5547. </member>
  5548. <member name="T:NewLife.Log.ILog">
  5549. <summary>日志接口</summary>
  5550. <remarks>
  5551. 文档 https://newlifex.com/core/log
  5552. </remarks>
  5553. </member>
  5554. <member name="M:NewLife.Log.ILog.Write(NewLife.Log.LogLevel,System.String,System.Object[])">
  5555. <summary>写日志</summary>
  5556. <param name="level">日志级别</param>
  5557. <param name="format">格式化字符串</param>
  5558. <param name="args">格式化参数</param>
  5559. </member>
  5560. <member name="M:NewLife.Log.ILog.Debug(System.String,System.Object[])">
  5561. <summary>调试日志</summary>
  5562. <param name="format">格式化字符串</param>
  5563. <param name="args">格式化参数</param>
  5564. </member>
  5565. <member name="M:NewLife.Log.ILog.Info(System.String,System.Object[])">
  5566. <summary>信息日志</summary>
  5567. <param name="format">格式化字符串</param>
  5568. <param name="args">格式化参数</param>
  5569. </member>
  5570. <member name="M:NewLife.Log.ILog.Warn(System.String,System.Object[])">
  5571. <summary>警告日志</summary>
  5572. <param name="format">格式化字符串</param>
  5573. <param name="args">格式化参数</param>
  5574. </member>
  5575. <member name="M:NewLife.Log.ILog.Error(System.String,System.Object[])">
  5576. <summary>错误日志</summary>
  5577. <param name="format">格式化字符串</param>
  5578. <param name="args">格式化参数</param>
  5579. </member>
  5580. <member name="M:NewLife.Log.ILog.Fatal(System.String,System.Object[])">
  5581. <summary>严重错误日志</summary>
  5582. <param name="format">格式化字符串</param>
  5583. <param name="args">格式化参数</param>
  5584. </member>
  5585. <member name="P:NewLife.Log.ILog.Enable">
  5586. <summary>是否启用日志</summary>
  5587. </member>
  5588. <member name="P:NewLife.Log.ILog.Level">
  5589. <summary>日志等级,只输出大于等于该级别的日志,默认Info</summary>
  5590. </member>
  5591. <member name="T:NewLife.Log.ILogFeature">
  5592. <summary>日志功能接口</summary>
  5593. </member>
  5594. <member name="P:NewLife.Log.ILogFeature.Log">
  5595. <summary>日志。非空,默认为Logger.Null</summary>
  5596. </member>
  5597. <member name="T:NewLife.Log.LogFeatureExtensions">
  5598. <summary>日志功能扩展</summary>
  5599. </member>
  5600. <member name="M:NewLife.Log.LogFeatureExtensions.WriteLog(NewLife.Log.ILogFeature,System.String,System.Object[])">
  5601. <summary>写日志</summary>
  5602. <param name="logFeature">日志功能</param>
  5603. <param name="format">格式化字符串</param>
  5604. <param name="args">格式化参数,特殊处理时间日期和异常对象</param>
  5605. </member>
  5606. <member name="T:NewLife.Log.ISpan">
  5607. <summary>性能跟踪片段。轻量级APM</summary>
  5608. </member>
  5609. <member name="P:NewLife.Log.ISpan.Id">
  5610. <summary>唯一标识。随线程上下文、Http、Rpc传递,作为内部片段的父级</summary>
  5611. </member>
  5612. <member name="P:NewLife.Log.ISpan.ParentId">
  5613. <summary>父级片段标识</summary>
  5614. </member>
  5615. <member name="P:NewLife.Log.ISpan.TraceId">
  5616. <summary>跟踪标识。可用于关联多个片段,建立依赖关系,随线程上下文、Http、Rpc传递</summary>
  5617. </member>
  5618. <member name="P:NewLife.Log.ISpan.StartTime">
  5619. <summary>开始时间。Unix毫秒</summary>
  5620. </member>
  5621. <member name="P:NewLife.Log.ISpan.EndTime">
  5622. <summary>结束时间。Unix毫秒</summary>
  5623. </member>
  5624. <member name="P:NewLife.Log.ISpan.Value">
  5625. <summary>用户数值。记录数字型标量,如每次数据库操作行数,星尘平台汇总统计</summary>
  5626. </member>
  5627. <member name="P:NewLife.Log.ISpan.Tag">
  5628. <summary>数据标签。记录一些附加数据</summary>
  5629. </member>
  5630. <member name="P:NewLife.Log.ISpan.Error">
  5631. <summary>错误信息</summary>
  5632. </member>
  5633. <member name="M:NewLife.Log.ISpan.SetError(System.Exception,System.Object)">
  5634. <summary>设置错误信息,ApiException除外</summary>
  5635. <param name="ex">异常</param>
  5636. <param name="tag">标签</param>
  5637. </member>
  5638. <member name="M:NewLife.Log.ISpan.SetTag(System.Object)">
  5639. <summary>设置数据标签。内部根据长度截断</summary>
  5640. <param name="tag">标签</param>
  5641. </member>
  5642. <member name="T:NewLife.Log.DefaultSpan">
  5643. <summary>性能跟踪片段。轻量级APM</summary>
  5644. <remarks>
  5645. spanId/traceId采用W3C标准,https://www.w3.org/TR/trace-context/
  5646. </remarks>
  5647. </member>
  5648. <member name="P:NewLife.Log.DefaultSpan.Builder">
  5649. <summary>构建器</summary>
  5650. </member>
  5651. <member name="P:NewLife.Log.DefaultSpan.Id">
  5652. <summary>唯一标识。随线程上下文、Http、Rpc传递,作为内部片段的父级</summary>
  5653. </member>
  5654. <member name="P:NewLife.Log.DefaultSpan.ParentId">
  5655. <summary>父级片段标识</summary>
  5656. </member>
  5657. <member name="P:NewLife.Log.DefaultSpan.TraceId">
  5658. <summary>跟踪标识。可用于关联多个片段,建立依赖关系,随线程上下文、Http、Rpc传递</summary>
  5659. </member>
  5660. <member name="P:NewLife.Log.DefaultSpan.StartTime">
  5661. <summary>开始时间。Unix毫秒</summary>
  5662. </member>
  5663. <member name="P:NewLife.Log.DefaultSpan.EndTime">
  5664. <summary>结束时间。Unix毫秒</summary>
  5665. </member>
  5666. <member name="P:NewLife.Log.DefaultSpan.Value">
  5667. <summary>用户数值。记录数字型标量,如每次数据库操作行数,星尘平台汇总统计</summary>
  5668. </member>
  5669. <member name="P:NewLife.Log.DefaultSpan.Tag">
  5670. <summary>数据标签。记录一些附加数据</summary>
  5671. </member>
  5672. <member name="P:NewLife.Log.DefaultSpan.TraceFlag">
  5673. <summary>跟踪标识。强制采样,确保链路采样完整,上下文传递</summary>
  5674. </member>
  5675. <member name="P:NewLife.Log.DefaultSpan.Error">
  5676. <summary>错误信息</summary>
  5677. </member>
  5678. <member name="P:NewLife.Log.DefaultSpan.Current">
  5679. <summary>当前线程正在使用的上下文</summary>
  5680. </member>
  5681. <member name="M:NewLife.Log.DefaultSpan.#ctor">
  5682. <summary>实例化</summary>
  5683. </member>
  5684. <member name="M:NewLife.Log.DefaultSpan.#ctor(NewLife.Log.ISpanBuilder)">
  5685. <summary>实例化</summary>
  5686. <param name="builder"></param>
  5687. </member>
  5688. <member name="M:NewLife.Log.DefaultSpan.Dispose">
  5689. <summary>释放资源</summary>
  5690. </member>
  5691. <member name="M:NewLife.Log.DefaultSpan.Start">
  5692. <summary>设置跟踪标识</summary>
  5693. </member>
  5694. <member name="M:NewLife.Log.DefaultSpan.CreateId">
  5695. <summary>创建分片编号</summary>
  5696. <returns></returns>
  5697. </member>
  5698. <member name="M:NewLife.Log.DefaultSpan.CreateTraceId">
  5699. <summary>创建跟踪编号</summary>
  5700. <returns></returns>
  5701. </member>
  5702. <member name="M:NewLife.Log.DefaultSpan.Finish">
  5703. <summary>完成跟踪</summary>
  5704. </member>
  5705. <member name="M:NewLife.Log.DefaultSpan.SetError(System.Exception,System.Object)">
  5706. <summary>设置错误信息,ApiException除外</summary>
  5707. <param name="ex">异常</param>
  5708. <param name="tag">标签</param>
  5709. </member>
  5710. <member name="M:NewLife.Log.DefaultSpan.SetTag(System.Object)">
  5711. <summary>设置数据标签。内部根据长度截断</summary>
  5712. <param name="tag">标签</param>
  5713. </member>
  5714. <member name="M:NewLife.Log.DefaultSpan.ToString">
  5715. <summary>已重载。</summary>
  5716. <returns></returns>
  5717. </member>
  5718. <member name="T:NewLife.Log.SpanExtension">
  5719. <summary>跟踪片段扩展</summary>
  5720. </member>
  5721. <member name="M:NewLife.Log.SpanExtension.Attach(NewLife.Log.ISpan,System.Net.Http.HttpRequestMessage)">
  5722. <summary>把片段信息附加到http请求头上</summary>
  5723. <param name="span">片段</param>
  5724. <param name="request">http请求</param>
  5725. <returns></returns>
  5726. </member>
  5727. <member name="M:NewLife.Log.SpanExtension.Attach(NewLife.Log.ISpan,System.Collections.Generic.IDictionary{System.String,System.String})">
  5728. <summary>把片段信息附加到http请求头上</summary>
  5729. <param name="span">片段</param>
  5730. <param name="headers">http请求头</param>
  5731. <returns></returns>
  5732. </member>
  5733. <member name="M:NewLife.Log.SpanExtension.Attach(NewLife.Log.ISpan,System.Net.WebRequest)">
  5734. <summary>把片段信息附加到http请求头上</summary>
  5735. <param name="span">片段</param>
  5736. <param name="request">http请求</param>
  5737. <returns></returns>
  5738. </member>
  5739. <member name="M:NewLife.Log.SpanExtension.Attach(NewLife.Log.ISpan,System.Object)">
  5740. <summary>把片段信息附加到api请求头上</summary>
  5741. <param name="span">片段</param>
  5742. <param name="args">api请求参数</param>
  5743. <returns></returns>
  5744. </member>
  5745. <member name="M:NewLife.Log.SpanExtension.Detach(NewLife.Log.ISpan,System.Collections.Specialized.NameValueCollection)">
  5746. <summary>从http请求头释放片段信息</summary>
  5747. <param name="span">片段</param>
  5748. <param name="headers">http请求头</param>
  5749. </member>
  5750. <member name="M:NewLife.Log.SpanExtension.Detach(NewLife.Log.ISpan,System.Collections.Generic.IDictionary{System.String,System.Object})">
  5751. <summary>从api请求释放片段信息</summary>
  5752. <param name="span">片段</param>
  5753. <param name="parameters">参数</param>
  5754. </member>
  5755. <member name="M:NewLife.Log.SpanExtension.Detach``1(NewLife.Log.ISpan,System.Collections.Generic.IDictionary{System.String,``0})">
  5756. <summary>从api请求释放片段信息</summary>
  5757. <param name="span">片段</param>
  5758. <param name="parameters">参数</param>
  5759. </member>
  5760. <member name="M:NewLife.Log.SpanExtension.Detach(NewLife.Log.ISpan,System.String)">
  5761. <summary>从数据流traceId中释放片段信息</summary>
  5762. <param name="span">片段</param>
  5763. <param name="traceId">W3C标准TraceId,可以是traceparent</param>
  5764. </member>
  5765. <member name="M:NewLife.Log.SpanExtension.AppendTag(NewLife.Log.ISpan,System.Object)">
  5766. <summary>附加Tag信息在原Tag信息后面</summary>
  5767. <param name="span">片段</param>
  5768. <param name="tag">Tag信息</param>
  5769. </member>
  5770. <member name="M:NewLife.Log.SpanExtension.AppendTag(NewLife.Log.ISpan,System.Object,System.Int64)">
  5771. <summary>附加Tag信息在原Tag信息后面</summary>
  5772. <param name="span">片段</param>
  5773. <param name="tag">Tag信息</param>
  5774. <param name="value">可累加的数值标量</param>
  5775. </member>
  5776. <member name="M:NewLife.Log.SpanExtension.AppendTag(NewLife.Log.ISpan,System.Net.Http.HttpResponseMessage)">
  5777. <summary>附加Http响应内容在原Tag信息后面</summary>
  5778. <param name="span"></param>
  5779. <param name="response"></param>
  5780. </member>
  5781. <member name="T:NewLife.Log.ISpanBuilder">
  5782. <summary>跟踪片段构建器</summary>
  5783. </member>
  5784. <member name="P:NewLife.Log.ISpanBuilder.Tracer">
  5785. <summary>跟踪器</summary>
  5786. </member>
  5787. <member name="P:NewLife.Log.ISpanBuilder.Name">
  5788. <summary>操作名</summary>
  5789. </member>
  5790. <member name="P:NewLife.Log.ISpanBuilder.StartTime">
  5791. <summary>开始时间。Unix毫秒</summary>
  5792. </member>
  5793. <member name="P:NewLife.Log.ISpanBuilder.EndTime">
  5794. <summary>结束时间。Unix毫秒</summary>
  5795. </member>
  5796. <member name="P:NewLife.Log.ISpanBuilder.Total">
  5797. <summary>采样总数</summary>
  5798. </member>
  5799. <member name="P:NewLife.Log.ISpanBuilder.Errors">
  5800. <summary>错误次数</summary>
  5801. </member>
  5802. <member name="P:NewLife.Log.ISpanBuilder.Cost">
  5803. <summary>总耗时。所有请求耗时累加,单位ms</summary>
  5804. </member>
  5805. <member name="P:NewLife.Log.ISpanBuilder.MaxCost">
  5806. <summary>最大耗时。单位ms</summary>
  5807. </member>
  5808. <member name="P:NewLife.Log.ISpanBuilder.MinCost">
  5809. <summary>最小耗时。单位ms</summary>
  5810. </member>
  5811. <member name="P:NewLife.Log.ISpanBuilder.Value">
  5812. <summary>用户数值。记录数字型标量,如每次数据库操作行数,星尘平台汇总统计</summary>
  5813. </member>
  5814. <member name="P:NewLife.Log.ISpanBuilder.Samples">
  5815. <summary>正常采样</summary>
  5816. </member>
  5817. <member name="P:NewLife.Log.ISpanBuilder.ErrorSamples">
  5818. <summary>异常采样</summary>
  5819. </member>
  5820. <member name="M:NewLife.Log.ISpanBuilder.Start">
  5821. <summary>开始一个Span</summary>
  5822. <returns></returns>
  5823. </member>
  5824. <member name="M:NewLife.Log.ISpanBuilder.Finish(NewLife.Log.ISpan)">
  5825. <summary>完成Span</summary>
  5826. <param name="span"></param>
  5827. </member>
  5828. <member name="T:NewLife.Log.DefaultSpanBuilder">
  5829. <summary>跟踪片段构建器</summary>
  5830. </member>
  5831. <member name="P:NewLife.Log.DefaultSpanBuilder.Tracer">
  5832. <summary>跟踪器</summary>
  5833. </member>
  5834. <member name="P:NewLife.Log.DefaultSpanBuilder.Name">
  5835. <summary>操作名</summary>
  5836. </member>
  5837. <member name="P:NewLife.Log.DefaultSpanBuilder.StartTime">
  5838. <summary>开始时间。Unix毫秒</summary>
  5839. </member>
  5840. <member name="P:NewLife.Log.DefaultSpanBuilder.EndTime">
  5841. <summary>结束时间。Unix毫秒</summary>
  5842. </member>
  5843. <member name="P:NewLife.Log.DefaultSpanBuilder.Total">
  5844. <summary>采样总数</summary>
  5845. </member>
  5846. <member name="P:NewLife.Log.DefaultSpanBuilder.Errors">
  5847. <summary>错误次数</summary>
  5848. </member>
  5849. <member name="P:NewLife.Log.DefaultSpanBuilder.Cost">
  5850. <summary>总耗时。所有请求耗时累加,单位ms</summary>
  5851. </member>
  5852. <member name="P:NewLife.Log.DefaultSpanBuilder.MaxCost">
  5853. <summary>最大耗时。单位ms</summary>
  5854. </member>
  5855. <member name="P:NewLife.Log.DefaultSpanBuilder.MinCost">
  5856. <summary>最小耗时。单位ms</summary>
  5857. </member>
  5858. <member name="P:NewLife.Log.DefaultSpanBuilder.Value">
  5859. <summary>用户数值。记录数字型标量,如每次数据库操作行数,星尘平台汇总统计</summary>
  5860. </member>
  5861. <member name="P:NewLife.Log.DefaultSpanBuilder.Samples">
  5862. <summary>正常采样</summary>
  5863. </member>
  5864. <member name="P:NewLife.Log.DefaultSpanBuilder.ErrorSamples">
  5865. <summary>异常采样</summary>
  5866. </member>
  5867. <member name="M:NewLife.Log.DefaultSpanBuilder.#ctor">
  5868. <summary>实例化</summary>
  5869. </member>
  5870. <member name="M:NewLife.Log.DefaultSpanBuilder.#ctor(NewLife.Log.ITracer,System.String)">
  5871. <summary>实例化</summary>
  5872. <param name="tracer"></param>
  5873. <param name="name"></param>
  5874. </member>
  5875. <member name="M:NewLife.Log.DefaultSpanBuilder.Start">
  5876. <summary>开始一个Span,开始计时</summary>
  5877. <returns></returns>
  5878. </member>
  5879. <member name="M:NewLife.Log.DefaultSpanBuilder.Finish(NewLife.Log.ISpan)">
  5880. <summary>完成Span,每一个埋点结束都进入这里</summary>
  5881. <param name="span"></param>
  5882. </member>
  5883. <member name="M:NewLife.Log.DefaultSpanBuilder.ToString">
  5884. <summary>已重载。</summary>
  5885. <returns></returns>
  5886. </member>
  5887. <member name="T:NewLife.Log.ITracer">
  5888. <summary>性能跟踪器。轻量级APM</summary>
  5889. </member>
  5890. <member name="P:NewLife.Log.ITracer.Period">
  5891. <summary>采样周期</summary>
  5892. </member>
  5893. <member name="P:NewLife.Log.ITracer.MaxSamples">
  5894. <summary>最大正常采样数。采样周期内,最多只记录指定数量的正常事件,用于绘制依赖关系</summary>
  5895. </member>
  5896. <member name="P:NewLife.Log.ITracer.MaxErrors">
  5897. <summary>最大异常采样数。采样周期内,最多只记录指定数量的异常事件,默认10</summary>
  5898. </member>
  5899. <member name="P:NewLife.Log.ITracer.Timeout">
  5900. <summary>超时时间。超过该时间时强制采样,毫秒</summary>
  5901. </member>
  5902. <member name="P:NewLife.Log.ITracer.MaxTagLength">
  5903. <summary>最大标签长度。超过该长度时将截断,默认1024字符</summary>
  5904. </member>
  5905. <member name="P:NewLife.Log.ITracer.AttachParameter">
  5906. <summary>向http/rpc请求注入TraceId的参数名,为空表示不注入,默认W3C标准的traceparent</summary>
  5907. </member>
  5908. <member name="M:NewLife.Log.ITracer.BuildSpan(System.String)">
  5909. <summary>建立Span构建器</summary>
  5910. <param name="name"></param>
  5911. <returns></returns>
  5912. </member>
  5913. <member name="M:NewLife.Log.ITracer.NewSpan(System.String)">
  5914. <summary>开始一个Span</summary>
  5915. <param name="name">操作名</param>
  5916. <returns></returns>
  5917. </member>
  5918. <member name="M:NewLife.Log.ITracer.NewSpan(System.String,System.Object)">
  5919. <summary>开始一个Span,指定数据标签</summary>
  5920. <param name="name">操作名</param>
  5921. <param name="tag">数据</param>
  5922. <returns></returns>
  5923. </member>
  5924. <member name="M:NewLife.Log.ITracer.TakeAll">
  5925. <summary>截断所有Span构建器数据,重置集合</summary>
  5926. <returns></returns>
  5927. </member>
  5928. <member name="T:NewLife.Log.DefaultTracer">
  5929. <summary>性能跟踪器。轻量级APM</summary>
  5930. </member>
  5931. <member name="P:NewLife.Log.DefaultTracer.Instance">
  5932. <summary>全局实例。可影响X组件各模块的跟踪器</summary>
  5933. </member>
  5934. <member name="P:NewLife.Log.DefaultTracer.Period">
  5935. <summary>采样周期。默认15s</summary>
  5936. </member>
  5937. <member name="P:NewLife.Log.DefaultTracer.MaxSamples">
  5938. <summary>最大正常采样数。采样周期内,最多只记录指定数量的正常事件,用于绘制依赖关系</summary>
  5939. </member>
  5940. <member name="P:NewLife.Log.DefaultTracer.MaxErrors">
  5941. <summary>最大异常采样数。采样周期内,最多只记录指定数量的异常事件,默认10</summary>
  5942. </member>
  5943. <member name="P:NewLife.Log.DefaultTracer.Timeout">
  5944. <summary>超时时间。超过该时间时强制采样,默认15000毫秒</summary>
  5945. </member>
  5946. <member name="P:NewLife.Log.DefaultTracer.MaxTagLength">
  5947. <summary>最大标签长度。超过该长度时将截断,默认1024字符</summary>
  5948. </member>
  5949. <member name="P:NewLife.Log.DefaultTracer.AttachParameter">
  5950. <summary>向http/rpc请求注入TraceId的参数名,为空表示不注入,默认是W3C标准的traceparent</summary>
  5951. </member>
  5952. <member name="F:NewLife.Log.DefaultTracer._builders">
  5953. <summary>Span构建器集合</summary>
  5954. </member>
  5955. <member name="F:NewLife.Log.DefaultTracer._timer">
  5956. <summary>采样定时器</summary>
  5957. </member>
  5958. <member name="M:NewLife.Log.DefaultTracer.#ctor">
  5959. <summary>实例化</summary>
  5960. </member>
  5961. <member name="M:NewLife.Log.DefaultTracer.Dispose(System.Boolean)">
  5962. <summary>销毁</summary>
  5963. <param name="disposing"></param>
  5964. </member>
  5965. <member name="M:NewLife.Log.DefaultTracer.ProcessSpans(NewLife.Log.ISpanBuilder[])">
  5966. <summary>处理Span集合。默认输出日志,可重定义输出控制台</summary>
  5967. </member>
  5968. <member name="M:NewLife.Log.DefaultTracer.BuildSpan(System.String)">
  5969. <summary>建立Span构建器</summary>
  5970. <param name="name"></param>
  5971. <returns></returns>
  5972. </member>
  5973. <member name="M:NewLife.Log.DefaultTracer.OnBuildSpan(System.String)">
  5974. <summary>实例化Span构建器</summary>
  5975. <param name="name"></param>
  5976. <returns></returns>
  5977. </member>
  5978. <member name="M:NewLife.Log.DefaultTracer.NewSpan(System.String)">
  5979. <summary>开始一个Span</summary>
  5980. <param name="name">操作名</param>
  5981. <returns></returns>
  5982. </member>
  5983. <member name="M:NewLife.Log.DefaultTracer.NewSpan(System.String,System.Object)">
  5984. <summary>开始一个Span,指定数据标签</summary>
  5985. <param name="name">操作名</param>
  5986. <param name="tag">数据</param>
  5987. <returns></returns>
  5988. </member>
  5989. <member name="M:NewLife.Log.DefaultTracer.TakeAll">
  5990. <summary>截断所有Span构建器数据,重置集合</summary>
  5991. <returns></returns>
  5992. </member>
  5993. <member name="P:NewLife.Log.DefaultTracer.Log">
  5994. <summary>日志</summary>
  5995. </member>
  5996. <member name="M:NewLife.Log.DefaultTracer.WriteLog(System.String,System.Object[])">
  5997. <summary>写日志</summary>
  5998. <param name="format"></param>
  5999. <param name="args"></param>
  6000. </member>
  6001. <member name="T:NewLife.Log.TracerExtension">
  6002. <summary>跟踪扩展</summary>
  6003. </member>
  6004. <member name="M:NewLife.Log.TracerExtension.CreateHttpClient(NewLife.Log.ITracer,System.Net.Http.HttpMessageHandler)">
  6005. <summary>创建受跟踪的HttpClient</summary>
  6006. <param name="tracer">跟踪器</param>
  6007. <param name="handler">http处理器</param>
  6008. <returns></returns>
  6009. </member>
  6010. <member name="M:NewLife.Log.TracerExtension.NewSpan(NewLife.Log.ITracer,System.String,System.Object,System.Int64)">
  6011. <summary>开始一个Span,指定数据标签和用户数值</summary>
  6012. <param name="tracer">跟踪器</param>
  6013. <param name="name">操作名</param>
  6014. <param name="tag">数据</param>
  6015. <param name="value">用户数值。星尘平台汇总统计</param>
  6016. <returns></returns>
  6017. </member>
  6018. <member name="M:NewLife.Log.TracerExtension.NewSpan(NewLife.Log.ITracer,System.Net.Http.HttpRequestMessage)">
  6019. <summary>为Http请求创建Span</summary>
  6020. <param name="tracer">跟踪器</param>
  6021. <param name="request">Http请求</param>
  6022. <returns></returns>
  6023. </member>
  6024. <member name="F:NewLife.Log.TracerExtension._TagTypes">
  6025. <summary>支持作为标签数据的内容类型</summary>
  6026. </member>
  6027. <member name="M:NewLife.Log.TracerExtension.NewSpan(NewLife.Log.ITracer,System.Net.WebRequest)">
  6028. <summary>为Http请求创建Span</summary>
  6029. <param name="tracer">跟踪器</param>
  6030. <param name="request">Http请求</param>
  6031. <returns></returns>
  6032. </member>
  6033. <member name="M:NewLife.Log.TracerExtension.NewError(NewLife.Log.ITracer,System.String,System.Object)">
  6034. <summary>直接创建错误Span</summary>
  6035. <param name="tracer">跟踪器</param>
  6036. <param name="name">操作名</param>
  6037. <param name="error">Exception 异常对象,或错误信息</param>
  6038. <returns></returns>
  6039. </member>
  6040. <member name="M:NewLife.Log.TracerExtension.NewError(NewLife.Log.ITracer,System.String,System.Object,System.Object)">
  6041. <summary>直接创建错误Span</summary>
  6042. <param name="tracer">跟踪器</param>
  6043. <param name="name">操作名</param>
  6044. <param name="error">Exception 异常对象,或错误信息</param>
  6045. <param name="tag">数据标签</param>
  6046. <returns></returns>
  6047. </member>
  6048. <member name="T:NewLife.Log.ITracerFeature">
  6049. <summary>日志功能接口</summary>
  6050. </member>
  6051. <member name="P:NewLife.Log.ITracerFeature.Tracer">
  6052. <summary>性能追踪</summary>
  6053. </member>
  6054. <member name="T:NewLife.Log.LevelLog">
  6055. <summary>等级日志提供者,不同等级分不同日志输出</summary>
  6056. </member>
  6057. <member name="M:NewLife.Log.LevelLog.#ctor(System.String,System.String)">
  6058. <summary>通过指定路径和文件格式来实例化等级日志,每个等级使用自己的日志输出</summary>
  6059. <param name="logPath"></param>
  6060. <param name="fileFormat"></param>
  6061. </member>
  6062. <member name="M:NewLife.Log.LevelLog.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  6063. <summary>写日志</summary>
  6064. <param name="level"></param>
  6065. <param name="format"></param>
  6066. <param name="args"></param>
  6067. </member>
  6068. <member name="T:NewLife.Log.LogEventListener">
  6069. <summary>日志事件监听器。用于监听内置事件并写入日志</summary>
  6070. </member>
  6071. <member name="M:NewLife.Log.LogEventListener.#ctor(System.String[])">
  6072. <summary>实例化</summary>
  6073. <param name="sources"></param>
  6074. </member>
  6075. <member name="M:NewLife.Log.LogEventListener.OnEventSourceCreated(System.Diagnostics.Tracing.EventSource)">
  6076. <summary>创建事件源。此时决定要不要跟踪</summary>
  6077. <param name="eventSource"></param>
  6078. </member>
  6079. <member name="M:NewLife.Log.LogEventListener.OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs)">
  6080. <summary>写入事件。监听器拦截,并写入日志</summary>
  6081. <param name="eventData"></param>
  6082. </member>
  6083. <member name="T:NewLife.Log.Logger">
  6084. <summary>日志基类。提供日志的基本实现</summary>
  6085. </member>
  6086. <member name="M:NewLife.Log.Logger.Debug(System.String,System.Object[])">
  6087. <summary>调试日志</summary>
  6088. <param name="format">格式化字符串</param>
  6089. <param name="args">格式化参数</param>
  6090. </member>
  6091. <member name="M:NewLife.Log.Logger.Info(System.String,System.Object[])">
  6092. <summary>信息日志</summary>
  6093. <param name="format">格式化字符串</param>
  6094. <param name="args">格式化参数</param>
  6095. </member>
  6096. <member name="M:NewLife.Log.Logger.Warn(System.String,System.Object[])">
  6097. <summary>警告日志</summary>
  6098. <param name="format">格式化字符串</param>
  6099. <param name="args">格式化参数</param>
  6100. </member>
  6101. <member name="M:NewLife.Log.Logger.Error(System.String,System.Object[])">
  6102. <summary>错误日志</summary>
  6103. <param name="format">格式化字符串</param>
  6104. <param name="args">格式化参数</param>
  6105. </member>
  6106. <member name="M:NewLife.Log.Logger.Fatal(System.String,System.Object[])">
  6107. <summary>严重错误日志</summary>
  6108. <param name="format">格式化字符串</param>
  6109. <param name="args">格式化参数</param>
  6110. </member>
  6111. <member name="M:NewLife.Log.Logger.Write(NewLife.Log.LogLevel,System.String,System.Object[])">
  6112. <summary>写日志</summary>
  6113. <param name="level"></param>
  6114. <param name="format"></param>
  6115. <param name="args"></param>
  6116. </member>
  6117. <member name="M:NewLife.Log.Logger.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  6118. <summary>写日志</summary>
  6119. <param name="level"></param>
  6120. <param name="format"></param>
  6121. <param name="args"></param>
  6122. </member>
  6123. <member name="M:NewLife.Log.Logger.Format(System.String,System.Object[])">
  6124. <summary>格式化参数,特殊处理异常和时间</summary>
  6125. <param name="format"></param>
  6126. <param name="args"></param>
  6127. <returns></returns>
  6128. </member>
  6129. <member name="P:NewLife.Log.Logger.Enable">
  6130. <summary>是否启用日志。默认true</summary>
  6131. </member>
  6132. <member name="P:NewLife.Log.Logger.Level">
  6133. <summary>日志等级,只输出大于等于该级别的日志,默认Info</summary>
  6134. </member>
  6135. <member name="P:NewLife.Log.Logger.Null">
  6136. <summary>空日志实现</summary>
  6137. </member>
  6138. <member name="M:NewLife.Log.Logger.GetHead">
  6139. <summary>输出日志头,包含所有环境信息</summary>
  6140. </member>
  6141. <member name="T:NewLife.Log.LogLevel">
  6142. <summary>日志等级</summary>
  6143. </member>
  6144. <member name="F:NewLife.Log.LogLevel.All">
  6145. <summary>打开所有日志记录</summary>
  6146. </member>
  6147. <member name="F:NewLife.Log.LogLevel.Debug">
  6148. <summary>最低调试。细粒度信息事件对调试应用程序非常有帮助</summary>
  6149. </member>
  6150. <member name="F:NewLife.Log.LogLevel.Info">
  6151. <summary>普通消息。在粗粒度级别上突出强调应用程序的运行过程</summary>
  6152. </member>
  6153. <member name="F:NewLife.Log.LogLevel.Warn">
  6154. <summary>警告</summary>
  6155. </member>
  6156. <member name="F:NewLife.Log.LogLevel.Error">
  6157. <summary>错误</summary>
  6158. </member>
  6159. <member name="F:NewLife.Log.LogLevel.Fatal">
  6160. <summary>严重错误</summary>
  6161. </member>
  6162. <member name="F:NewLife.Log.LogLevel.Off">
  6163. <summary>关闭所有日志记录</summary>
  6164. </member>
  6165. <member name="T:NewLife.Log.NetworkLog">
  6166. <summary>网络日志</summary>
  6167. </member>
  6168. <member name="P:NewLife.Log.NetworkLog.Server">
  6169. <summary>服务端</summary>
  6170. </member>
  6171. <member name="P:NewLife.Log.NetworkLog.AppId">
  6172. <summary>应用标识</summary>
  6173. </member>
  6174. <member name="P:NewLife.Log.NetworkLog.ClientId">
  6175. <summary>客户端标识</summary>
  6176. </member>
  6177. <member name="M:NewLife.Log.NetworkLog.#ctor">
  6178. <summary>实例化网络日志。默认广播到514端口</summary>
  6179. </member>
  6180. <member name="M:NewLife.Log.NetworkLog.#ctor(System.String)">
  6181. <summary>指定日志服务器地址来实例化网络日志</summary>
  6182. <param name="server"></param>
  6183. </member>
  6184. <member name="M:NewLife.Log.NetworkLog.Dispose">
  6185. <summary>销毁</summary>
  6186. </member>
  6187. <member name="M:NewLife.Log.NetworkLog.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  6188. <summary>写日志</summary>
  6189. <param name="level"></param>
  6190. <param name="format"></param>
  6191. <param name="args"></param>
  6192. </member>
  6193. <member name="T:NewLife.Log.PerfCounter">
  6194. <summary>性能计数器。次数、TPS、平均耗时</summary>
  6195. </member>
  6196. <member name="P:NewLife.Log.PerfCounter.Enable">
  6197. <summary>是否启用。默认true</summary>
  6198. </member>
  6199. <member name="P:NewLife.Log.PerfCounter.Value">
  6200. <summary>数值</summary>
  6201. </member>
  6202. <member name="P:NewLife.Log.PerfCounter.Times">
  6203. <summary>次数</summary>
  6204. </member>
  6205. <member name="F:NewLife.Log.PerfCounter._TotalCost">
  6206. <summary>耗时,单位us</summary>
  6207. </member>
  6208. <member name="M:NewLife.Log.PerfCounter.Dispose(System.Boolean)">
  6209. <summary>销毁</summary>
  6210. <param name="disposing"></param>
  6211. </member>
  6212. <member name="M:NewLife.Log.PerfCounter.Increment(System.Int64,System.Int64)">
  6213. <summary>增加</summary>
  6214. <param name="value">增加的数量</param>
  6215. <param name="usCost">耗时,单位us</param>
  6216. </member>
  6217. <member name="P:NewLife.Log.PerfCounter.Interval">
  6218. <summary>采样间隔,默认1000毫秒</summary>
  6219. </member>
  6220. <member name="P:NewLife.Log.PerfCounter.Duration">
  6221. <summary>持续采样时间,默认60秒</summary>
  6222. </member>
  6223. <member name="P:NewLife.Log.PerfCounter.Speed">
  6224. <summary>当前速度</summary>
  6225. </member>
  6226. <member name="P:NewLife.Log.PerfCounter.MaxSpeed">
  6227. <summary>最大速度</summary>
  6228. </member>
  6229. <member name="P:NewLife.Log.PerfCounter.Cost">
  6230. <summary>最后一个采样周期的平均耗时,单位us</summary>
  6231. </member>
  6232. <member name="P:NewLife.Log.PerfCounter.MaxCost">
  6233. <summary>持续采样时间内的最大平均耗时,单位us</summary>
  6234. </member>
  6235. <member name="M:NewLife.Log.PerfCounter.DoWork(System.Object)">
  6236. <summary>定期采样,保存最近60组到数组队列里面</summary>
  6237. <param name="state"></param>
  6238. </member>
  6239. <member name="M:NewLife.Log.PerfCounter.ToString">
  6240. <summary>已重载。输出统计信息</summary>
  6241. <returns></returns>
  6242. </member>
  6243. <member name="T:NewLife.Log.TextControlLog">
  6244. <summary>文本控件输出日志</summary>
  6245. </member>
  6246. <member name="P:NewLife.Log.TextControlLog.Control">
  6247. <summary>文本控件</summary>
  6248. </member>
  6249. <member name="P:NewLife.Log.TextControlLog.MaxLines">
  6250. <summary>最大行数,超过该行数讲清空文本控件。默认1000行</summary>
  6251. </member>
  6252. <member name="M:NewLife.Log.TextControlLog.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  6253. <summary>写日志</summary>
  6254. <param name="level"></param>
  6255. <param name="format"></param>
  6256. <param name="args"></param>
  6257. </member>
  6258. <member name="M:NewLife.Log.TextControlLog.WriteLog(System.Windows.Forms.Control,System.String,System.Int32)">
  6259. <summary>在WinForm控件上输出日志,主要考虑非UI线程操作</summary>
  6260. <remarks>不是常用功能,为了避免干扰常用功能,保持UseWinForm开头</remarks>
  6261. <param name="control">要绑定日志输出的WinForm控件</param>
  6262. <param name="msg">日志</param>
  6263. <param name="maxLines">最大行数</param>
  6264. </member>
  6265. <member name="T:NewLife.Log.TextFileLog">
  6266. <summary>文本文件日志类。提供向文本文件写日志的能力</summary>
  6267. <remarks>
  6268. 两大用法:
  6269. 1,Create(path, fileFormat) 指定日志目录和文件名格式
  6270. 2,CreateFile(path) 指定文件,一直往里面写
  6271. 2015-06-01 为了继承TextFileLog,增加了无参构造函数,修改了异步写日志方法为虚方法,可以进行重载
  6272. </remarks>
  6273. </member>
  6274. <member name="P:NewLife.Log.TextFileLog.LogPath">
  6275. <summary>日志目录</summary>
  6276. </member>
  6277. <member name="P:NewLife.Log.TextFileLog.FileFormat">
  6278. <summary>日志文件格式。默认{0:yyyy_MM_dd}.log</summary>
  6279. </member>
  6280. <member name="P:NewLife.Log.TextFileLog.MaxBytes">
  6281. <summary>日志文件上限。超过上限后拆分新日志文件,默认10MB,0表示不限制大小</summary>
  6282. </member>
  6283. <member name="P:NewLife.Log.TextFileLog.Backups">
  6284. <summary>日志文件备份。超过备份数后,最旧的文件将被删除,默认100,0表示不限制个数</summary>
  6285. </member>
  6286. <member name="F:NewLife.Log.TextFileLog._isFirst">
  6287. <summary>是否当前进程的第一次写日志</summary>
  6288. </member>
  6289. <member name="M:NewLife.Log.TextFileLog.#ctor">
  6290. <summary>该构造函数没有作用,为了继承而设置</summary>
  6291. </member>
  6292. <member name="M:NewLife.Log.TextFileLog.Create(System.String,System.String)">
  6293. <summary>每个目录的日志实例应该只有一个,所以采用静态创建</summary>
  6294. <param name="path">日志目录或日志文件路径</param>
  6295. <param name="fileFormat"></param>
  6296. <returns></returns>
  6297. </member>
  6298. <member name="M:NewLife.Log.TextFileLog.CreateFile(System.String)">
  6299. <summary>每个目录的日志实例应该只有一个,所以采用静态创建</summary>
  6300. <param name="path">日志目录或日志文件路径</param>
  6301. <returns></returns>
  6302. </member>
  6303. <member name="M:NewLife.Log.TextFileLog.Dispose">
  6304. <summary>销毁</summary>
  6305. </member>
  6306. <member name="M:NewLife.Log.TextFileLog.Dispose(System.Boolean)">
  6307. <summary>销毁</summary>
  6308. <param name="disposing"></param>
  6309. </member>
  6310. <member name="M:NewLife.Log.TextFileLog.InitLog(System.String)">
  6311. <summary>初始化日志记录文件</summary>
  6312. </member>
  6313. <member name="M:NewLife.Log.TextFileLog.GetLogFile">
  6314. <summary>获取日志文件路径</summary>
  6315. <returns></returns>
  6316. </member>
  6317. <member name="M:NewLife.Log.TextFileLog.WriteFile">
  6318. <summary>写文件</summary>
  6319. </member>
  6320. <member name="M:NewLife.Log.TextFileLog.DoWriteAndClose(System.Object)">
  6321. <summary>关闭文件</summary>
  6322. </member>
  6323. <member name="M:NewLife.Log.TextFileLog.WriteAndClose(System.DateTime)">
  6324. <summary>写入队列日志并关闭文件</summary>
  6325. </member>
  6326. <member name="M:NewLife.Log.TextFileLog.OnWrite(NewLife.Log.LogLevel,System.String,System.Object[])">
  6327. <summary>写日志</summary>
  6328. <param name="level"></param>
  6329. <param name="format"></param>
  6330. <param name="args"></param>
  6331. </member>
  6332. <member name="M:NewLife.Log.TextFileLog.ToString">
  6333. <summary>已重载。</summary>
  6334. <returns></returns>
  6335. </member>
  6336. <member name="T:NewLife.Log.WriteLogEventArgs">
  6337. <summary>写日志事件参数</summary>
  6338. </member>
  6339. <member name="P:NewLife.Log.WriteLogEventArgs.Level">
  6340. <summary>日志等级</summary>
  6341. </member>
  6342. <member name="P:NewLife.Log.WriteLogEventArgs.Message">
  6343. <summary>日志信息</summary>
  6344. </member>
  6345. <member name="P:NewLife.Log.WriteLogEventArgs.Exception">
  6346. <summary>异常</summary>
  6347. </member>
  6348. <member name="P:NewLife.Log.WriteLogEventArgs.Time">
  6349. <summary>时间</summary>
  6350. </member>
  6351. <member name="P:NewLife.Log.WriteLogEventArgs.ThreadID">
  6352. <summary>线程编号</summary>
  6353. </member>
  6354. <member name="P:NewLife.Log.WriteLogEventArgs.IsPool">
  6355. <summary>是否线程池线程</summary>
  6356. </member>
  6357. <member name="P:NewLife.Log.WriteLogEventArgs.IsWeb">
  6358. <summary>是否Web线程</summary>
  6359. </member>
  6360. <member name="P:NewLife.Log.WriteLogEventArgs.ThreadName">
  6361. <summary>线程名</summary>
  6362. </member>
  6363. <member name="P:NewLife.Log.WriteLogEventArgs.TaskID">
  6364. <summary>任务编号</summary>
  6365. </member>
  6366. <member name="M:NewLife.Log.WriteLogEventArgs.#ctor">
  6367. <summary>实例化一个日志事件参数</summary>
  6368. </member>
  6369. <member name="P:NewLife.Log.WriteLogEventArgs.Current">
  6370. <summary>线程专有实例。线程静态,每个线程只用一个,避免GC浪费</summary>
  6371. </member>
  6372. <member name="M:NewLife.Log.WriteLogEventArgs.Set(NewLife.Log.LogLevel)">
  6373. <summary>初始化为新日志</summary>
  6374. <param name="level">日志等级</param>
  6375. <returns>返回自身,链式写法</returns>
  6376. </member>
  6377. <member name="M:NewLife.Log.WriteLogEventArgs.Set(System.String,System.Exception)">
  6378. <summary>初始化为新日志</summary>
  6379. <param name="message">日志</param>
  6380. <param name="exception">异常</param>
  6381. <returns>返回自身,链式写法</returns>
  6382. </member>
  6383. <member name="M:NewLife.Log.WriteLogEventArgs.Reset">
  6384. <summary>重置日志事件对象,释放内存</summary>
  6385. </member>
  6386. <member name="M:NewLife.Log.WriteLogEventArgs.GetAndReset">
  6387. <summary>获取日志全文,并重置对象释放内存</summary>
  6388. <returns></returns>
  6389. </member>
  6390. <member name="M:NewLife.Log.WriteLogEventArgs.ToString">
  6391. <summary>已重载。</summary>
  6392. <returns></returns>
  6393. </member>
  6394. <member name="P:NewLife.Log.WriteLogEventArgs.CurrentThreadName">
  6395. <summary>设置当前线程输出日志时的线程名</summary>
  6396. </member>
  6397. <member name="T:NewLife.Log.XTrace">
  6398. <summary>日志类,包含跟踪调试功能</summary>
  6399. <remarks>
  6400. 文档 https://newlifex.com/core/log
  6401. 该静态类包括写日志、写调用栈和Dump进程内存等调试功能。
  6402. 默认写日志到文本文件,可通过修改<see cref="P:NewLife.Log.XTrace.Log"/>属性来增加日志输出方式。
  6403. 对于控制台工程,可以直接通过UseConsole方法,把日志输出重定向为控制台输出,并且可以为不同线程使用不同颜色。
  6404. </remarks>
  6405. </member>
  6406. <member name="F:NewLife.Log.XTrace._Log">
  6407. <summary>文本文件日志</summary>
  6408. </member>
  6409. <member name="P:NewLife.Log.XTrace.Log">
  6410. <summary>日志提供者,默认使用文本文件日志</summary>
  6411. </member>
  6412. <member name="M:NewLife.Log.XTrace.WriteLine(System.String)">
  6413. <summary>输出日志</summary>
  6414. <param name="msg">信息</param>
  6415. </member>
  6416. <member name="M:NewLife.Log.XTrace.WriteLine(System.String,System.Object[])">
  6417. <summary>写日志</summary>
  6418. <param name="format"></param>
  6419. <param name="args"></param>
  6420. </member>
  6421. <member name="M:NewLife.Log.XTrace.WriteException(System.Exception)">
  6422. <summary>输出异常日志</summary>
  6423. <param name="ex">异常信息</param>
  6424. </member>
  6425. <member name="M:NewLife.Log.XTrace.InitLog">
  6426. <summary>
  6427. 2012.11.05 修正初次调用的时候,由于同步BUG,导致Log为空的问题。
  6428. </summary>
  6429. </member>
  6430. <member name="M:NewLife.Log.XTrace.UseConsole(System.Boolean,System.Boolean)">
  6431. <summary>使用控制台输出日志,只能调用一次</summary>
  6432. <param name="useColor">是否使用颜色,默认使用</param>
  6433. <param name="useFileLog">是否同时使用文件日志,默认使用</param>
  6434. </member>
  6435. <member name="M:NewLife.Log.XTrace.DisableConsoleEdit">
  6436. <summary>
  6437. 禁用控制台快捷编辑,在UseConsole方法之后调用
  6438. </summary>
  6439. </member>
  6440. <member name="M:NewLife.Log.XTrace.DisableConsoleCloseButton(System.String)">
  6441. <summary>
  6442. 禁用控制台关闭按钮
  6443. </summary>
  6444. <param name="consoleTitle">控制台程序名称,可使用Console.Title动态设置的值</param>
  6445. </member>
  6446. <member name="M:NewLife.Log.XTrace.UseWinForm(System.Boolean)">
  6447. <summary>拦截WinForm异常并记录日志,可指定是否用<see cref="T:System.Windows.Forms.MessageBox"/>显示。</summary>
  6448. <param name="showErrorMessage">发为捕获异常时,是否显示提示,默认显示</param>
  6449. </member>
  6450. <member name="M:NewLife.Log.XTrace.UseWinFormControl(System.Windows.Forms.Control,System.Boolean,System.Int32)">
  6451. <summary>在WinForm控件上输出日志,主要考虑非UI线程操作</summary>
  6452. <remarks>不是常用功能,为了避免干扰常用功能,保持UseWinForm开头</remarks>
  6453. <param name="control">要绑定日志输出的WinForm控件</param>
  6454. <param name="useFileLog">是否同时使用文件日志,默认使用</param>
  6455. <param name="maxLines">最大行数</param>
  6456. </member>
  6457. <member name="M:NewLife.Log.XTrace.Combine(System.Windows.Forms.Control,NewLife.Log.ILog,System.Int32)">
  6458. <summary>控件绑定到日志,生成混合日志</summary>
  6459. <param name="control"></param>
  6460. <param name="log"></param>
  6461. <param name="maxLines"></param>
  6462. <returns></returns>
  6463. </member>
  6464. <member name="P:NewLife.Log.XTrace.Debug">
  6465. <summary>是否调试。</summary>
  6466. </member>
  6467. <member name="P:NewLife.Log.XTrace.LogPath">
  6468. <summary>文本日志目录</summary>
  6469. </member>
  6470. <member name="M:NewLife.Log.XTrace.WriteVersion">
  6471. <summary>输出核心库和启动程序的版本号</summary>
  6472. </member>
  6473. <member name="M:NewLife.Log.XTrace.WriteVersion(System.Reflection.Assembly)">
  6474. <summary>输出程序集版本</summary>
  6475. <param name="asm"></param>
  6476. </member>
  6477. <member name="T:NewLife.Messaging.DataKinds">
  6478. <summary>数据类型。可用于标准消息的Flag</summary>
  6479. </member>
  6480. <member name="F:NewLife.Messaging.DataKinds.String">
  6481. <summary>字符串</summary>
  6482. </member>
  6483. <member name="F:NewLife.Messaging.DataKinds.Packet">
  6484. <summary>二进制数据包</summary>
  6485. </member>
  6486. <member name="F:NewLife.Messaging.DataKinds.Binary">
  6487. <summary>二进制对象</summary>
  6488. </member>
  6489. <member name="F:NewLife.Messaging.DataKinds.Json">
  6490. <summary>Json对象</summary>
  6491. </member>
  6492. <member name="T:NewLife.Messaging.DefaultMessage">
  6493. <summary>标准消息SRMP</summary>
  6494. <remarks>
  6495. 标准协议最大优势是短小,头部定长,没有序列化成本,适用于专业级RPC以及嵌入式通信。
  6496. 缺点是可读性差,不能适用于字符串通信场景。
  6497. 标准网络封包协议:1 Flag + 1 Sequence + 2 Length + N Payload
  6498. 1个字节标识位,标识请求、响应、错误等;
  6499. 1个字节序列号,用于请求响应包配对;
  6500. 2个字节数据长度N,小端,指示后续负载数据长度(不包含头部4个字节),解决粘包问题;
  6501. N个字节负载数据,数据内容完全由业务决定,最大长度65535=64k。
  6502. 如:
  6503. Open => OK
  6504. 01-01-04-00-"Open" => 81-01-02-00-"OK"
  6505. Length为0xFFFF时,后续4字节为正式长度,以支持超过64k的扩展包
  6506. </remarks>
  6507. </member>
  6508. <member name="P:NewLife.Messaging.DefaultMessage.Flag">
  6509. <summary>标记位。可用于标识消息数据类型DataKinds(非强制),内置0标识字符串,默认1标识二进制</summary>
  6510. </member>
  6511. <member name="P:NewLife.Messaging.DefaultMessage.Sequence">
  6512. <summary>序列号,匹配请求和响应</summary>
  6513. </member>
  6514. <member name="F:NewLife.Messaging.DefaultMessage._raw">
  6515. <summary>解析数据时的原始报文</summary>
  6516. </member>
  6517. <member name="M:NewLife.Messaging.DefaultMessage.CreateReply">
  6518. <summary>根据请求创建配对的响应消息</summary>
  6519. <returns></returns>
  6520. </member>
  6521. <member name="M:NewLife.Messaging.DefaultMessage.Read(NewLife.Data.Packet)">
  6522. <summary>从数据包中读取消息</summary>
  6523. <param name="pk"></param>
  6524. <returns>是否成功</returns>
  6525. </member>
  6526. <member name="M:NewLife.Messaging.DefaultMessage.ToPacket">
  6527. <summary>把消息转为封包</summary>
  6528. <returns></returns>
  6529. </member>
  6530. <member name="M:NewLife.Messaging.DefaultMessage.GetLength(NewLife.Data.Packet)">
  6531. <summary>获取数据包长度</summary>
  6532. <param name="pk"></param>
  6533. <returns></returns>
  6534. </member>
  6535. <member name="M:NewLife.Messaging.DefaultMessage.GetRaw">
  6536. <summary>获取解析数据时的原始报文</summary>
  6537. <returns></returns>
  6538. </member>
  6539. <member name="M:NewLife.Messaging.DefaultMessage.ToString">
  6540. <summary>消息摘要</summary>
  6541. <returns></returns>
  6542. </member>
  6543. <member name="T:NewLife.Messaging.IMessage">
  6544. <summary>消息命令</summary>
  6545. </member>
  6546. <member name="P:NewLife.Messaging.IMessage.Reply">
  6547. <summary>是否响应</summary>
  6548. </member>
  6549. <member name="P:NewLife.Messaging.IMessage.Error">
  6550. <summary>是否有错</summary>
  6551. </member>
  6552. <member name="P:NewLife.Messaging.IMessage.OneWay">
  6553. <summary>单向请求</summary>
  6554. </member>
  6555. <member name="P:NewLife.Messaging.IMessage.Payload">
  6556. <summary>负载数据</summary>
  6557. </member>
  6558. <member name="M:NewLife.Messaging.IMessage.CreateReply">
  6559. <summary>根据请求创建配对的响应消息</summary>
  6560. <returns></returns>
  6561. </member>
  6562. <member name="M:NewLife.Messaging.IMessage.Read(NewLife.Data.Packet)">
  6563. <summary>从数据包中读取消息</summary>
  6564. <param name="pk"></param>
  6565. <returns>是否成功</returns>
  6566. </member>
  6567. <member name="M:NewLife.Messaging.IMessage.ToPacket">
  6568. <summary>把消息转为封包</summary>
  6569. <returns></returns>
  6570. </member>
  6571. <member name="T:NewLife.Messaging.Message">
  6572. <summary>消息命令基类</summary>
  6573. </member>
  6574. <member name="P:NewLife.Messaging.Message.Reply">
  6575. <summary>是否响应</summary>
  6576. </member>
  6577. <member name="P:NewLife.Messaging.Message.Error">
  6578. <summary>是否有错</summary>
  6579. </member>
  6580. <member name="P:NewLife.Messaging.Message.OneWay">
  6581. <summary>单向请求</summary>
  6582. </member>
  6583. <member name="P:NewLife.Messaging.Message.Payload">
  6584. <summary>负载数据</summary>
  6585. </member>
  6586. <member name="M:NewLife.Messaging.Message.CreateReply">
  6587. <summary>根据请求创建配对的响应消息</summary>
  6588. <returns></returns>
  6589. </member>
  6590. <member name="M:NewLife.Messaging.Message.Read(NewLife.Data.Packet)">
  6591. <summary>从数据包中读取消息</summary>
  6592. <param name="pk"></param>
  6593. <returns>是否成功</returns>
  6594. </member>
  6595. <member name="M:NewLife.Messaging.Message.ToPacket">
  6596. <summary>把消息转为封包</summary>
  6597. <returns></returns>
  6598. </member>
  6599. <member name="T:NewLife.Messaging.MessageEventArgs">
  6600. <summary>收到消息时的事件参数</summary>
  6601. </member>
  6602. <member name="P:NewLife.Messaging.MessageEventArgs.Packet">
  6603. <summary>数据包</summary>
  6604. </member>
  6605. <member name="P:NewLife.Messaging.MessageEventArgs.Message">
  6606. <summary>消息</summary>
  6607. </member>
  6608. <member name="P:NewLife.Messaging.MessageEventArgs.UserState">
  6609. <summary>用户数据。比如远程地址等</summary>
  6610. </member>
  6611. <member name="T:NewLife.Messaging.PacketCodec">
  6612. <summary>数据包编码器</summary>
  6613. <remarks>
  6614. 文档 https://newlifex.com/core/packet_codec
  6615. 编码器的设计目标是作为网络粘包处理的基础实现。
  6616. </remarks>
  6617. </member>
  6618. <member name="P:NewLife.Messaging.PacketCodec.Stream">
  6619. <summary>缓存流</summary>
  6620. </member>
  6621. <member name="P:NewLife.Messaging.PacketCodec.GetLength">
  6622. <summary>获取长度的委托。本包所应该拥有的总长度,满足该长度后解除一个封包</summary>
  6623. </member>
  6624. <member name="P:NewLife.Messaging.PacketCodec.Offset">
  6625. <summary>长度的偏移量,截取数据包时加上,否则将会漏掉长度之间的数据包,如MQTT</summary>
  6626. </member>
  6627. <member name="P:NewLife.Messaging.PacketCodec.Last">
  6628. <summary>最后一次解包成功,而不是最后一次接收</summary>
  6629. </member>
  6630. <member name="P:NewLife.Messaging.PacketCodec.Expire">
  6631. <summary>缓存有效期。超过该时间后仍未匹配数据包的缓存数据将被抛弃,默认5000ms</summary>
  6632. </member>
  6633. <member name="P:NewLife.Messaging.PacketCodec.MaxCache">
  6634. <summary>最大缓存待处理数据。默认1M</summary>
  6635. </member>
  6636. <member name="P:NewLife.Messaging.PacketCodec.Tracer">
  6637. <summary>APM性能追踪器</summary>
  6638. </member>
  6639. <member name="M:NewLife.Messaging.PacketCodec.Parse(NewLife.Data.Packet)">
  6640. <summary>数据包加入缓存数据末尾,分析数据流,得到一帧或多帧数据</summary>
  6641. <param name="pk">待分析数据包</param>
  6642. <returns></returns>
  6643. </member>
  6644. <member name="M:NewLife.Messaging.PacketCodec.CheckCache">
  6645. <summary>检查缓存</summary>
  6646. </member>
  6647. <member name="T:NewLife.Model.IActor">
  6648. <summary>无锁并行编程模型</summary>
  6649. <remarks>
  6650. 文档 https://newlifex.com/core/actor
  6651. 独立线程轮询消息队列,简单设计避免影响默认线程池。
  6652. 适用于任务颗粒较大的场合,例如IO操作。
  6653. </remarks>
  6654. </member>
  6655. <member name="M:NewLife.Model.IActor.Tell(System.Object,NewLife.Model.IActor)">
  6656. <summary>添加消息,驱动内部处理</summary>
  6657. <param name="message">消息</param>
  6658. <param name="sender">发送者</param>
  6659. <returns>返回待处理消息数</returns>
  6660. </member>
  6661. <member name="T:NewLife.Model.ActorContext">
  6662. <summary>Actor上下文</summary>
  6663. </member>
  6664. <member name="P:NewLife.Model.ActorContext.Sender">
  6665. <summary>发送者</summary>
  6666. </member>
  6667. <member name="P:NewLife.Model.ActorContext.Message">
  6668. <summary>消息</summary>
  6669. </member>
  6670. <member name="T:NewLife.Model.Actor">
  6671. <summary>无锁并行编程模型</summary>
  6672. <remarks>
  6673. 独立线程轮询消息队列,简单设计避免影响默认线程池。
  6674. </remarks>
  6675. </member>
  6676. <member name="P:NewLife.Model.Actor.Name">
  6677. <summary>名称</summary>
  6678. </member>
  6679. <member name="P:NewLife.Model.Actor.Active">
  6680. <summary>是否启用</summary>
  6681. </member>
  6682. <member name="P:NewLife.Model.Actor.BoundedCapacity">
  6683. <summary>受限容量。最大可堆积的消息数,默认Int32.MaxValue</summary>
  6684. </member>
  6685. <member name="P:NewLife.Model.Actor.BatchSize">
  6686. <summary>批大小。每次处理消息数,默认1,大于1表示启用批量处理模式</summary>
  6687. </member>
  6688. <member name="P:NewLife.Model.Actor.LongRunning">
  6689. <summary>是否长时间运行。长时间运行任务使用独立线程,默认false</summary>
  6690. </member>
  6691. <member name="P:NewLife.Model.Actor.MailBox">
  6692. <summary>存放消息的邮箱。默认FIFO实现,外部可覆盖</summary>
  6693. </member>
  6694. <member name="P:NewLife.Model.Actor.Tracer">
  6695. <summary>
  6696. 性能追踪器
  6697. </summary>
  6698. </member>
  6699. <member name="P:NewLife.Model.Actor.TracerParent">
  6700. <summary>
  6701. 父级性能追踪器。用于把内外调用链关联起来
  6702. </summary>
  6703. </member>
  6704. <member name="M:NewLife.Model.Actor.#ctor">
  6705. <summary>实例化</summary>
  6706. </member>
  6707. <member name="M:NewLife.Model.Actor.Dispose(System.Boolean)">
  6708. <summary>销毁</summary>
  6709. <param name="disposing"></param>
  6710. </member>
  6711. <member name="M:NewLife.Model.Actor.ToString">
  6712. <summary>已重载。显示名称</summary>
  6713. <returns></returns>
  6714. </member>
  6715. <member name="M:NewLife.Model.Actor.Start">
  6716. <summary>通知开始处理</summary>
  6717. <remarks>
  6718. 添加消息时自动触发
  6719. </remarks>
  6720. </member>
  6721. <member name="M:NewLife.Model.Actor.OnStart">
  6722. <summary>开始时,返回执行线程包装任务</summary>
  6723. <returns></returns>
  6724. </member>
  6725. <member name="M:NewLife.Model.Actor.Stop(System.Int32)">
  6726. <summary>通知停止添加消息,并等待处理完成</summary>
  6727. <param name="msTimeout">等待的毫秒数。0表示不等待,-1表示无限等待</param>
  6728. </member>
  6729. <member name="M:NewLife.Model.Actor.Tell(System.Object,NewLife.Model.IActor)">
  6730. <summary>添加消息,驱动内部处理</summary>
  6731. <param name="message">消息</param>
  6732. <param name="sender">发送者</param>
  6733. <returns>返回待处理消息数</returns>
  6734. </member>
  6735. <member name="M:NewLife.Model.Actor.DoActorWork">
  6736. <summary>循环消费消息</summary>
  6737. </member>
  6738. <member name="M:NewLife.Model.Actor.Loop">
  6739. <summary>循环消费消息</summary>
  6740. </member>
  6741. <member name="M:NewLife.Model.Actor.ReceiveAsync(NewLife.Model.ActorContext,System.Threading.CancellationToken)">
  6742. <summary>处理消息。批大小为1时使用该方法</summary>
  6743. <param name="context">上下文</param>
  6744. <param name="cancellationToken">取消通知</param>
  6745. </member>
  6746. <member name="M:NewLife.Model.Actor.ReceiveAsync(NewLife.Model.ActorContext[],System.Threading.CancellationToken)">
  6747. <summary>批量处理消息。批大小大于1时使用该方法</summary>
  6748. <param name="contexts">上下文集合</param>
  6749. <param name="cancellationToken">取消通知</param>
  6750. </member>
  6751. <member name="T:NewLife.Model.DeferredQueue">
  6752. <summary>延迟队列。缓冲合并对象,批量处理</summary>
  6753. <remarks>
  6754. 借助实体字典,缓冲实体对象,定期给字典换新,实现批量处理。
  6755. 有可能外部拿到对象后,正在修改,内部恰巧执行批量处理,导致外部的部分修改未能得到处理。
  6756. 解决办法是增加一个提交机制,外部用完后提交修改,内部需要处理时,等待一个时间。
  6757. </remarks>
  6758. </member>
  6759. <member name="P:NewLife.Model.DeferredQueue.Name">
  6760. <summary>名称</summary>
  6761. </member>
  6762. <member name="P:NewLife.Model.DeferredQueue.Entities">
  6763. <summary>实体字典</summary>
  6764. </member>
  6765. <member name="P:NewLife.Model.DeferredQueue.TraceCount">
  6766. <summary>跟踪数。达到该值时输出跟踪日志,默认1000</summary>
  6767. </member>
  6768. <member name="P:NewLife.Model.DeferredQueue.Period">
  6769. <summary>周期。默认10_000毫秒</summary>
  6770. </member>
  6771. <member name="P:NewLife.Model.DeferredQueue.MaxEntity">
  6772. <summary>最大个数。超过该个数时,进入队列将产生堵塞。默认10_000_000</summary>
  6773. </member>
  6774. <member name="P:NewLife.Model.DeferredQueue.BatchSize">
  6775. <summary>批大小。默认5_000</summary>
  6776. </member>
  6777. <member name="P:NewLife.Model.DeferredQueue.WaitForBusy">
  6778. <summary>等待借出对象确认修改的时间,默认3000ms</summary>
  6779. </member>
  6780. <member name="P:NewLife.Model.DeferredQueue.Speed">
  6781. <summary>保存速度,每秒保存多少个实体</summary>
  6782. </member>
  6783. <member name="P:NewLife.Model.DeferredQueue.Async">
  6784. <summary>是否异步处理。默认true表示异步处理,共用DQ定时调度;false表示同步处理,独立线程</summary>
  6785. </member>
  6786. <member name="P:NewLife.Model.DeferredQueue.Times">
  6787. <summary>合并保存的总次数</summary>
  6788. </member>
  6789. <member name="F:NewLife.Model.DeferredQueue.Finish">
  6790. <summary>批次处理成功时</summary>
  6791. </member>
  6792. <member name="F:NewLife.Model.DeferredQueue.Error">
  6793. <summary>批次处理失败时</summary>
  6794. </member>
  6795. <member name="M:NewLife.Model.DeferredQueue.#ctor">
  6796. <summary>实例化</summary>
  6797. </member>
  6798. <member name="M:NewLife.Model.DeferredQueue.Dispose(System.Boolean)">
  6799. <summary>销毁。统计队列销毁时保存数据</summary>
  6800. <param name="disposing"></param>
  6801. </member>
  6802. <member name="M:NewLife.Model.DeferredQueue.Init">
  6803. <summary>初始化</summary>
  6804. </member>
  6805. <member name="M:NewLife.Model.DeferredQueue.OnInit">
  6806. <summary>初始化</summary>
  6807. </member>
  6808. <member name="M:NewLife.Model.DeferredQueue.TryAdd(System.String,System.Object)">
  6809. <summary>尝试添加</summary>
  6810. <param name="key"></param>
  6811. <param name="value"></param>
  6812. <returns></returns>
  6813. </member>
  6814. <member name="M:NewLife.Model.DeferredQueue.GetOrAdd``1(System.String,System.Func{System.String,``0})">
  6815. <summary>获取 或 添加 实体对象,在外部修改对象值</summary>
  6816. <remarks>
  6817. 外部正在修改对象时,内部不允许执行批量处理
  6818. </remarks>
  6819. <typeparam name="T"></typeparam>
  6820. <param name="key"></param>
  6821. <param name="valueFactory"></param>
  6822. <returns></returns>
  6823. </member>
  6824. <member name="F:NewLife.Model.DeferredQueue._busy">
  6825. <summary>等待确认修改的借出对象数</summary>
  6826. </member>
  6827. <member name="M:NewLife.Model.DeferredQueue.Commit(System.String)">
  6828. <summary>提交对象的修改,外部不再使用该对象</summary>
  6829. <param name="key"></param>
  6830. </member>
  6831. <member name="F:NewLife.Model.DeferredQueue._count">
  6832. <summary>当前缓存个数</summary>
  6833. </member>
  6834. <member name="M:NewLife.Model.DeferredQueue.ProcessAll(System.Collections.Generic.ICollection{System.Object})">
  6835. <summary>定时处理全部数据</summary>
  6836. <param name="list"></param>
  6837. </member>
  6838. <member name="M:NewLife.Model.DeferredQueue.Process(System.Collections.Generic.IList{System.Object})">
  6839. <summary>处理一批</summary>
  6840. <param name="list"></param>
  6841. </member>
  6842. <member name="M:NewLife.Model.DeferredQueue.OnError(System.Collections.Generic.IList{System.Object},System.Exception)">
  6843. <summary>发生错误</summary>
  6844. <param name="list"></param>
  6845. <param name="ex"></param>
  6846. </member>
  6847. <member name="T:NewLife.Model.IHostedService">
  6848. <summary>轻量级主机服务</summary>
  6849. <remarks>
  6850. 文档 https://newlifex.com/core/host
  6851. </remarks>
  6852. </member>
  6853. <member name="M:NewLife.Model.IHostedService.StartAsync(System.Threading.CancellationToken)">
  6854. <summary>开始服务</summary>
  6855. <param name="cancellationToken"></param>
  6856. <returns></returns>
  6857. </member>
  6858. <member name="M:NewLife.Model.IHostedService.StopAsync(System.Threading.CancellationToken)">
  6859. <summary>停止服务</summary>
  6860. <param name="cancellationToken"></param>
  6861. <returns></returns>
  6862. </member>
  6863. <member name="T:NewLife.Model.HostedServiceExtensions">
  6864. <summary>主机服务扩展</summary>
  6865. </member>
  6866. <member name="M:NewLife.Model.HostedServiceExtensions.AddHostedService``1(NewLife.Model.IObjectContainer)">
  6867. <summary>注册主机服务,在主机启动和停止时执行</summary>
  6868. <typeparam name="THostedService"></typeparam>
  6869. <param name="services"></param>
  6870. <returns></returns>
  6871. </member>
  6872. <member name="M:NewLife.Model.HostedServiceExtensions.AddHostedService``1(NewLife.Model.IObjectContainer,System.Func{System.IServiceProvider,``0})">
  6873. <summary>注册主机服务,在主机启动和停止时执行</summary>
  6874. <typeparam name="THostedService"></typeparam>
  6875. <param name="services"></param>
  6876. <param name="implementationFactory"></param>
  6877. <returns></returns>
  6878. </member>
  6879. <member name="T:NewLife.Model.IHost">
  6880. <summary>轻量级应用主机</summary>
  6881. <remarks>
  6882. 文档 https://newlifex.com/core/host
  6883. 销毁主机时,会触发所有服务的停止事件
  6884. </remarks>
  6885. </member>
  6886. <member name="M:NewLife.Model.IHost.Add(NewLife.Model.IHostedService)">
  6887. <summary>添加服务</summary>
  6888. <param name="service"></param>
  6889. </member>
  6890. <member name="M:NewLife.Model.IHost.Add``1">
  6891. <summary>添加服务</summary>
  6892. <typeparam name="TService"></typeparam>
  6893. </member>
  6894. <member name="M:NewLife.Model.IHost.Run">
  6895. <summary>同步运行,大循环阻塞</summary>
  6896. </member>
  6897. <member name="M:NewLife.Model.IHost.RunAsync">
  6898. <summary>异步允许,大循环阻塞</summary>
  6899. <returns></returns>
  6900. </member>
  6901. <member name="M:NewLife.Model.IHost.Close(System.String)">
  6902. <summary>关闭主机</summary>
  6903. <param name="reason"></param>
  6904. </member>
  6905. <member name="T:NewLife.Model.Host">
  6906. <summary>轻量级应用主机</summary>
  6907. <remarks>
  6908. 文档 https://newlifex.com/core/host
  6909. 销毁主机时,会触发所有服务的停止事件
  6910. </remarks>
  6911. </member>
  6912. <member name="P:NewLife.Model.Host.ServiceProvider">
  6913. <summary>服务提供者</summary>
  6914. </member>
  6915. <member name="P:NewLife.Model.Host.Services">
  6916. <summary>服务集合</summary>
  6917. </member>
  6918. <member name="M:NewLife.Model.Host.#ctor(System.IServiceProvider)">
  6919. <summary>通过制定服务提供者来实例化一个应用主机</summary>
  6920. <param name="serviceProvider"></param>
  6921. </member>
  6922. <member name="M:NewLife.Model.Host.Dispose(System.Boolean)">
  6923. <summary>销毁</summary>
  6924. <param name="disposing"></param>
  6925. </member>
  6926. <member name="M:NewLife.Model.Host.Add``1">
  6927. <summary>添加服务</summary>
  6928. <typeparam name="TService"></typeparam>
  6929. </member>
  6930. <member name="M:NewLife.Model.Host.Add(NewLife.Model.IHostedService)">
  6931. <summary>添加服务</summary>
  6932. <param name="service"></param>
  6933. </member>
  6934. <member name="M:NewLife.Model.Host.StartAsync(System.Threading.CancellationToken)">
  6935. <summary>开始</summary>
  6936. <param name="cancellationToken"></param>
  6937. <returns></returns>
  6938. </member>
  6939. <member name="M:NewLife.Model.Host.StopAsync(System.Threading.CancellationToken)">
  6940. <summary>停止</summary>
  6941. <param name="cancellationToken"></param>
  6942. <returns></returns>
  6943. </member>
  6944. <member name="M:NewLife.Model.Host.Run">
  6945. <summary>同步运行,大循环阻塞</summary>
  6946. </member>
  6947. <member name="M:NewLife.Model.Host.RunAsync">
  6948. <summary>异步允许,大循环阻塞</summary>
  6949. <returns></returns>
  6950. </member>
  6951. <member name="M:NewLife.Model.Host.Close(System.String)">
  6952. <summary>关闭主机</summary>
  6953. <param name="reason"></param>
  6954. </member>
  6955. <member name="M:NewLife.Model.Host.RegisterExit(System.EventHandler)">
  6956. <summary>注册应用退出事件</summary>
  6957. <remarks>在不同场景可能被多次执行,调用方需要做判断</remarks>
  6958. <param name="onExit">回调函数</param>
  6959. </member>
  6960. <member name="M:NewLife.Model.Host.RegisterExit(System.Action)">
  6961. <summary>注册应用退出事件。仅执行一次</summary>
  6962. <param name="onExit">回调函数</param>
  6963. </member>
  6964. <member name="T:NewLife.Model.BackgroundService">
  6965. <summary>后台任务</summary>
  6966. <remarks>
  6967. 文档 https://newlifex.com/core/host
  6968. </remarks>
  6969. </member>
  6970. <member name="M:NewLife.Model.BackgroundService.ExecuteAsync(System.Threading.CancellationToken)">
  6971. <summary>执行</summary>
  6972. <param name="stoppingToken"></param>
  6973. <returns></returns>
  6974. </member>
  6975. <member name="M:NewLife.Model.BackgroundService.StartAsync(System.Threading.CancellationToken)">
  6976. <summary>开始</summary>
  6977. <param name="cancellationToken"></param>
  6978. <returns></returns>
  6979. </member>
  6980. <member name="M:NewLife.Model.BackgroundService.StopAsync(System.Threading.CancellationToken)">
  6981. <summary>停止</summary>
  6982. <param name="cancellationToken"></param>
  6983. <returns></returns>
  6984. </member>
  6985. <member name="M:NewLife.Model.BackgroundService.Dispose">
  6986. <summary>销毁</summary>
  6987. </member>
  6988. <member name="T:NewLife.Model.IAuthUser">
  6989. <summary>认证用户接口,具有登录验证、注册、在线等基本信息</summary>
  6990. </member>
  6991. <member name="P:NewLife.Model.IAuthUser.Password">
  6992. <summary>密码</summary>
  6993. </member>
  6994. <member name="P:NewLife.Model.IAuthUser.Logins">
  6995. <summary>登录次数</summary>
  6996. </member>
  6997. <member name="P:NewLife.Model.IAuthUser.LastLogin">
  6998. <summary>最后登录</summary>
  6999. </member>
  7000. <member name="P:NewLife.Model.IAuthUser.LastLoginIP">
  7001. <summary>最后登录IP</summary>
  7002. </member>
  7003. <member name="P:NewLife.Model.IAuthUser.RegisterTime">
  7004. <summary>注册时间</summary>
  7005. </member>
  7006. <member name="P:NewLife.Model.IAuthUser.RegisterIP">
  7007. <summary>注册IP</summary>
  7008. </member>
  7009. <member name="M:NewLife.Model.IAuthUser.Save">
  7010. <summary>保存</summary>
  7011. <returns></returns>
  7012. </member>
  7013. <member name="T:NewLife.Model.ManageUserHelper">
  7014. <summary>用户接口工具类</summary>
  7015. </member>
  7016. <member name="M:NewLife.Model.ManageUserHelper.CheckEqual(NewLife.Model.IAuthUser,System.String)">
  7017. <summary>比较密码相等</summary>
  7018. <param name="user"></param>
  7019. <param name="pass"></param>
  7020. <returns></returns>
  7021. </member>
  7022. <member name="M:NewLife.Model.ManageUserHelper.CheckMD5(NewLife.Model.IAuthUser,System.String)">
  7023. <summary>比较密码MD5</summary>
  7024. <param name="user"></param>
  7025. <param name="pass"></param>
  7026. <returns></returns>
  7027. </member>
  7028. <member name="M:NewLife.Model.ManageUserHelper.CheckRC4(NewLife.Model.IAuthUser,System.String)">
  7029. <summary>比较密码RC4</summary>
  7030. <param name="user"></param>
  7031. <param name="pass"></param>
  7032. <returns></returns>
  7033. </member>
  7034. <member name="M:NewLife.Model.ManageUserHelper.SaveLogin(NewLife.Model.IAuthUser,NewLife.Net.INetSession)">
  7035. <summary>保存登录信息</summary>
  7036. <param name="user"></param>
  7037. <param name="session"></param>
  7038. </member>
  7039. <member name="M:NewLife.Model.ManageUserHelper.SaveRegister(NewLife.Model.IAuthUser,NewLife.Net.INetSession)">
  7040. <summary>保存注册信息</summary>
  7041. <param name="user"></param>
  7042. <param name="session"></param>
  7043. </member>
  7044. <member name="T:NewLife.Model.IHandler">
  7045. <summary>处理器</summary>
  7046. </member>
  7047. <member name="P:NewLife.Model.IHandler.Prev">
  7048. <summary>上一个处理器</summary>
  7049. </member>
  7050. <member name="P:NewLife.Model.IHandler.Next">
  7051. <summary>下一个处理器</summary>
  7052. </member>
  7053. <member name="M:NewLife.Model.IHandler.Read(NewLife.Model.IHandlerContext,System.Object)">
  7054. <summary>读取数据,返回结果作为下一个处理器消息</summary>
  7055. <remarks>
  7056. 最终处理器决定如何使用消息。
  7057. 处理得到单个消息时,调用一次下一级处理器,返回下级结果给上一级;
  7058. 处理得到多个消息时,调用多次下一级处理器,返回null给上一级;
  7059. </remarks>
  7060. <param name="context">上下文</param>
  7061. <param name="message">消息</param>
  7062. </member>
  7063. <member name="M:NewLife.Model.IHandler.Write(NewLife.Model.IHandlerContext,System.Object)">
  7064. <summary>写入数据,返回结果作为下一个处理器消息</summary>
  7065. <param name="context">上下文</param>
  7066. <param name="message">消息</param>
  7067. </member>
  7068. <member name="M:NewLife.Model.IHandler.Open(NewLife.Model.IHandlerContext)">
  7069. <summary>打开连接</summary>
  7070. <param name="context">上下文</param>
  7071. </member>
  7072. <member name="M:NewLife.Model.IHandler.Close(NewLife.Model.IHandlerContext,System.String)">
  7073. <summary>关闭连接</summary>
  7074. <param name="context">上下文</param>
  7075. <param name="reason">原因</param>
  7076. </member>
  7077. <member name="M:NewLife.Model.IHandler.Error(NewLife.Model.IHandlerContext,System.Exception)">
  7078. <summary>发生错误</summary>
  7079. <param name="context">上下文</param>
  7080. <param name="exception">异常</param>
  7081. </member>
  7082. <member name="T:NewLife.Model.Handler">
  7083. <summary>处理器</summary>
  7084. </member>
  7085. <member name="P:NewLife.Model.Handler.Prev">
  7086. <summary>上一个处理器</summary>
  7087. </member>
  7088. <member name="P:NewLife.Model.Handler.Next">
  7089. <summary>下一个处理器</summary>
  7090. </member>
  7091. <member name="M:NewLife.Model.Handler.Read(NewLife.Model.IHandlerContext,System.Object)">
  7092. <summary>读取数据,返回结果作为下一个处理器消息</summary>
  7093. <remarks>
  7094. 最终处理器决定如何使用消息。
  7095. 处理得到单个消息时,调用一次下一级处理器,返回下级结果给上一级;
  7096. 处理得到多个消息时,调用多次下一级处理器,返回null给上一级;
  7097. </remarks>
  7098. <param name="context">上下文</param>
  7099. <param name="message">消息</param>
  7100. </member>
  7101. <member name="M:NewLife.Model.Handler.Write(NewLife.Model.IHandlerContext,System.Object)">
  7102. <summary>写入数据,返回结果作为下一个处理器消息</summary>
  7103. <param name="context">上下文</param>
  7104. <param name="message">消息</param>
  7105. </member>
  7106. <member name="M:NewLife.Model.Handler.Open(NewLife.Model.IHandlerContext)">
  7107. <summary>打开连接</summary>
  7108. <param name="context">上下文</param>
  7109. </member>
  7110. <member name="M:NewLife.Model.Handler.Close(NewLife.Model.IHandlerContext,System.String)">
  7111. <summary>关闭连接</summary>
  7112. <param name="context">上下文</param>
  7113. <param name="reason">原因</param>
  7114. </member>
  7115. <member name="M:NewLife.Model.Handler.Error(NewLife.Model.IHandlerContext,System.Exception)">
  7116. <summary>发生错误</summary>
  7117. <param name="context">上下文</param>
  7118. <param name="exception">异常</param>
  7119. </member>
  7120. <member name="T:NewLife.Model.IHandlerContext">
  7121. <summary>处理器上下文</summary>
  7122. </member>
  7123. <member name="P:NewLife.Model.IHandlerContext.Pipeline">
  7124. <summary>管道</summary>
  7125. </member>
  7126. <member name="P:NewLife.Model.IHandlerContext.Owner">
  7127. <summary>上下文拥有者</summary>
  7128. </member>
  7129. <member name="M:NewLife.Model.IHandlerContext.FireRead(System.Object)">
  7130. <summary>读取管道过滤后最终处理消息</summary>
  7131. <param name="message"></param>
  7132. </member>
  7133. <member name="M:NewLife.Model.IHandlerContext.FireWrite(System.Object)">
  7134. <summary>写入管道过滤后最终处理消息</summary>
  7135. <param name="message"></param>
  7136. </member>
  7137. <member name="T:NewLife.Model.HandlerContext">
  7138. <summary>处理器上下文</summary>
  7139. </member>
  7140. <member name="P:NewLife.Model.HandlerContext.Pipeline">
  7141. <summary>管道</summary>
  7142. </member>
  7143. <member name="P:NewLife.Model.HandlerContext.Owner">
  7144. <summary>上下文拥有者</summary>
  7145. </member>
  7146. <member name="P:NewLife.Model.HandlerContext.Items">
  7147. <summary>数据项</summary>
  7148. </member>
  7149. <member name="P:NewLife.Model.HandlerContext.Item(System.String)">
  7150. <summary>设置 或 获取 数据项</summary>
  7151. <param name="key"></param>
  7152. <returns></returns>
  7153. </member>
  7154. <member name="M:NewLife.Model.HandlerContext.FireRead(System.Object)">
  7155. <summary>读取管道过滤后最终处理消息</summary>
  7156. <param name="message"></param>
  7157. </member>
  7158. <member name="M:NewLife.Model.HandlerContext.FireWrite(System.Object)">
  7159. <summary>写入管道过滤后最终处理消息</summary>
  7160. <param name="message"></param>
  7161. </member>
  7162. <member name="T:NewLife.Model.IManageUser">
  7163. <summary>用户接口</summary>
  7164. </member>
  7165. <member name="P:NewLife.Model.IManageUser.ID">
  7166. <summary>编号</summary>
  7167. </member>
  7168. <member name="P:NewLife.Model.IManageUser.Name">
  7169. <summary>名称</summary>
  7170. </member>
  7171. <member name="P:NewLife.Model.IManageUser.NickName">
  7172. <summary>昵称</summary>
  7173. </member>
  7174. <member name="P:NewLife.Model.IManageUser.Enable">
  7175. <summary>启用</summary>
  7176. </member>
  7177. <member name="T:NewLife.Model.IObjectContainer">
  7178. <summary>轻量级对象容器,支持注入</summary>
  7179. <remarks>
  7180. 文档 https://newlifex.com/core/object_container
  7181. </remarks>
  7182. </member>
  7183. <member name="M:NewLife.Model.IObjectContainer.Register(System.Type,System.Type,System.Object)">
  7184. <summary>注册类型和名称</summary>
  7185. <param name="serviceType">接口类型</param>
  7186. <param name="implementationType">实现类型</param>
  7187. <param name="instance">实例</param>
  7188. <returns></returns>
  7189. </member>
  7190. <member name="M:NewLife.Model.IObjectContainer.Add(NewLife.Model.IObject)">
  7191. <summary>添加</summary>
  7192. <param name="item"></param>
  7193. </member>
  7194. <member name="M:NewLife.Model.IObjectContainer.TryAdd(NewLife.Model.IObject)">
  7195. <summary>尝试添加</summary>
  7196. <param name="item"></param>
  7197. </member>
  7198. <member name="M:NewLife.Model.IObjectContainer.Resolve(System.Type,System.IServiceProvider)">
  7199. <summary>在指定容器中解析类型的实例</summary>
  7200. <param name="serviceType">接口类型</param>
  7201. <param name="serviceProvider">容器</param>
  7202. <returns></returns>
  7203. </member>
  7204. <member name="T:NewLife.Model.ObjectLifetime">
  7205. <summary>生命周期</summary>
  7206. </member>
  7207. <member name="F:NewLife.Model.ObjectLifetime.Singleton">
  7208. <summary>单实例</summary>
  7209. </member>
  7210. <member name="F:NewLife.Model.ObjectLifetime.Scoped">
  7211. <summary>容器内单实例</summary>
  7212. </member>
  7213. <member name="F:NewLife.Model.ObjectLifetime.Transient">
  7214. <summary>每次一个实例</summary>
  7215. </member>
  7216. <member name="T:NewLife.Model.IObject">
  7217. <summary>对象映射接口</summary>
  7218. </member>
  7219. <member name="P:NewLife.Model.IObject.ServiceType">
  7220. <summary>服务类型</summary>
  7221. </member>
  7222. <member name="P:NewLife.Model.IObject.ImplementationType">
  7223. <summary>实现类型</summary>
  7224. </member>
  7225. <member name="P:NewLife.Model.IObject.Lifetime">
  7226. <summary>生命周期</summary>
  7227. </member>
  7228. <member name="T:NewLife.Model.IPipeline">
  7229. <summary>管道。进站顺序,出站逆序</summary>
  7230. </member>
  7231. <member name="M:NewLife.Model.IPipeline.Add(NewLife.Model.IHandler)">
  7232. <summary>添加处理器到末尾</summary>
  7233. <param name="handler">处理器</param>
  7234. <returns></returns>
  7235. </member>
  7236. <member name="M:NewLife.Model.IPipeline.Read(NewLife.Model.IHandlerContext,System.Object)">
  7237. <summary>读取数据,返回结果作为下一个处理器消息</summary>
  7238. <param name="context">上下文</param>
  7239. <param name="message">消息</param>
  7240. </member>
  7241. <member name="M:NewLife.Model.IPipeline.Write(NewLife.Model.IHandlerContext,System.Object)">
  7242. <summary>写入数据,返回结果作为下一个处理器消息</summary>
  7243. <param name="context">上下文</param>
  7244. <param name="message">消息</param>
  7245. </member>
  7246. <member name="M:NewLife.Model.IPipeline.Open(NewLife.Model.IHandlerContext)">
  7247. <summary>打开连接</summary>
  7248. <param name="context">上下文</param>
  7249. </member>
  7250. <member name="M:NewLife.Model.IPipeline.Close(NewLife.Model.IHandlerContext,System.String)">
  7251. <summary>关闭连接</summary>
  7252. <param name="context">上下文</param>
  7253. <param name="reason">原因</param>
  7254. </member>
  7255. <member name="M:NewLife.Model.IPipeline.Error(NewLife.Model.IHandlerContext,System.Exception)">
  7256. <summary>发生错误</summary>
  7257. <param name="context">上下文</param>
  7258. <param name="exception">异常</param>
  7259. </member>
  7260. <member name="T:NewLife.Model.Pipeline">
  7261. <summary>管道。进站顺序,出站逆序</summary>
  7262. </member>
  7263. <member name="P:NewLife.Model.Pipeline.Handlers">
  7264. <summary>处理器集合</summary>
  7265. </member>
  7266. <member name="M:NewLife.Model.Pipeline.Add(NewLife.Model.IHandler)">
  7267. <summary>添加处理器到末尾</summary>
  7268. <param name="handler">处理器</param>
  7269. <returns></returns>
  7270. </member>
  7271. <member name="M:NewLife.Model.Pipeline.Read(NewLife.Model.IHandlerContext,System.Object)">
  7272. <summary>读取数据,顺序过滤消息,返回结果作为下一个处理器消息</summary>
  7273. <remarks>
  7274. 最终处理器决定如何使用消息。
  7275. 处理得到单个消息时,调用一次下一级处理器,返回下级结果给上一级;
  7276. 处理得到多个消息时,调用多次下一级处理器,返回null给上一级;
  7277. </remarks>
  7278. <param name="context">上下文</param>
  7279. <param name="message">消息</param>
  7280. </member>
  7281. <member name="M:NewLife.Model.Pipeline.Write(NewLife.Model.IHandlerContext,System.Object)">
  7282. <summary>写入数据,逆序过滤消息,返回结果作为下一个处理器消息</summary>
  7283. <param name="context">上下文</param>
  7284. <param name="message">消息</param>
  7285. </member>
  7286. <member name="M:NewLife.Model.Pipeline.Open(NewLife.Model.IHandlerContext)">
  7287. <summary>打开连接</summary>
  7288. <param name="context">上下文</param>
  7289. </member>
  7290. <member name="M:NewLife.Model.Pipeline.Close(NewLife.Model.IHandlerContext,System.String)">
  7291. <summary>关闭连接</summary>
  7292. <param name="context">上下文</param>
  7293. <param name="reason">原因</param>
  7294. </member>
  7295. <member name="M:NewLife.Model.Pipeline.Error(NewLife.Model.IHandlerContext,System.Exception)">
  7296. <summary>发生错误</summary>
  7297. <param name="context">上下文</param>
  7298. <param name="exception">异常</param>
  7299. </member>
  7300. <member name="T:NewLife.Model.IPlugin">
  7301. <summary>通用插件接口</summary>
  7302. <remarks>
  7303. 为了方便构建一个简单通用的插件系统,先规定如下:
  7304. 1,负责加载插件的宿主,在加载插件后会进行插件实例化,此时可在插件构造函数中做一些事情,但不应该开始业务处理,因为宿主的准备工作可能尚未完成
  7305. 2,宿主一切准备就绪后,会顺序调用插件的Init方法,并将宿主标识传入,插件通过标识区分是否自己的目标宿主。插件的Init应尽快完成。
  7306. 3,如果插件实现了<see cref="T:System.IDisposable"/>接口,宿主最后会清理资源。
  7307. </remarks>
  7308. </member>
  7309. <member name="M:NewLife.Model.IPlugin.Init(System.String,System.IServiceProvider)">
  7310. <summary>初始化</summary>
  7311. <param name="identity">插件宿主标识</param>
  7312. <param name="provider">服务提供者</param>
  7313. <returns>返回初始化是否成功。如果当前宿主不是所期待的宿主,这里返回false</returns>
  7314. </member>
  7315. <member name="T:NewLife.Model.PluginAttribute">
  7316. <summary>插件特性。用于判断某个插件实现类是否支持某个宿主</summary>
  7317. </member>
  7318. <member name="P:NewLife.Model.PluginAttribute.Identity">
  7319. <summary>插件宿主标识</summary>
  7320. </member>
  7321. <member name="M:NewLife.Model.PluginAttribute.#ctor(System.String)">
  7322. <summary>实例化</summary>
  7323. <param name="identity"></param>
  7324. </member>
  7325. <member name="T:NewLife.Model.PluginManager">
  7326. <summary>插件管理器</summary>
  7327. </member>
  7328. <member name="P:NewLife.Model.PluginManager.Identity">
  7329. <summary>宿主标识,用于供插件区分不同宿主</summary>
  7330. </member>
  7331. <member name="P:NewLife.Model.PluginManager.Provider">
  7332. <summary>宿主服务提供者</summary>
  7333. </member>
  7334. <member name="P:NewLife.Model.PluginManager.Plugins">
  7335. <summary>插件集合</summary>
  7336. </member>
  7337. <member name="P:NewLife.Model.PluginManager.Log">
  7338. <summary>日志提供者</summary>
  7339. </member>
  7340. <member name="M:NewLife.Model.PluginManager.#ctor">
  7341. <summary>实例化一个插件管理器</summary>
  7342. </member>
  7343. <member name="M:NewLife.Model.PluginManager.Dispose(System.Boolean)">
  7344. <summary>子类重载实现资源释放逻辑时必须首先调用基类方法</summary>
  7345. <param name="disposing">从Dispose调用(释放所有资源)还是析构函数调用(释放非托管资源)。
  7346. 因为该方法只会被调用一次,所以该参数的意义不太大。</param>
  7347. </member>
  7348. <member name="M:NewLife.Model.PluginManager.Load">
  7349. <summary>加载插件。此时是加载所有插件,无法识别哪些是需要的</summary>
  7350. </member>
  7351. <member name="M:NewLife.Model.PluginManager.Init">
  7352. <summary>开始初始化。初始化之后,不属于当前宿主的插件将会被过滤掉</summary>
  7353. </member>
  7354. <member name="T:NewLife.Model.IServer">
  7355. <summary>服务接口。</summary>
  7356. <remarks>服务代理XAgent可以附加代理实现了IServer接口的服务。</remarks>
  7357. </member>
  7358. <member name="M:NewLife.Model.IServer.Start">
  7359. <summary>开始</summary>
  7360. </member>
  7361. <member name="M:NewLife.Model.IServer.Stop(System.String)">
  7362. <summary>停止</summary>
  7363. <param name="reason">关闭原因。便于日志分析</param>
  7364. </member>
  7365. <member name="T:NewLife.Model.IServiceScope">
  7366. <summary>范围服务。该范围生命周期内,每个服务类型只有一个实例</summary>
  7367. <remarks>
  7368. 满足Singleton和Scoped的要求,暂时无法满足Transient的要求(仍然只有一份)。
  7369. </remarks>
  7370. </member>
  7371. <member name="P:NewLife.Model.IServiceScope.ServiceProvider">
  7372. <summary>服务提供者</summary>
  7373. </member>
  7374. <member name="T:NewLife.Model.IServiceScopeFactory">
  7375. <summary>范围服务工厂</summary>
  7376. </member>
  7377. <member name="M:NewLife.Model.IServiceScopeFactory.CreateScope">
  7378. <summary>创建范围服务</summary>
  7379. <returns></returns>
  7380. </member>
  7381. <member name="T:NewLife.Model.ModelExtension">
  7382. <summary>模型扩展</summary>
  7383. </member>
  7384. <member name="M:NewLife.Model.ModelExtension.GetService``1(System.IServiceProvider)">
  7385. <summary>获取指定类型的服务对象</summary>
  7386. <typeparam name="T"></typeparam>
  7387. <param name="provider"></param>
  7388. <returns></returns>
  7389. </member>
  7390. <member name="M:NewLife.Model.ModelExtension.GetRequiredService(System.IServiceProvider,System.Type)">
  7391. <summary>获取必要的服务,不存在时抛出异常</summary>
  7392. <param name="provider">服务提供者</param>
  7393. <param name="serviceType">服务类型</param>
  7394. <returns></returns>
  7395. </member>
  7396. <member name="M:NewLife.Model.ModelExtension.GetRequiredService``1(System.IServiceProvider)">
  7397. <summary>获取必要的服务,不存在时抛出异常</summary>
  7398. <typeparam name="T">服务类型</typeparam>
  7399. <param name="provider">服务提供者</param>
  7400. <returns></returns>
  7401. </member>
  7402. <member name="M:NewLife.Model.ModelExtension.GetServices``1(System.IServiceProvider)">
  7403. <summary>获取一批服务</summary>
  7404. <typeparam name="T">服务类型</typeparam>
  7405. <param name="provider">服务提供者</param>
  7406. <returns></returns>
  7407. </member>
  7408. <member name="M:NewLife.Model.ModelExtension.GetServices(System.IServiceProvider,System.Type)">
  7409. <summary>获取一批服务</summary>
  7410. <param name="provider">服务提供者</param>
  7411. <param name="serviceType">服务类型</param>
  7412. <returns></returns>
  7413. </member>
  7414. <member name="M:NewLife.Model.ModelExtension.CreateScope(System.IServiceProvider)">
  7415. <summary>创建范围作用域,该作用域内提供者解析一份数据</summary>
  7416. <param name="provider">服务提供者</param>
  7417. <returns></returns>
  7418. </member>
  7419. <member name="M:NewLife.Model.ModelExtension.CreateInstance(System.IServiceProvider,System.Type)">
  7420. <summary>创建服务对象,使用服务提供者来填充构造函数</summary>
  7421. <param name="provider">服务提供者</param>
  7422. <param name="serviceType">服务类型</param>
  7423. <returns></returns>
  7424. </member>
  7425. <member name="T:NewLife.Model.ObjectContainer">
  7426. <summary>轻量级对象容器,支持注入</summary>
  7427. <remarks>
  7428. 文档 https://newlifex.com/core/object_container
  7429. </remarks>
  7430. </member>
  7431. <member name="P:NewLife.Model.ObjectContainer.Current">
  7432. <summary>当前容器</summary>
  7433. </member>
  7434. <member name="P:NewLife.Model.ObjectContainer.Provider">
  7435. <summary>当前容器提供者</summary>
  7436. </member>
  7437. <member name="P:NewLife.Model.ObjectContainer.Services">
  7438. <summary>服务集合</summary>
  7439. </member>
  7440. <member name="P:NewLife.Model.ObjectContainer.Count">
  7441. <summary>注册项个数</summary>
  7442. </member>
  7443. <member name="M:NewLife.Model.ObjectContainer.Add(NewLife.Model.IObject)">
  7444. <summary>添加,允许重复添加同一个服务</summary>
  7445. <param name="item"></param>
  7446. </member>
  7447. <member name="M:NewLife.Model.ObjectContainer.TryAdd(NewLife.Model.IObject)">
  7448. <summary>尝试添加,不允许重复添加同一个服务</summary>
  7449. <param name="item"></param>
  7450. </member>
  7451. <member name="M:NewLife.Model.ObjectContainer.Register(System.Type,System.Type,System.Object)">
  7452. <summary>注册</summary>
  7453. <param name="serviceType">接口类型</param>
  7454. <param name="implementationType">实现类型</param>
  7455. <param name="instance">实例</param>
  7456. <returns></returns>
  7457. </member>
  7458. <member name="M:NewLife.Model.ObjectContainer.Resolve(System.Type,System.IServiceProvider)">
  7459. <summary>在指定容器中解析类型的实例</summary>
  7460. <param name="serviceType">接口类型</param>
  7461. <param name="serviceProvider">容器</param>
  7462. <returns></returns>
  7463. </member>
  7464. <member name="M:NewLife.Model.ObjectContainer.Resolve(NewLife.Model.IObject,System.IServiceProvider)">
  7465. <summary>在指定容器中解析类型的实例</summary>
  7466. <param name="item"></param>
  7467. <param name="serviceProvider"></param>
  7468. <returns></returns>
  7469. </member>
  7470. <member name="M:NewLife.Model.ObjectContainer.ToString">
  7471. <summary>已重载。</summary>
  7472. <returns></returns>
  7473. </member>
  7474. <member name="T:NewLife.Model.ServiceDescriptor">
  7475. <summary>对象映射</summary>
  7476. </member>
  7477. <member name="P:NewLife.Model.ServiceDescriptor.ServiceType">
  7478. <summary>服务类型</summary>
  7479. </member>
  7480. <member name="P:NewLife.Model.ServiceDescriptor.ImplementationType">
  7481. <summary>实现类型</summary>
  7482. </member>
  7483. <member name="P:NewLife.Model.ServiceDescriptor.Lifetime">
  7484. <summary>生命周期</summary>
  7485. </member>
  7486. <member name="P:NewLife.Model.ServiceDescriptor.Instance">
  7487. <summary>实例</summary>
  7488. </member>
  7489. <member name="P:NewLife.Model.ServiceDescriptor.Factory">
  7490. <summary>对象工厂</summary>
  7491. </member>
  7492. <member name="M:NewLife.Model.ServiceDescriptor.#ctor(System.Type)">
  7493. <summary>实例化</summary>
  7494. <param name="serviceType"></param>
  7495. </member>
  7496. <member name="M:NewLife.Model.ServiceDescriptor.#ctor(System.Type,System.Type)">
  7497. <summary>实例化</summary>
  7498. <param name="serviceType"></param>
  7499. <param name="implementationType"></param>
  7500. </member>
  7501. <member name="M:NewLife.Model.ServiceDescriptor.#ctor(System.Type,System.Type,System.Object)">
  7502. <summary>实例化</summary>
  7503. <param name="serviceType"></param>
  7504. <param name="implementationType"></param>
  7505. <param name="instance"></param>
  7506. </member>
  7507. <member name="M:NewLife.Model.ServiceDescriptor.ToString">
  7508. <summary>显示友好名称</summary>
  7509. <returns></returns>
  7510. </member>
  7511. <member name="P:NewLife.Model.ServiceProvider.Container">
  7512. <summary>容器</summary>
  7513. </member>
  7514. <member name="T:NewLife.Model.ObjectContainerHelper">
  7515. <summary>对象容器助手。扩展方法专用</summary>
  7516. </member>
  7517. <member name="M:NewLife.Model.ObjectContainerHelper.AddSingleton(NewLife.Model.IObjectContainer,System.Type,System.Type)">
  7518. <summary>添加单实例,指定实现类型</summary>
  7519. <param name="container"></param>
  7520. <param name="serviceType"></param>
  7521. <param name="implementationType"></param>
  7522. <returns></returns>
  7523. </member>
  7524. <member name="M:NewLife.Model.ObjectContainerHelper.AddSingleton``2(NewLife.Model.IObjectContainer)">
  7525. <summary>添加单实例,指定实现类型</summary>
  7526. <typeparam name="TService"></typeparam>
  7527. <typeparam name="TImplementation"></typeparam>
  7528. <param name="container"></param>
  7529. <returns></returns>
  7530. </member>
  7531. <member name="M:NewLife.Model.ObjectContainerHelper.AddSingleton(NewLife.Model.IObjectContainer,System.Type,System.Func{System.IServiceProvider,System.Object})">
  7532. <summary>添加单实例,指定实例工厂</summary>
  7533. <param name="container"></param>
  7534. <param name="serviceType"></param>
  7535. <param name="factory"></param>
  7536. <returns></returns>
  7537. </member>
  7538. <member name="M:NewLife.Model.ObjectContainerHelper.AddSingleton``1(NewLife.Model.IObjectContainer,System.Func{System.IServiceProvider,``0})">
  7539. <summary>添加单实例,指定实例工厂</summary>
  7540. <typeparam name="TService"></typeparam>
  7541. <param name="container"></param>
  7542. <param name="factory"></param>
  7543. <returns></returns>
  7544. </member>
  7545. <member name="M:NewLife.Model.ObjectContainerHelper.AddSingleton(NewLife.Model.IObjectContainer,System.Type,System.Object)">
  7546. <summary>添加单实例,指定实例</summary>
  7547. <param name="container"></param>
  7548. <param name="serviceType"></param>
  7549. <param name="instance"></param>
  7550. <returns></returns>
  7551. </member>
  7552. <member name="M:NewLife.Model.ObjectContainerHelper.AddSingleton``1(NewLife.Model.IObjectContainer,``0)">
  7553. <summary>添加单实例,指定实例</summary>
  7554. <typeparam name="TService"></typeparam>
  7555. <param name="container"></param>
  7556. <param name="instance"></param>
  7557. <returns></returns>
  7558. </member>
  7559. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddSingleton(NewLife.Model.IObjectContainer,System.Type,System.Type)">
  7560. <summary>尝试添加单实例,指定实现类型</summary>
  7561. <param name="container"></param>
  7562. <param name="serviceType"></param>
  7563. <param name="implementationType"></param>
  7564. <returns></returns>
  7565. </member>
  7566. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddSingleton``2(NewLife.Model.IObjectContainer)">
  7567. <summary>尝试添加单实例,指定实现类型</summary>
  7568. <typeparam name="TService"></typeparam>
  7569. <typeparam name="TImplementation"></typeparam>
  7570. <param name="container"></param>
  7571. <returns></returns>
  7572. </member>
  7573. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddSingleton``1(NewLife.Model.IObjectContainer,``0)">
  7574. <summary>尝试添加单实例,指定实例</summary>
  7575. <typeparam name="TService"></typeparam>
  7576. <param name="container"></param>
  7577. <param name="instance"></param>
  7578. <returns></returns>
  7579. </member>
  7580. <member name="M:NewLife.Model.ObjectContainerHelper.AddScoped(NewLife.Model.IObjectContainer,System.Type,System.Type)">
  7581. <summary>添加范围容器实例,指定实现类型</summary>
  7582. <param name="container"></param>
  7583. <param name="serviceType"></param>
  7584. <param name="implementationType"></param>
  7585. <returns></returns>
  7586. </member>
  7587. <member name="M:NewLife.Model.ObjectContainerHelper.AddScoped``2(NewLife.Model.IObjectContainer)">
  7588. <summary>添加范围容器实例,指定实现类型</summary>
  7589. <typeparam name="TService"></typeparam>
  7590. <typeparam name="TImplementation"></typeparam>
  7591. <param name="container"></param>
  7592. <returns></returns>
  7593. </member>
  7594. <member name="M:NewLife.Model.ObjectContainerHelper.AddScoped``1(NewLife.Model.IObjectContainer)">
  7595. <summary>添加范围容器实例,指定实现类型</summary>
  7596. <typeparam name="TService"></typeparam>
  7597. <param name="container"></param>
  7598. <returns></returns>
  7599. </member>
  7600. <member name="M:NewLife.Model.ObjectContainerHelper.AddScoped(NewLife.Model.IObjectContainer,System.Type,System.Func{System.IServiceProvider,System.Object})">
  7601. <summary>添加范围容器实例,指定实现工厂</summary>
  7602. <param name="container"></param>
  7603. <param name="serviceType"></param>
  7604. <param name="factory"></param>
  7605. <returns></returns>
  7606. </member>
  7607. <member name="M:NewLife.Model.ObjectContainerHelper.AddScoped``1(NewLife.Model.IObjectContainer,System.Func{System.IServiceProvider,System.Object})">
  7608. <summary>添加范围容器实例,指定实现工厂</summary>
  7609. <typeparam name="TService"></typeparam>
  7610. <param name="container"></param>
  7611. <param name="factory"></param>
  7612. <returns></returns>
  7613. </member>
  7614. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddScoped(NewLife.Model.IObjectContainer,System.Type,System.Type)">
  7615. <summary>添加范围容器实例,指定实现类型</summary>
  7616. <param name="container"></param>
  7617. <param name="serviceType"></param>
  7618. <param name="implementationType"></param>
  7619. <returns></returns>
  7620. </member>
  7621. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddScoped``2(NewLife.Model.IObjectContainer)">
  7622. <summary>尝试添加范围容器实例,指定实现类型</summary>
  7623. <typeparam name="TService"></typeparam>
  7624. <typeparam name="TImplementation"></typeparam>
  7625. <param name="container"></param>
  7626. <returns></returns>
  7627. </member>
  7628. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddScoped``1(NewLife.Model.IObjectContainer,``0)">
  7629. <summary>尝试添加范围容器实例,指定实例</summary>
  7630. <typeparam name="TService"></typeparam>
  7631. <param name="container"></param>
  7632. <param name="instance"></param>
  7633. <returns></returns>
  7634. </member>
  7635. <member name="M:NewLife.Model.ObjectContainerHelper.AddTransient(NewLife.Model.IObjectContainer,System.Type,System.Type)">
  7636. <summary>添加瞬态实例,指定实现类型</summary>
  7637. <param name="container"></param>
  7638. <param name="serviceType"></param>
  7639. <param name="implementationType"></param>
  7640. <returns></returns>
  7641. </member>
  7642. <member name="M:NewLife.Model.ObjectContainerHelper.AddTransient``2(NewLife.Model.IObjectContainer)">
  7643. <summary>添加瞬态实例,指定实现类型</summary>
  7644. <typeparam name="TService"></typeparam>
  7645. <typeparam name="TImplementation"></typeparam>
  7646. <param name="container"></param>
  7647. <returns></returns>
  7648. </member>
  7649. <member name="M:NewLife.Model.ObjectContainerHelper.AddTransient``1(NewLife.Model.IObjectContainer)">
  7650. <summary>添加瞬态实例,指定实现类型</summary>
  7651. <typeparam name="TService"></typeparam>
  7652. <param name="container"></param>
  7653. <returns></returns>
  7654. </member>
  7655. <member name="M:NewLife.Model.ObjectContainerHelper.AddTransient(NewLife.Model.IObjectContainer,System.Type,System.Func{System.IServiceProvider,System.Object})">
  7656. <summary>添加瞬态实例,指定实现工厂</summary>
  7657. <param name="container"></param>
  7658. <param name="serviceType"></param>
  7659. <param name="factory"></param>
  7660. <returns></returns>
  7661. </member>
  7662. <member name="M:NewLife.Model.ObjectContainerHelper.AddTransient``1(NewLife.Model.IObjectContainer,System.Func{System.IServiceProvider,System.Object})">
  7663. <summary>添加瞬态实例,指定实现工厂</summary>
  7664. <typeparam name="TService"></typeparam>
  7665. <param name="container"></param>
  7666. <param name="factory"></param>
  7667. <returns></returns>
  7668. </member>
  7669. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddTransient(NewLife.Model.IObjectContainer,System.Type,System.Type)">
  7670. <summary>添加瞬态实例,指定实现类型</summary>
  7671. <param name="container"></param>
  7672. <param name="serviceType"></param>
  7673. <param name="implementationType"></param>
  7674. <returns></returns>
  7675. </member>
  7676. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddTransient``2(NewLife.Model.IObjectContainer)">
  7677. <summary>尝试添加瞬态实例,指定实现类型</summary>
  7678. <typeparam name="TService"></typeparam>
  7679. <typeparam name="TImplementation"></typeparam>
  7680. <param name="container"></param>
  7681. <returns></returns>
  7682. </member>
  7683. <member name="M:NewLife.Model.ObjectContainerHelper.TryAddTransient``1(NewLife.Model.IObjectContainer,``0)">
  7684. <summary>尝试添加瞬态实例,指定实例</summary>
  7685. <typeparam name="TService"></typeparam>
  7686. <param name="container"></param>
  7687. <param name="instance"></param>
  7688. <returns></returns>
  7689. </member>
  7690. <member name="M:NewLife.Model.ObjectContainerHelper.BuildServiceProvider(NewLife.Model.IObjectContainer)">
  7691. <summary>从对象容器创建服务提供者</summary>
  7692. <param name="container"></param>
  7693. <returns></returns>
  7694. </member>
  7695. <member name="M:NewLife.Model.ObjectContainerHelper.BuildHost(NewLife.Model.IObjectContainer)">
  7696. <summary>从对象容器创建应用主机</summary>
  7697. <param name="container"></param>
  7698. <returns></returns>
  7699. </member>
  7700. <member name="M:NewLife.Model.ObjectContainerHelper.Resolve``1(NewLife.Model.IObjectContainer)">
  7701. <summary>解析类型的实例</summary>
  7702. <typeparam name="TService">接口类型</typeparam>
  7703. <param name="container">对象容器</param>
  7704. <returns></returns>
  7705. </member>
  7706. <member name="T:NewLife.Net.Handlers.IMatchQueue">
  7707. <summary>消息匹配队列接口。用于把响应数据包配对到请求包</summary>
  7708. </member>
  7709. <member name="M:NewLife.Net.Handlers.IMatchQueue.Add(System.Object,System.Object,System.Int32,System.Threading.Tasks.TaskCompletionSource{System.Object})">
  7710. <summary>加入请求队列</summary>
  7711. <param name="owner">拥有者</param>
  7712. <param name="request">请求消息</param>
  7713. <param name="msTimeout">超时取消时间</param>
  7714. <param name="source">任务源</param>
  7715. </member>
  7716. <member name="M:NewLife.Net.Handlers.IMatchQueue.Match(System.Object,System.Object,System.Object,System.Func{System.Object,System.Object,System.Boolean})">
  7717. <summary>检查请求队列是否有匹配该响应的请求</summary>
  7718. <param name="owner">拥有者</param>
  7719. <param name="response">响应消息</param>
  7720. <param name="result">任务结果</param>
  7721. <param name="callback">用于检查匹配的回调</param>
  7722. <returns></returns>
  7723. </member>
  7724. <member name="M:NewLife.Net.Handlers.IMatchQueue.Clear">
  7725. <summary>清空队列</summary>
  7726. </member>
  7727. <member name="T:NewLife.Net.Handlers.DefaultMatchQueue">
  7728. <summary>消息匹配队列。子类可重载以自定义请求响应匹配逻辑</summary>
  7729. </member>
  7730. <member name="M:NewLife.Net.Handlers.DefaultMatchQueue.#ctor(System.Int32)">
  7731. <summary>按指定大小来初始化队列</summary>
  7732. <param name="size"></param>
  7733. </member>
  7734. <member name="M:NewLife.Net.Handlers.DefaultMatchQueue.Add(System.Object,System.Object,System.Int32,System.Threading.Tasks.TaskCompletionSource{System.Object})">
  7735. <summary>加入请求队列</summary>
  7736. <param name="owner">拥有者</param>
  7737. <param name="request">请求的数据</param>
  7738. <param name="msTimeout">超时取消时间</param>
  7739. <param name="source">任务源</param>
  7740. </member>
  7741. <member name="M:NewLife.Net.Handlers.DefaultMatchQueue.Match(System.Object,System.Object,System.Object,System.Func{System.Object,System.Object,System.Boolean})">
  7742. <summary>检查请求队列是否有匹配该响应的请求</summary>
  7743. <param name="owner">拥有者</param>
  7744. <param name="response">响应消息</param>
  7745. <param name="result">任务结果</param>
  7746. <param name="callback">用于检查匹配的回调</param>
  7747. <returns></returns>
  7748. </member>
  7749. <member name="M:NewLife.Net.Handlers.DefaultMatchQueue.Check(System.Object)">
  7750. <summary>定时检查发送队列,超时未收到响应则重发</summary>
  7751. <param name="state"></param>
  7752. </member>
  7753. <member name="M:NewLife.Net.Handlers.DefaultMatchQueue.Clear">
  7754. <summary>清空队列</summary>
  7755. </member>
  7756. <member name="T:NewLife.Net.Handlers.JsonCodec">
  7757. <summary>Json编码器。用于把用户对象编码为Json字符串</summary>
  7758. </member>
  7759. <member name="M:NewLife.Net.Handlers.JsonCodec.Write(NewLife.Model.IHandlerContext,System.Object)">
  7760. <summary>发送消息时,写入数据,编码并加入队列</summary>
  7761. <remarks>
  7762. 遇到消息T时,调用Encode编码并加入队列。
  7763. Encode返回空时,跳出调用链。
  7764. </remarks>
  7765. <param name="context"></param>
  7766. <param name="message"></param>
  7767. <returns></returns>
  7768. </member>
  7769. <member name="M:NewLife.Net.Handlers.JsonCodec.Read(NewLife.Model.IHandlerContext,System.Object)">
  7770. <summary>接收数据后,读取数据包,Decode解码得到消息</summary>
  7771. <remarks>
  7772. Decode可以返回多个消息,每个消息调用一次下一级处理器。
  7773. Decode返回空时,跳出调用链。
  7774. </remarks>
  7775. <param name="context"></param>
  7776. <param name="message"></param>
  7777. <returns></returns>
  7778. </member>
  7779. <member name="T:NewLife.Net.Handlers.LengthFieldCodec">
  7780. <summary>长度字段作为头部</summary>
  7781. </member>
  7782. <member name="P:NewLife.Net.Handlers.LengthFieldCodec.Offset">
  7783. <summary>长度所在位置</summary>
  7784. </member>
  7785. <member name="P:NewLife.Net.Handlers.LengthFieldCodec.Size">
  7786. <summary>长度占据字节数,1/2/4个字节,0表示压缩编码整数,默认2</summary>
  7787. </member>
  7788. <member name="P:NewLife.Net.Handlers.LengthFieldCodec.Expire">
  7789. <summary>过期时间,超过该时间后按废弃数据处理,默认500ms</summary>
  7790. </member>
  7791. <member name="M:NewLife.Net.Handlers.LengthFieldCodec.Encode(NewLife.Model.IHandlerContext,NewLife.Data.Packet)">
  7792. <summary>编码</summary>
  7793. <param name="context"></param>
  7794. <param name="msg"></param>
  7795. <returns></returns>
  7796. </member>
  7797. <member name="M:NewLife.Net.Handlers.LengthFieldCodec.Decode(NewLife.Model.IHandlerContext,NewLife.Data.Packet)">
  7798. <summary>解码</summary>
  7799. <param name="context"></param>
  7800. <param name="pk"></param>
  7801. <returns></returns>
  7802. </member>
  7803. <member name="M:NewLife.Net.Handlers.LengthFieldCodec.Close(NewLife.Model.IHandlerContext,System.String)">
  7804. <summary>连接关闭时,清空粘包编码器</summary>
  7805. <param name="context"></param>
  7806. <param name="reason"></param>
  7807. <returns></returns>
  7808. </member>
  7809. <member name="T:NewLife.Net.Handlers.MessageCodec`1">
  7810. <summary>消息封包编码器</summary>
  7811. <remarks>
  7812. 该编码器向基于请求响应模型的协议提供了匹配队列,能够根据响应序列号去匹配请求。
  7813. 消息封包编码器实现网络处理器,具体用法是添加网络客户端或服务端主机。主机收发消息时,会自动调用编码器对消息进行编码解码。
  7814. 发送消息SendMessage时调用编码器Write/Encode方法;
  7815. 接收消息时调用编码器Read/Decode方法,消息存放在ReceivedEventArgs.Message。
  7816. 网络编码器支持多层添加,每个编码器处理后交给下一个编码器处理,直到最后一个编码器,然后发送出去。
  7817. </remarks>
  7818. </member>
  7819. <member name="P:NewLife.Net.Handlers.MessageCodec`1.Queue">
  7820. <summary>消息队列。用于匹配请求响应包</summary>
  7821. </member>
  7822. <member name="P:NewLife.Net.Handlers.MessageCodec`1.QueueSize">
  7823. <summary>匹配队列大小</summary>
  7824. </member>
  7825. <member name="P:NewLife.Net.Handlers.MessageCodec`1.Timeout">
  7826. <summary>请求消息匹配队列中等待响应的超时时间。默认30_000ms</summary>
  7827. <remarks>
  7828. 某些RPC场景需要更长时间等待响应时,可以加大该值。
  7829. 该值不宜过大,否则会导致请求队列过大,影响并行请求数。
  7830. </remarks>
  7831. </member>
  7832. <member name="P:NewLife.Net.Handlers.MessageCodec`1.MaxCache">
  7833. <summary>最大缓存待处理数据。默认10M</summary>
  7834. </member>
  7835. <member name="P:NewLife.Net.Handlers.MessageCodec`1.UserPacket">
  7836. <summary>使用数据包。写入时数据包转消息,读取时消息自动解包返回数据负载,要求T实现IMessage。默认true</summary>
  7837. </member>
  7838. <member name="M:NewLife.Net.Handlers.MessageCodec`1.Write(NewLife.Model.IHandlerContext,System.Object)">
  7839. <summary>发送消息时,写入数据,编码并加入队列</summary>
  7840. <remarks>
  7841. 遇到消息T时,调用Encode编码并加入队列。
  7842. Encode返回空时,跳出调用链。
  7843. </remarks>
  7844. <param name="context"></param>
  7845. <param name="message"></param>
  7846. <returns></returns>
  7847. </member>
  7848. <member name="M:NewLife.Net.Handlers.MessageCodec`1.Encode(NewLife.Model.IHandlerContext,`0)">
  7849. <summary>编码消息,一般是编码为Packet后传给下一个处理器</summary>
  7850. <param name="context"></param>
  7851. <param name="msg"></param>
  7852. <returns></returns>
  7853. </member>
  7854. <member name="M:NewLife.Net.Handlers.MessageCodec`1.AddToQueue(NewLife.Model.IHandlerContext,`0)">
  7855. <summary>把请求加入队列,等待响应到来时建立请求响应匹配</summary>
  7856. <param name="context"></param>
  7857. <param name="msg"></param>
  7858. <returns></returns>
  7859. </member>
  7860. <member name="M:NewLife.Net.Handlers.MessageCodec`1.Close(NewLife.Model.IHandlerContext,System.String)">
  7861. <summary>连接关闭时,清空粘包编码器</summary>
  7862. <param name="context"></param>
  7863. <param name="reason"></param>
  7864. <returns></returns>
  7865. </member>
  7866. <member name="M:NewLife.Net.Handlers.MessageCodec`1.Read(NewLife.Model.IHandlerContext,System.Object)">
  7867. <summary>接收数据后,读取数据包,Decode解码得到消息</summary>
  7868. <remarks>
  7869. Decode可以返回多个消息,每个消息调用一次下一级处理器。
  7870. Decode返回空时,跳出调用链。
  7871. </remarks>
  7872. <param name="context"></param>
  7873. <param name="message"></param>
  7874. <returns></returns>
  7875. </member>
  7876. <member name="M:NewLife.Net.Handlers.MessageCodec`1.Decode(NewLife.Model.IHandlerContext,NewLife.Data.Packet)">
  7877. <summary>解码</summary>
  7878. <param name="context"></param>
  7879. <param name="pk"></param>
  7880. <returns></returns>
  7881. </member>
  7882. <member name="M:NewLife.Net.Handlers.MessageCodec`1.IsMatch(System.Object,System.Object)">
  7883. <summary>是否匹配响应</summary>
  7884. <param name="request"></param>
  7885. <param name="response"></param>
  7886. <returns></returns>
  7887. </member>
  7888. <member name="M:NewLife.Net.Handlers.MessageCodec`1.GetLength(NewLife.Data.Packet,System.Int32,System.Int32)">
  7889. <summary>从数据流中获取整帧数据长度</summary>
  7890. <param name="pk">数据包</param>
  7891. <param name="offset">长度的偏移量</param>
  7892. <param name="size">长度大小。0变长,1/2/4小端字节,-2/-4大端字节</param>
  7893. <returns>数据帧长度(包含头部长度位)</returns>
  7894. </member>
  7895. <member name="T:NewLife.Net.Handlers.SplitDataCodec">
  7896. <summary>
  7897. 按指定分割字节来处理粘包的处理器
  7898. </summary>
  7899. <remarks>
  7900. 默认以"0x0D 0x0A"即换行来分割,分割的包包含分割字节本身,使用时请注意。
  7901. 默认分割方式:ISocket.Add&lt;SplitDataCodec&gt;()
  7902. 自定义分割方式:ISocket.Add(new SplitDataHandler { SplitData = 自定义分割字节数组 })
  7903. 自定义最大缓存大小方式:ISocket.Add(new SplitDataHandler { MaxCacheDataLength = 2048 })
  7904. 自定义方式:ISocket.Add(new SplitDataHandler { MaxCacheDataLength = 2048, SplitData = 自定义分割字节数组 })
  7905. </remarks>
  7906. </member>
  7907. <member name="P:NewLife.Net.Handlers.SplitDataCodec.SplitData">
  7908. <summary>
  7909. 粘包分割字节数据(默认0x0D,0x0A)
  7910. </summary>
  7911. </member>
  7912. <member name="P:NewLife.Net.Handlers.SplitDataCodec.MaxCacheDataLength">
  7913. <summary>
  7914. 最大缓存待处理数据,默认1024字节
  7915. </summary>
  7916. </member>
  7917. <member name="M:NewLife.Net.Handlers.SplitDataCodec.Read(NewLife.Model.IHandlerContext,System.Object)">
  7918. <summary>读取数据</summary>
  7919. <param name="context"></param>
  7920. <param name="message"></param>
  7921. <returns></returns>
  7922. </member>
  7923. <member name="M:NewLife.Net.Handlers.SplitDataCodec.Close(NewLife.Model.IHandlerContext,System.String)">
  7924. <summary>连接关闭时,清空粘包编码器</summary>
  7925. <param name="context"></param>
  7926. <param name="reason"></param>
  7927. <returns></returns>
  7928. </member>
  7929. <member name="M:NewLife.Net.Handlers.SplitDataCodec.Decode(NewLife.Model.IHandlerContext,NewLife.Data.Packet)">
  7930. <summary>解码</summary>
  7931. <param name="context"></param>
  7932. <param name="pk">包</param>
  7933. <returns></returns>
  7934. </member>
  7935. <member name="M:NewLife.Net.Handlers.SplitDataCodec.GetLineLength(NewLife.Data.Packet)">
  7936. <summary>
  7937. 获取包含分割字节在内的数据长度
  7938. </summary>
  7939. <param name="pk"></param>
  7940. <returns></returns>
  7941. </member>
  7942. <member name="T:NewLife.Net.Handlers.StandardCodec">
  7943. <summary>标准网络封包。头部4字节定长</summary>
  7944. <remarks>
  7945. 文档 https://newlifex.com/core/srmp
  7946. </remarks>
  7947. </member>
  7948. <member name="M:NewLife.Net.Handlers.StandardCodec.Write(NewLife.Model.IHandlerContext,System.Object)">
  7949. <summary>写入数据</summary>
  7950. <param name="context"></param>
  7951. <param name="message"></param>
  7952. <returns></returns>
  7953. </member>
  7954. <member name="M:NewLife.Net.Handlers.StandardCodec.AddToQueue(NewLife.Model.IHandlerContext,NewLife.Messaging.IMessage)">
  7955. <summary>加入队列</summary>
  7956. <param name="context"></param>
  7957. <param name="msg"></param>
  7958. <returns></returns>
  7959. </member>
  7960. <member name="M:NewLife.Net.Handlers.StandardCodec.Decode(NewLife.Model.IHandlerContext,NewLife.Data.Packet)">
  7961. <summary>解码</summary>
  7962. <param name="context"></param>
  7963. <param name="pk"></param>
  7964. <returns></returns>
  7965. </member>
  7966. <member name="M:NewLife.Net.Handlers.StandardCodec.IsMatch(System.Object,System.Object)">
  7967. <summary>是否匹配响应</summary>
  7968. <param name="request"></param>
  7969. <param name="response"></param>
  7970. <returns></returns>
  7971. </member>
  7972. <member name="M:NewLife.Net.Handlers.StandardCodec.Close(NewLife.Model.IHandlerContext,System.String)">
  7973. <summary>连接关闭时,清空粘包编码器</summary>
  7974. <param name="context"></param>
  7975. <param name="reason"></param>
  7976. <returns></returns>
  7977. </member>
  7978. <member name="T:NewLife.Net.Handlers.WebSocketCodec">
  7979. <summary>WebSocket消息编码器</summary>
  7980. </member>
  7981. <member name="M:NewLife.Net.Handlers.WebSocketCodec.Open(NewLife.Model.IHandlerContext)">
  7982. <summary>打开连接</summary>
  7983. <param name="context">上下文</param>
  7984. </member>
  7985. <member name="M:NewLife.Net.Handlers.WebSocketCodec.Close(NewLife.Model.IHandlerContext,System.String)">
  7986. <summary>连接关闭时,清空粘包编码器</summary>
  7987. <param name="context"></param>
  7988. <param name="reason"></param>
  7989. <returns></returns>
  7990. </member>
  7991. <member name="M:NewLife.Net.Handlers.WebSocketCodec.Read(NewLife.Model.IHandlerContext,System.Object)">
  7992. <summary>读取数据</summary>
  7993. <param name="context"></param>
  7994. <param name="message"></param>
  7995. <returns></returns>
  7996. </member>
  7997. <member name="M:NewLife.Net.Handlers.WebSocketCodec.Write(NewLife.Model.IHandlerContext,System.Object)">
  7998. <summary>发送消息时,写入数据</summary>
  7999. <param name="context"></param>
  8000. <param name="message"></param>
  8001. <returns></returns>
  8002. </member>
  8003. <member name="T:NewLife.Net.IDnsResolver">
  8004. <summary>DNS解析器</summary>
  8005. </member>
  8006. <member name="M:NewLife.Net.IDnsResolver.Resolve(System.String)">
  8007. <summary>解析域名</summary>
  8008. <param name="host"></param>
  8009. <returns></returns>
  8010. </member>
  8011. <member name="T:NewLife.Net.DnsResolver">
  8012. <summary>DNS解析器,带有缓存,解析失败时使用旧数据</summary>
  8013. </member>
  8014. <member name="P:NewLife.Net.DnsResolver.Instance">
  8015. <summary>静态实例</summary>
  8016. </member>
  8017. <member name="P:NewLife.Net.DnsResolver.Expire">
  8018. <summary>缓存超时时间</summary>
  8019. </member>
  8020. <member name="M:NewLife.Net.DnsResolver.Resolve(System.String)">
  8021. <summary>解析域名</summary>
  8022. <param name="host"></param>
  8023. <returns></returns>
  8024. </member>
  8025. <member name="T:NewLife.Net.IIPResolver">
  8026. <summary>IP地址提供者</summary>
  8027. </member>
  8028. <member name="M:NewLife.Net.IIPResolver.GetAddress(System.Net.IPAddress)">
  8029. <summary>获取IP地址的物理地址位置</summary>
  8030. <param name="addr"></param>
  8031. <returns></returns>
  8032. </member>
  8033. <member name="T:NewLife.Net.INetHandler">
  8034. <summary>网络数据处理器。可作为业务处理实现,也可以作为前置协议解析</summary>
  8035. </member>
  8036. <member name="M:NewLife.Net.INetHandler.Init(NewLife.Net.INetSession)">
  8037. <summary>建立连接时初始化会话</summary>
  8038. <param name="session">会话</param>
  8039. </member>
  8040. <member name="M:NewLife.Net.INetHandler.Process(NewLife.Data.IData)">
  8041. <summary>处理客户端发来的数据</summary>
  8042. <param name="data"></param>
  8043. </member>
  8044. <member name="T:NewLife.Net.INetSession">
  8045. <summary>网络服务的会话,每个Tcp/Udp连接作为一个会话</summary>
  8046. <remarks>
  8047. 每当收到一个Tcp连接时,创建一个INetSession会话,用于处理该连接的业务。
  8048. 使用Udp服务端时,收到远程节点的第一个数据包时,也会创建一个会话,处理该节点的业务。
  8049. 所有应用服务器以会话<see cref="T:NewLife.Net.INetSession"/>作为业务处理核心。
  8050. 应用服务器收到新会话请求后,通过<see cref="M:NewLife.Net.INetSession.Start"/>启动一个会话处理。
  8051. 会话进行业务处理的过程中,可以通过多个Send方法向客户端发送数据。
  8052. </remarks>
  8053. </member>
  8054. <member name="P:NewLife.Net.INetSession.ID">
  8055. <summary>唯一会话标识。在主服务中唯一标识当前会话,原子自增</summary>
  8056. </member>
  8057. <member name="P:NewLife.Net.INetSession.Host">
  8058. <summary>主服务。负责管理当前会话的主服务器NetServer</summary>
  8059. </member>
  8060. <member name="P:NewLife.Net.INetSession.Server">
  8061. <summary>Socket服务器。当前通讯所在的Socket服务器,其实是TcpServer/UdpServer</summary>
  8062. </member>
  8063. <member name="P:NewLife.Net.INetSession.Session">
  8064. <summary>客户端。跟客户端通讯的那个Socket,其实是服务端TcpSession/UdpSession</summary>
  8065. </member>
  8066. <member name="P:NewLife.Net.INetSession.Remote">
  8067. <summary>客户端地址</summary>
  8068. </member>
  8069. <member name="M:NewLife.Net.INetSession.Start">
  8070. <summary>开始会话处理。</summary>
  8071. </member>
  8072. <member name="M:NewLife.Net.INetSession.Close(System.String)">
  8073. <summary>主动关闭跟客户端的网络连接</summary>
  8074. <param name="reason">断开原因。包括 SendError/RemoveNotAlive/Dispose/GC 等,其中 ConnectionReset 为网络被动断开或对方断开</param>
  8075. </member>
  8076. <member name="E:NewLife.Net.INetSession.Connected">
  8077. <summary>连接创建事件。创建会话之后</summary>
  8078. </member>
  8079. <member name="E:NewLife.Net.INetSession.Disconnected">
  8080. <summary>连接断开事件。包括客户端主动断开、服务端主动断开以及服务端超时下线</summary>
  8081. </member>
  8082. <member name="M:NewLife.Net.INetSession.Send(NewLife.Data.Packet)">
  8083. <summary>发送数据,直达网卡</summary>
  8084. <param name="data">数据包</param>
  8085. </member>
  8086. <member name="M:NewLife.Net.INetSession.Send(System.IO.Stream)">
  8087. <summary>发送数据流,直达网卡</summary>
  8088. <param name="stream"></param>
  8089. <returns></returns>
  8090. </member>
  8091. <member name="M:NewLife.Net.INetSession.Send(System.String,System.Text.Encoding)">
  8092. <summary>发送字符串,直达网卡</summary>
  8093. <param name="msg"></param>
  8094. <param name="encoding"></param>
  8095. </member>
  8096. <member name="M:NewLife.Net.INetSession.SendMessage(System.Object)">
  8097. <summary>通过管道发送消息,不等待响应。管道内对消息进行报文封装处理,最终得到二进制数据进入网卡</summary>
  8098. <param name="message"></param>
  8099. <returns></returns>
  8100. </member>
  8101. <member name="M:NewLife.Net.INetSession.SendMessageAsync(System.Object)">
  8102. <summary>异步发送消息并等待响应。管道内对消息进行报文封装处理,最终得到二进制数据进入网卡</summary>
  8103. <param name="message"></param>
  8104. <returns></returns>
  8105. </member>
  8106. <member name="M:NewLife.Net.INetSession.SendMessageAsync(System.Object,System.Threading.CancellationToken)">
  8107. <summary>异步发送消息并等待响应。管道内对消息进行报文封装处理,最终得到二进制数据进入网卡</summary>
  8108. <param name="message">消息</param>
  8109. <param name="cancellationToken">取消通知</param>
  8110. <returns></returns>
  8111. </member>
  8112. <member name="E:NewLife.Net.INetSession.Received">
  8113. <summary>数据到达事件。包括原始数据包Packet以及管道处理器解码后的业务消息Message</summary>
  8114. </member>
  8115. <member name="T:NewLife.Net.NetSessionEventArgs">
  8116. <summary>会话事件参数</summary>
  8117. </member>
  8118. <member name="P:NewLife.Net.NetSessionEventArgs.Session">
  8119. <summary>会话</summary>
  8120. </member>
  8121. <member name="T:NewLife.Net.ISocket">
  8122. <summary>基础Socket接口</summary>
  8123. <remarks>
  8124. 封装所有基础接口的共有特性!
  8125. 核心设计理念:事件驱动,接口统一,简单易用!
  8126. 异常处理理念:确保主流程简单易用,特殊情况的异常通过事件处理!
  8127. </remarks>
  8128. </member>
  8129. <member name="P:NewLife.Net.ISocket.Name">
  8130. <summary>名称。主要用于日志输出</summary>
  8131. </member>
  8132. <member name="P:NewLife.Net.ISocket.Client">
  8133. <summary>基础Socket对象</summary>
  8134. </member>
  8135. <member name="P:NewLife.Net.ISocket.Local">
  8136. <summary>本地地址</summary>
  8137. </member>
  8138. <member name="P:NewLife.Net.ISocket.Port">
  8139. <summary>端口</summary>
  8140. </member>
  8141. <member name="P:NewLife.Net.ISocket.Pipeline">
  8142. <summary>消息管道。收发消息都经过管道处理器,进行协议编码解码</summary>
  8143. <remarks>
  8144. 1,接收数据解码时,从前向后通过管道处理器;
  8145. 2,发送数据编码时,从后向前通过管道处理器;
  8146. </remarks>
  8147. </member>
  8148. <member name="P:NewLife.Net.ISocket.Log">
  8149. <summary>日志提供者</summary>
  8150. </member>
  8151. <member name="P:NewLife.Net.ISocket.LogSend">
  8152. <summary>是否输出发送日志。默认false</summary>
  8153. </member>
  8154. <member name="P:NewLife.Net.ISocket.LogReceive">
  8155. <summary>是否输出接收日志。默认false</summary>
  8156. </member>
  8157. <member name="P:NewLife.Net.ISocket.Tracer">
  8158. <summary>APM性能追踪器</summary>
  8159. </member>
  8160. <member name="M:NewLife.Net.ISocket.WriteLog(System.String,System.Object[])">
  8161. <summary>已重载。日志加上前缀</summary>
  8162. <param name="format"></param>
  8163. <param name="args"></param>
  8164. </member>
  8165. <member name="E:NewLife.Net.ISocket.Error">
  8166. <summary>错误发生/断开连接时</summary>
  8167. </member>
  8168. <member name="T:NewLife.Net.ISocketClient">
  8169. <summary>Socket客户端</summary>
  8170. <remarks>
  8171. 具备打开关闭
  8172. </remarks>
  8173. </member>
  8174. <member name="P:NewLife.Net.ISocketClient.Timeout">
  8175. <summary>超时。默认3000ms</summary>
  8176. </member>
  8177. <member name="P:NewLife.Net.ISocketClient.Active">
  8178. <summary>是否活动</summary>
  8179. </member>
  8180. <member name="M:NewLife.Net.ISocketClient.Open">
  8181. <summary>打开连接</summary>
  8182. <returns>是否成功</returns>
  8183. </member>
  8184. <member name="M:NewLife.Net.ISocketClient.Close(System.String)">
  8185. <summary>关闭连接</summary>
  8186. <param name="reason">关闭原因。便于日志分析</param>
  8187. <returns>是否成功</returns>
  8188. </member>
  8189. <member name="E:NewLife.Net.ISocketClient.Opened">
  8190. <summary>打开后触发。</summary>
  8191. </member>
  8192. <member name="E:NewLife.Net.ISocketClient.Closed">
  8193. <summary>关闭后触发。可实现掉线重连</summary>
  8194. </member>
  8195. <member name="T:NewLife.Net.ISocketRemote">
  8196. <summary>远程通信Socket,仅具有收发功能</summary>
  8197. </member>
  8198. <member name="P:NewLife.Net.ISocketRemote.ID">
  8199. <summary>标识</summary>
  8200. </member>
  8201. <member name="P:NewLife.Net.ISocketRemote.Remote">
  8202. <summary>远程地址</summary>
  8203. </member>
  8204. <member name="P:NewLife.Net.ISocketRemote.LastTime">
  8205. <summary>最后一次通信时间,主要表示会话活跃时间,包括收发</summary>
  8206. </member>
  8207. <member name="M:NewLife.Net.ISocketRemote.Send(NewLife.Data.Packet)">
  8208. <summary>发送原始数据包</summary>
  8209. <remarks>
  8210. 目标地址由<seealso cref="P:NewLife.Net.ISocketRemote.Remote"/>决定
  8211. </remarks>
  8212. <param name="data">数据包</param>
  8213. <returns>是否成功</returns>
  8214. </member>
  8215. <member name="M:NewLife.Net.ISocketRemote.Receive">
  8216. <summary>接收数据。阻塞当前线程等待返回</summary>
  8217. <returns></returns>
  8218. </member>
  8219. <member name="M:NewLife.Net.ISocketRemote.ReceiveAsync(System.Threading.CancellationToken)">
  8220. <summary>异步接收数据</summary>
  8221. <returns></returns>
  8222. </member>
  8223. <member name="E:NewLife.Net.ISocketRemote.Received">
  8224. <summary>数据到达事件</summary>
  8225. </member>
  8226. <member name="M:NewLife.Net.ISocketRemote.SendMessageAsync(System.Object)">
  8227. <summary>异步发送消息并等待响应</summary>
  8228. <param name="message">消息</param>
  8229. <returns></returns>
  8230. </member>
  8231. <member name="M:NewLife.Net.ISocketRemote.SendMessageAsync(System.Object,System.Threading.CancellationToken)">
  8232. <summary>异步发送消息并等待响应</summary>
  8233. <param name="message">消息</param>
  8234. <param name="cancellationToken">取消通知</param>
  8235. <returns></returns>
  8236. </member>
  8237. <member name="M:NewLife.Net.ISocketRemote.SendMessage(System.Object)">
  8238. <summary>发送消息,不等待响应</summary>
  8239. <param name="message">消息</param>
  8240. <returns></returns>
  8241. </member>
  8242. <member name="M:NewLife.Net.ISocketRemote.Process(NewLife.Data.IData)">
  8243. <summary>处理消息数据帧</summary>
  8244. <param name="data">数据帧</param>
  8245. </member>
  8246. <member name="T:NewLife.Net.SocketRemoteHelper">
  8247. <summary>远程通信Socket扩展</summary>
  8248. </member>
  8249. <member name="M:NewLife.Net.SocketRemoteHelper.Send(NewLife.Net.ISocketRemote,System.IO.Stream)">
  8250. <summary>发送数据流</summary>
  8251. <param name="session">会话</param>
  8252. <param name="stream">数据流</param>
  8253. <returns>返回是否成功</returns>
  8254. </member>
  8255. <member name="M:NewLife.Net.SocketRemoteHelper.Send(NewLife.Net.ISocketRemote,System.String,System.Text.Encoding)">
  8256. <summary>发送字符串</summary>
  8257. <param name="session">会话</param>
  8258. <param name="msg">要发送的字符串</param>
  8259. <param name="encoding">文本编码,默认null表示UTF-8编码</param>
  8260. <returns>返回自身,用于链式写法</returns>
  8261. </member>
  8262. <member name="M:NewLife.Net.SocketRemoteHelper.ReceiveString(NewLife.Net.ISocketRemote,System.Text.Encoding)">
  8263. <summary>接收字符串</summary>
  8264. <param name="session">会话</param>
  8265. <param name="encoding">文本编码,默认null表示UTF-8编码</param>
  8266. <returns></returns>
  8267. </member>
  8268. <member name="M:NewLife.Net.SocketRemoteHelper.Add``1(NewLife.Net.ISocket)">
  8269. <summary>添加处理器</summary>
  8270. <typeparam name="THandler"></typeparam>
  8271. <param name="session">会话</param>
  8272. </member>
  8273. <member name="M:NewLife.Net.SocketRemoteHelper.Add(NewLife.Net.ISocket,NewLife.Model.IHandler)">
  8274. <summary>添加处理器</summary>
  8275. <param name="session">会话</param>
  8276. <param name="handler">处理器</param>
  8277. </member>
  8278. <member name="M:NewLife.Net.SocketRemoteHelper.SendMessages(NewLife.Net.ISocketRemote,System.IO.Stream)">
  8279. <summary>切分数据流为多个数据包消息进行发送,接收方按顺序组装</summary>
  8280. <param name="session">会话</param>
  8281. <param name="stream">数据流</param>
  8282. <returns>拆分消息数</returns>
  8283. </member>
  8284. <member name="M:NewLife.Net.SocketRemoteHelper.SendFile(NewLife.Net.ISocketRemote,System.String,System.Boolean)">
  8285. <summary>切分文件流为多个数据包发出,接收方按顺序组装</summary>
  8286. <param name="session"></param>
  8287. <param name="file"></param>
  8288. <param name="compressed"></param>
  8289. <returns></returns>
  8290. </member>
  8291. <member name="T:NewLife.Net.ISocketServer">
  8292. <summary>Socket服务器接口</summary>
  8293. </member>
  8294. <member name="P:NewLife.Net.ISocketServer.Active">
  8295. <summary>是否活动</summary>
  8296. </member>
  8297. <member name="P:NewLife.Net.ISocketServer.SessionTimeout">
  8298. <summary>会话超时时间。默认20*60秒</summary>
  8299. <remarks>
  8300. 对于每一个会话连接,如果超过该时间仍然没有收到任何数据,则断开会话连接。
  8301. </remarks>
  8302. </member>
  8303. <member name="P:NewLife.Net.ISocketServer.Sessions">
  8304. <summary>会话集合。用地址端口作为标识,业务应用自己维持地址端口与业务主键的对应关系。</summary>
  8305. </member>
  8306. <member name="E:NewLife.Net.ISocketServer.NewSession">
  8307. <summary>新会话时触发</summary>
  8308. </member>
  8309. <member name="T:NewLife.Net.ISocketSession">
  8310. <summary>用于与对方进行通讯的Socket会话,仅具有收发功能,也专用于上层应用收发数据</summary>
  8311. <remarks>
  8312. Socket会话发送数据不需要指定远程地址,因为内部已经具有。
  8313. 接收数据时,Tcp接收全部数据,而Udp只接受来自所属远方的数据。
  8314. Socket会话不具有连接和断开的能力,所以需要外部连接好之后再创建Socket会话。
  8315. 但是会话可以销毁,来代替断开。
  8316. 对于Udp额外创建的会话来说,仅仅销毁会话而已。
  8317. 所以,它必须具有收发数据的能力。
  8318. </remarks>
  8319. </member>
  8320. <member name="P:NewLife.Net.ISocketSession.Server">
  8321. <summary>Socket服务器。当前通讯所在的Socket服务器,其实是TcpServer/UdpServer</summary>
  8322. </member>
  8323. <member name="T:NewLife.Net.SessionEventArgs">
  8324. <summary>会话事件参数</summary>
  8325. </member>
  8326. <member name="P:NewLife.Net.SessionEventArgs.Session">
  8327. <summary>会话</summary>
  8328. </member>
  8329. <member name="M:NewLife.Net.SessionEventArgs.#ctor(NewLife.Net.ISocketSession)">
  8330. <summary>实例化</summary>
  8331. <param name="session"></param>
  8332. </member>
  8333. <member name="T:NewLife.Net.ITransport">
  8334. <summary>帧数据传输接口</summary>
  8335. <remarks>实现者确保数据以包的形式传输,屏蔽数据的粘包和拆包</remarks>
  8336. </member>
  8337. <member name="P:NewLife.Net.ITransport.Timeout">
  8338. <summary>超时</summary>
  8339. </member>
  8340. <member name="M:NewLife.Net.ITransport.Open">
  8341. <summary>打开</summary>
  8342. </member>
  8343. <member name="M:NewLife.Net.ITransport.Close">
  8344. <summary>关闭</summary>
  8345. </member>
  8346. <member name="M:NewLife.Net.ITransport.Send(NewLife.Data.Packet)">
  8347. <summary>写入数据</summary>
  8348. <param name="data">数据包</param>
  8349. </member>
  8350. <member name="M:NewLife.Net.ITransport.Receive">
  8351. <summary>读取数据</summary>
  8352. <returns></returns>
  8353. </member>
  8354. <member name="E:NewLife.Net.ITransport.Received">
  8355. <summary>数据到达事件</summary>
  8356. </member>
  8357. <member name="T:NewLife.Net.NetHandlerContext">
  8358. <summary>网络处理器上下文</summary>
  8359. </member>
  8360. <member name="P:NewLife.Net.NetHandlerContext.Session">
  8361. <summary>远程连接</summary>
  8362. </member>
  8363. <member name="P:NewLife.Net.NetHandlerContext.Data">
  8364. <summary>数据帧</summary>
  8365. </member>
  8366. <member name="M:NewLife.Net.NetHandlerContext.FireRead(System.Object)">
  8367. <summary>读取管道过滤后最终处理消息</summary>
  8368. <param name="message"></param>
  8369. </member>
  8370. <member name="M:NewLife.Net.NetHandlerContext.FireWrite(System.Object)">
  8371. <summary>写入管道过滤后最终处理消息</summary>
  8372. <param name="message"></param>
  8373. </member>
  8374. <member name="T:NewLife.Net.NetServer">
  8375. <summary>网络服务器。可同时支持多个Socket服务器,同时支持IPv4和IPv6,同时支持Tcp和Udp</summary>
  8376. <remarks>
  8377. 网络服务器模型,所有网络应用服务器可以通过继承该类实现。
  8378. 该类仅实现了业务应用对网络流的操作,与具体网络协议无关。
  8379. 收到请求<see cref="M:NewLife.Net.NetServer.Server_NewSession(System.Object,NewLife.Net.SessionEventArgs)"/>后,会建立<see cref="M:NewLife.Net.NetServer.CreateSession(NewLife.Net.ISocketSession)"/>会话,并加入到会话集合<see cref="P:NewLife.Net.NetServer.Sessions"/>中,然后启动<see cref="M:NewLife.Net.NetServer.Start"/>会话处理;
  8380. 标准用法:
  8381. 指定端口后直接<see cref="M:NewLife.Net.NetServer.Start"/>,NetServer将同时监听Tcp/Udp和IPv4/IPv6(会检查是否支持)四个端口。
  8382. 高级用法:
  8383. 重载方法<see cref="M:NewLife.Net.NetServer.EnsureCreateServer"/>来创建一个SocketServer并赋值给<see cref="P:NewLife.Net.NetServer.Server"/>属性,<see cref="M:NewLife.Net.NetServer.EnsureCreateServer"/>将会在<see cref="M:NewLife.Net.NetServer.OnStart"/>时首先被调用。
  8384. 超级用法:
  8385. 使用<see cref="M:NewLife.Net.NetServer.AttachServer(NewLife.Net.ISocketServer)"/>方法向网络服务器添加Socket服务,其中第一个将作为默认Socket服务<see cref="P:NewLife.Net.NetServer.Server"/>。
  8386. 如果Socket服务集合<see cref="P:NewLife.Net.NetServer.Servers"/>为空,将依据地址<see cref="P:NewLife.Net.NetServer.Local"/>、端口<see cref="P:NewLife.Net.NetServer.Port"/>、地址族<see cref="P:NewLife.Net.NetServer.AddressFamily"/>、协议<see cref="P:NewLife.Net.NetServer.ProtocolType"/>创建默认Socket服务。
  8387. 如果地址族<see cref="P:NewLife.Net.NetServer.AddressFamily"/>指定为IPv4和IPv6以外的值,将同时创建IPv4和IPv6两个Socket服务;
  8388. 如果协议<see cref="P:NewLife.Net.NetServer.ProtocolType"/>指定为Tcp和Udp以外的值,将同时创建Tcp和Udp两个Socket服务;
  8389. 默认情况下,地址族<see cref="P:NewLife.Net.NetServer.AddressFamily"/>和协议<see cref="P:NewLife.Net.NetServer.ProtocolType"/>都是其它值,所以一共将会创建四个Socket服务(Tcp、Tcpv6、Udp、Udpv6)。
  8390. </remarks>
  8391. </member>
  8392. <member name="P:NewLife.Net.NetServer.Name">
  8393. <summary>服务名</summary>
  8394. </member>
  8395. <member name="P:NewLife.Net.NetServer.Local">
  8396. <summary>本地结点</summary>
  8397. </member>
  8398. <member name="P:NewLife.Net.NetServer.Port">
  8399. <summary>端口</summary>
  8400. </member>
  8401. <member name="P:NewLife.Net.NetServer.ProtocolType">
  8402. <summary>协议类型</summary>
  8403. </member>
  8404. <member name="P:NewLife.Net.NetServer.AddressFamily">
  8405. <summary>寻址方案</summary>
  8406. </member>
  8407. <member name="P:NewLife.Net.NetServer.Servers">
  8408. <summary>服务器集合</summary>
  8409. </member>
  8410. <member name="P:NewLife.Net.NetServer.Server">
  8411. <summary>服务器。返回服务器集合中的第一个服务器</summary>
  8412. </member>
  8413. <member name="P:NewLife.Net.NetServer.Active">
  8414. <summary>是否活动</summary>
  8415. </member>
  8416. <member name="P:NewLife.Net.NetServer.SessionTimeout">
  8417. <summary>会话超时时间。默认0秒,使用SocketServer默认值</summary>
  8418. <remarks>
  8419. 对于每一个会话连接,如果超过该时间仍然没有收到任何数据,则断开会话连接。
  8420. </remarks>
  8421. </member>
  8422. <member name="P:NewLife.Net.NetServer.Pipeline">
  8423. <summary>消息管道。收发消息都经过管道处理器,进行协议编码解码</summary>
  8424. <remarks>
  8425. 1,接收数据解码时,从前向后通过管道处理器;
  8426. 2,发送数据编码时,从后向前通过管道处理器;
  8427. </remarks>
  8428. </member>
  8429. <member name="P:NewLife.Net.NetServer.UseSession">
  8430. <summary>使用会话集合,允许遍历会话。默认true</summary>
  8431. </member>
  8432. <member name="P:NewLife.Net.NetServer.ReuseAddress">
  8433. <summary>地址重用,主要应用于网络服务器重启交替。默认false</summary>
  8434. <remarks>
  8435. 一个端口释放后会等待两分钟之后才能再被使用,SO_REUSEADDR是让端口释放后立即就可以被再次使用。
  8436. SO_REUSEADDR用于对TCP套接字处于TIME_WAIT状态下的socket(TCP连接中, 先调用close() 的一方会进入TIME_WAIT状态),才可以重复绑定使用。
  8437. </remarks>
  8438. </member>
  8439. <member name="P:NewLife.Net.NetServer.SslProtocol">
  8440. <summary>SSL协议。默认None</summary>
  8441. </member>
  8442. <member name="P:NewLife.Net.NetServer.Certificate">
  8443. <summary>X509证书。用于SSL连接时验证证书指纹,可以直接加载pem证书文件,未指定时不验证证书</summary>
  8444. <remarks>
  8445. 可以使用pfx证书文件,也可以使用pem证书文件。
  8446. 服务端必须指定证书。
  8447. </remarks>
  8448. <example>
  8449. var cert = new X509Certificate2("file", "pass");
  8450. </example>
  8451. </member>
  8452. <member name="P:NewLife.Net.NetServer.Tracer">
  8453. <summary>APM性能追踪器</summary>
  8454. </member>
  8455. <member name="P:NewLife.Net.NetServer.SocketTracer">
  8456. <summary>用于内部Socket服务器的APM性能追踪器</summary>
  8457. </member>
  8458. <member name="P:NewLife.Net.NetServer.StatPeriod">
  8459. <summary>显示统计信息的周期。默认600秒,0表示不显示统计信息</summary>
  8460. </member>
  8461. <member name="P:NewLife.Net.NetServer.LogSend">
  8462. <summary>是否输出发送日志。默认false</summary>
  8463. </member>
  8464. <member name="P:NewLife.Net.NetServer.LogReceive">
  8465. <summary>是否输出接收日志。默认false</summary>
  8466. </member>
  8467. <member name="P:NewLife.Net.NetServer.ServiceProvider">
  8468. <summary>服务提供者</summary>
  8469. <remarks>
  8470. 用于网络服务器内部解析各种服务,可以直接赋值或者依赖注入。
  8471. 网络会话默认使用该提供者,应用系统可以在网络会话中创建Scope版服务提供者。
  8472. </remarks>
  8473. </member>
  8474. <member name="P:NewLife.Net.NetServer.Items">
  8475. <summary>数据项</summary>
  8476. </member>
  8477. <member name="P:NewLife.Net.NetServer.Item(System.String)">
  8478. <summary>获取/设置 用户会话数据</summary>
  8479. <param name="key"></param>
  8480. <returns></returns>
  8481. </member>
  8482. <member name="M:NewLife.Net.NetServer.#ctor">
  8483. <summary>实例化一个网络服务器</summary>
  8484. </member>
  8485. <member name="M:NewLife.Net.NetServer.#ctor(System.Int32)">
  8486. <summary>通过指定监听地址和端口实例化一个网络服务器</summary>
  8487. <param name="port"></param>
  8488. </member>
  8489. <member name="M:NewLife.Net.NetServer.#ctor(System.Net.IPAddress,System.Int32)">
  8490. <summary>通过指定监听地址和端口实例化一个网络服务器</summary>
  8491. <param name="address"></param>
  8492. <param name="port"></param>
  8493. </member>
  8494. <member name="M:NewLife.Net.NetServer.#ctor(System.Net.IPAddress,System.Int32,NewLife.Net.NetType)">
  8495. <summary>通过指定监听地址和端口,还有协议,实例化一个网络服务器,默认支持Tcp协议和Udp协议</summary>
  8496. <param name="address"></param>
  8497. <param name="port"></param>
  8498. <param name="protocolType"></param>
  8499. </member>
  8500. <member name="M:NewLife.Net.NetServer.Dispose(System.Boolean)">
  8501. <summary>已重载。释放会话集合等资源</summary>
  8502. <param name="disposing"></param>
  8503. </member>
  8504. <member name="M:NewLife.Net.NetServer.AttachServer(NewLife.Net.ISocketServer)">
  8505. <summary>添加Socket服务器</summary>
  8506. <param name="server"></param>
  8507. <returns>添加是否成功</returns>
  8508. </member>
  8509. <member name="M:NewLife.Net.NetServer.AddServer(System.Net.IPAddress,System.Int32,NewLife.Net.NetType,System.Net.Sockets.AddressFamily)">
  8510. <summary>同时添加指定端口的IPv4和IPv6服务器,如果协议不是指定的Tcp或Udp,则同时添加Tcp和Udp服务器</summary>
  8511. <param name="address"></param>
  8512. <param name="port"></param>
  8513. <param name="protocol"></param>
  8514. <param name="family"></param>
  8515. <returns></returns>
  8516. </member>
  8517. <member name="M:NewLife.Net.NetServer.EnsureCreateServer">
  8518. <summary>确保建立服务器</summary>
  8519. </member>
  8520. <member name="M:NewLife.Net.NetServer.Add``1">
  8521. <summary>添加处理器</summary>
  8522. <typeparam name="THandler"></typeparam>
  8523. </member>
  8524. <member name="M:NewLife.Net.NetServer.Add(NewLife.Model.IHandler)">
  8525. <summary>添加处理器</summary>
  8526. <param name="handler">处理器</param>
  8527. </member>
  8528. <member name="M:NewLife.Net.NetServer.Start">
  8529. <summary>开始服务</summary>
  8530. </member>
  8531. <member name="M:NewLife.Net.NetServer.OnStart">
  8532. <summary>开始时调用的方法</summary>
  8533. </member>
  8534. <member name="M:NewLife.Net.NetServer.Stop(System.String)">
  8535. <summary>停止服务</summary>
  8536. <param name="reason">关闭原因。便于日志分析</param>
  8537. </member>
  8538. <member name="M:NewLife.Net.NetServer.OnStop(System.String)">
  8539. <summary>停止时调用的方法</summary>
  8540. <param name="reason">关闭原因。便于日志分析</param>
  8541. </member>
  8542. <member name="E:NewLife.Net.NetServer.NewSession">
  8543. <summary>新会话,对于TCP是新连接,对于UDP是新客户端</summary>
  8544. </member>
  8545. <member name="E:NewLife.Net.NetServer.Received">
  8546. <summary>某个会话的数据到达。sender是INetSession</summary>
  8547. </member>
  8548. <member name="M:NewLife.Net.NetServer.Server_NewSession(System.Object,NewLife.Net.SessionEventArgs)">
  8549. <summary>接受连接时,对于Udp是收到数据时(同时触发OnReceived)。</summary>
  8550. <param name="sender"></param>
  8551. <param name="e"></param>
  8552. </member>
  8553. <member name="M:NewLife.Net.NetServer.OnNewSession(NewLife.Net.ISocketSession)">
  8554. <summary>收到连接时,建立会话,并挂接数据接收和错误处理事件</summary>
  8555. <param name="session"></param>
  8556. </member>
  8557. <member name="M:NewLife.Net.NetServer.OnReceived(System.Object,NewLife.Net.ReceivedEventArgs)">
  8558. <summary>收到数据时</summary>
  8559. <param name="sender"></param>
  8560. <param name="e"></param>
  8561. </member>
  8562. <member name="M:NewLife.Net.NetServer.OnReceive(NewLife.Net.INetSession,NewLife.Data.Packet)">
  8563. <summary>收到数据时,最原始的数据处理,但不影响会话内部的数据处理</summary>
  8564. <param name="session"></param>
  8565. <param name="pk"></param>
  8566. </member>
  8567. <member name="M:NewLife.Net.NetServer.OnReceive(NewLife.Net.INetSession,NewLife.Net.ReceivedEventArgs)">
  8568. <summary>收到数据时,最原始的数据处理,但不影响会话内部的数据处理</summary>
  8569. <param name="session"></param>
  8570. <param name="e"></param>
  8571. </member>
  8572. <member name="E:NewLife.Net.NetServer.Error">
  8573. <summary>错误发生/断开连接时。sender是ISocketSession</summary>
  8574. </member>
  8575. <member name="M:NewLife.Net.NetServer.OnError(System.Object,NewLife.ExceptionEventArgs)">
  8576. <summary>触发异常</summary>
  8577. <param name="sender"></param>
  8578. <param name="e"></param>
  8579. </member>
  8580. <member name="P:NewLife.Net.NetServer.Sessions">
  8581. <summary>会话集合。用自增的数字ID作为标识,业务应用自己维持ID与业务主键的对应关系。</summary>
  8582. </member>
  8583. <member name="P:NewLife.Net.NetServer.SessionCount">
  8584. <summary>会话数</summary>
  8585. </member>
  8586. <member name="P:NewLife.Net.NetServer.MaxSessionCount">
  8587. <summary>最高会话数</summary>
  8588. </member>
  8589. <member name="M:NewLife.Net.NetServer.AddSession(NewLife.Net.INetSession)">
  8590. <summary>添加会话。子类可以在添加会话前对会话进行一些处理</summary>
  8591. <param name="session"></param>
  8592. </member>
  8593. <member name="M:NewLife.Net.NetServer.CreateSession(NewLife.Net.ISocketSession)">
  8594. <summary>创建会话</summary>
  8595. <param name="session"></param>
  8596. <returns></returns>
  8597. </member>
  8598. <member name="M:NewLife.Net.NetServer.GetSession(System.Int32)">
  8599. <summary>根据会话ID查找会话</summary>
  8600. <param name="sessionid"></param>
  8601. <returns></returns>
  8602. </member>
  8603. <member name="M:NewLife.Net.NetServer.CreateHandler(NewLife.Net.INetSession)">
  8604. <summary>为会话创建网络数据处理器。可作为业务处理实现,也可以作为前置协议解析</summary>
  8605. <param name="session"></param>
  8606. <returns></returns>
  8607. </member>
  8608. <member name="M:NewLife.Net.NetServer.SendAllAsync(NewLife.Data.Packet)">
  8609. <summary>异步群发数据给所有客户端</summary>
  8610. <param name="data"></param>
  8611. <returns>已群发客户端总数</returns>
  8612. </member>
  8613. <member name="M:NewLife.Net.NetServer.SendAllAsync(NewLife.Data.Packet,System.Func{NewLife.Net.INetSession,System.Boolean})">
  8614. <summary>异步群发数据给所有客户端</summary>
  8615. <param name="data"></param>
  8616. <param name="predicate">过滤器,判断指定会话是否需要发送</param>
  8617. <returns>已群发客户端总数</returns>
  8618. </member>
  8619. <member name="M:NewLife.Net.NetServer.SendAllMessage(System.Object,System.Func{NewLife.Net.INetSession,System.Boolean})">
  8620. <summary>群发管道消息给所有客户端。不等待,支持协议编码</summary>
  8621. <param name="message">应用消息,底层对其进行协议编码</param>
  8622. <param name="predicate">过滤器,判断指定会话是否需要发送</param>
  8623. <returns>已群发客户端总数</returns>
  8624. </member>
  8625. <member name="M:NewLife.Net.NetServer.CreateServer(System.Net.IPAddress,System.Int32,NewLife.Net.NetType,System.Net.Sockets.AddressFamily)">
  8626. <summary>创建Tcp/Udp、IPv4/IPv6服务</summary>
  8627. <param name="address"></param>
  8628. <param name="port"></param>
  8629. <param name="protocol"></param>
  8630. <param name="family"></param>
  8631. <returns></returns>
  8632. </member>
  8633. <member name="M:NewLife.Net.NetServer.GetStat">
  8634. <summary>获取统计信息</summary>
  8635. <returns></returns>
  8636. </member>
  8637. <member name="P:NewLife.Net.NetServer.Log">
  8638. <summary>日志提供者</summary>
  8639. </member>
  8640. <member name="P:NewLife.Net.NetServer.SocketLog">
  8641. <summary>用于内部Socket服务器的日志提供者</summary>
  8642. </member>
  8643. <member name="P:NewLife.Net.NetServer.SessionLog">
  8644. <summary>用于网络会话的日志提供者</summary>
  8645. </member>
  8646. <member name="P:NewLife.Net.NetServer.LogPrefix">
  8647. <summary>日志前缀</summary>
  8648. </member>
  8649. <member name="M:NewLife.Net.NetServer.WriteLog(System.String,System.Object[])">
  8650. <summary>写日志</summary>
  8651. <param name="format"></param>
  8652. <param name="args"></param>
  8653. </member>
  8654. <member name="M:NewLife.Net.NetServer.WriteError(System.String,System.Object[])">
  8655. <summary>输出错误日志</summary>
  8656. <param name="format"></param>
  8657. <param name="args"></param>
  8658. </member>
  8659. <member name="M:NewLife.Net.NetServer.ToString">
  8660. <summary>已重载。</summary>
  8661. <returns></returns>
  8662. </member>
  8663. <member name="T:NewLife.Net.NetServer`1">
  8664. <summary>网络服务器</summary>
  8665. <typeparam name="TSession"></typeparam>
  8666. </member>
  8667. <member name="M:NewLife.Net.NetServer`1.CreateSession(NewLife.Net.ISocketSession)">
  8668. <summary>创建会话</summary>
  8669. <param name="session"></param>
  8670. <returns></returns>
  8671. </member>
  8672. <member name="M:NewLife.Net.NetServer`1.GetSession(System.Int32)">
  8673. <summary>获取指定标识的会话</summary>
  8674. <param name="id"></param>
  8675. <returns></returns>
  8676. </member>
  8677. <member name="T:NewLife.Net.NetSession`1">
  8678. <summary>网络服务的会话,每个Tcp/Udp连接作为一个会话</summary>
  8679. <typeparam name="TServer">网络服务类型</typeparam>
  8680. <remarks>
  8681. 每当收到一个Tcp连接时,创建一个INetSession会话,用于处理该连接的业务。
  8682. 使用Udp服务端时,收到远程节点的第一个数据包时,也会创建一个会话,处理该节点的业务。
  8683. 所有应用服务器以会话<see cref="T:NewLife.Net.INetSession"/>作为业务处理核心。
  8684. 应用服务器收到新会话请求后,通过Start启动一个会话处理。
  8685. 会话进行业务处理的过程中,可以通过多个Send方法向客户端发送数据。
  8686. </remarks>
  8687. </member>
  8688. <member name="P:NewLife.Net.NetSession`1.Host">
  8689. <summary>主服务</summary>
  8690. </member>
  8691. <member name="T:NewLife.Net.NetSession">
  8692. <summary>网络服务的会话,每个Tcp/Udp连接作为一个会话</summary>
  8693. <remarks>
  8694. 每当收到一个Tcp连接时,创建一个INetSession会话,用于处理该连接的业务。
  8695. 使用Udp服务端时,收到远程节点的第一个数据包时,也会创建一个会话,处理该节点的业务。
  8696. 所有应用服务器以会话<see cref="T:NewLife.Net.INetSession"/>作为业务处理核心。
  8697. 应用服务器收到新会话请求后,通过<see cref="M:NewLife.Net.NetSession.Start"/>启动一个会话处理。
  8698. 会话进行业务处理的过程中,可以通过多个Send方法向客户端发送数据。
  8699. 实际应用可通过重载OnReceive实现收到数据时的业务逻辑。
  8700. </remarks>
  8701. </member>
  8702. <member name="P:NewLife.Net.NetSession.ID">
  8703. <summary>唯一会话标识。在主服务中唯一标识当前会话,原子自增</summary>
  8704. </member>
  8705. <member name="P:NewLife.Net.NetSession.NewLife#Net#INetSession#Host">
  8706. <summary>主服务。负责管理当前会话的主服务器NetServer</summary>
  8707. </member>
  8708. <member name="P:NewLife.Net.NetSession.Session">
  8709. <summary>客户端。跟客户端通讯的那个Socket,其实是服务端TcpSession/UdpServer</summary>
  8710. </member>
  8711. <member name="P:NewLife.Net.NetSession.Server">
  8712. <summary>服务端</summary>
  8713. </member>
  8714. <member name="P:NewLife.Net.NetSession.Remote">
  8715. <summary>客户端地址</summary>
  8716. </member>
  8717. <member name="P:NewLife.Net.NetSession.Handler">
  8718. <summary>网络数据处理器。可作为业务处理实现,也可以作为前置协议解析</summary>
  8719. </member>
  8720. <member name="P:NewLife.Net.NetSession.Items">
  8721. <summary>用户会话数据</summary>
  8722. </member>
  8723. <member name="P:NewLife.Net.NetSession.Item(System.String)">
  8724. <summary>获取/设置 用户会话数据</summary>
  8725. <param name="key"></param>
  8726. <returns></returns>
  8727. </member>
  8728. <member name="P:NewLife.Net.NetSession.ServiceProvider">
  8729. <summary>服务提供者</summary>
  8730. <remarks>
  8731. 根据会话创建Scoped范围服务,以使得各服务解析在本会话中唯一。
  8732. 基类使用内置ObjectContainer的Scope,在WebApi/Worker项目中,使用者需要自己创建Scope并赋值服务提供者。
  8733. </remarks>
  8734. </member>
  8735. <member name="E:NewLife.Net.NetSession.Connected">
  8736. <summary>连接创建事件。创建会话之后</summary>
  8737. </member>
  8738. <member name="E:NewLife.Net.NetSession.Disconnected">
  8739. <summary>连接断开事件。包括客户端主动断开、服务端主动断开以及服务端超时下线</summary>
  8740. </member>
  8741. <member name="E:NewLife.Net.NetSession.Received">
  8742. <summary>数据到达事件</summary>
  8743. </member>
  8744. <member name="M:NewLife.Net.NetSession.Start">
  8745. <summary>开始会话处理。</summary>
  8746. </member>
  8747. <member name="M:NewLife.Net.NetSession.Dispose(System.Boolean)">
  8748. <summary>子类重载实现资源释放逻辑时必须首先调用基类方法</summary>
  8749. <param name="disposing">从Dispose调用(释放所有资源)还是析构函数调用(释放非托管资源)</param>
  8750. </member>
  8751. <member name="M:NewLife.Net.NetSession.Close(System.String)">
  8752. <summary>关闭跟客户端的网络连接</summary>
  8753. <param name="reason">断开原因。包括 SendError/RemoveNotAlive/Dispose/GC 等,其中 ConnectionReset 为网络被动断开或对方断开</param>
  8754. </member>
  8755. <member name="M:NewLife.Net.NetSession.OnConnected">
  8756. <summary>新的客户端连接。基类负责触发Connected事件</summary>
  8757. </member>
  8758. <member name="M:NewLife.Net.NetSession.OnDisconnected(System.String)">
  8759. <summary>客户端连接已断开。基类负责触发Disconnected事件</summary>
  8760. <param name="reason">断开原因。包括 SendError/RemoveNotAlive/Dispose/GC 等,其中 ConnectionReset 为网络被动断开或对方断开</param>
  8761. </member>
  8762. <member name="M:NewLife.Net.NetSession.OnDisconnected">
  8763. <summary>客户端连接已断开</summary>
  8764. </member>
  8765. <member name="M:NewLife.Net.NetSession.OnReceive(NewLife.Net.ReceivedEventArgs)">
  8766. <summary>收到客户端发来的数据。基类负责触发Received事件</summary>
  8767. <param name="e"></param>
  8768. </member>
  8769. <member name="M:NewLife.Net.NetSession.OnError(System.Object,NewLife.ExceptionEventArgs)">
  8770. <summary>错误发生,可能是连接断开</summary>
  8771. <param name="sender"></param>
  8772. <param name="e"></param>
  8773. </member>
  8774. <member name="M:NewLife.Net.NetSession.Send(NewLife.Data.Packet)">
  8775. <summary>发送数据,直达网卡</summary>
  8776. <param name="data">数据包</param>
  8777. </member>
  8778. <member name="M:NewLife.Net.NetSession.Send(System.IO.Stream)">
  8779. <summary>发送数据流,直达网卡</summary>
  8780. <param name="stream"></param>
  8781. <returns></returns>
  8782. </member>
  8783. <member name="M:NewLife.Net.NetSession.Send(System.String,System.Text.Encoding)">
  8784. <summary>发送字符串,直达网卡</summary>
  8785. <param name="msg"></param>
  8786. <param name="encoding"></param>
  8787. </member>
  8788. <member name="M:NewLife.Net.NetSession.SendMessage(System.Object)">
  8789. <summary>通过管道发送消息,不等待响应。管道内对消息进行报文封装处理,最终得到二进制数据进入网卡</summary>
  8790. <param name="message"></param>
  8791. <returns></returns>
  8792. </member>
  8793. <member name="M:NewLife.Net.NetSession.SendMessageAsync(System.Object)">
  8794. <summary>异步发送消息并等待响应。管道内对消息进行报文封装处理,最终得到二进制数据进入网卡</summary>
  8795. <param name="message">消息</param>
  8796. <returns></returns>
  8797. </member>
  8798. <member name="M:NewLife.Net.NetSession.SendMessageAsync(System.Object,System.Threading.CancellationToken)">
  8799. <summary>异步发送消息并等待响应。管道内对消息进行报文封装处理,最终得到二进制数据进入网卡</summary>
  8800. <param name="message">消息</param>
  8801. <param name="cancellationToken">取消通知</param>
  8802. <returns></returns>
  8803. </member>
  8804. <member name="P:NewLife.Net.NetSession.Log">
  8805. <summary>日志提供者</summary>
  8806. </member>
  8807. <member name="P:NewLife.Net.NetSession.LogPrefix">
  8808. <summary>日志前缀</summary>
  8809. </member>
  8810. <member name="M:NewLife.Net.NetSession.WriteLog(System.String,System.Object[])">
  8811. <summary>写日志</summary>
  8812. <param name="format"></param>
  8813. <param name="args"></param>
  8814. </member>
  8815. <member name="M:NewLife.Net.NetSession.WriteError(System.String,System.Object[])">
  8816. <summary>输出错误日志</summary>
  8817. <param name="format"></param>
  8818. <param name="args"></param>
  8819. </member>
  8820. <member name="M:NewLife.Net.NetSession.ToString">
  8821. <summary>已重载。</summary>
  8822. <returns></returns>
  8823. </member>
  8824. <member name="M:NewLife.Net.NetSession.GetService(System.Type)">
  8825. <summary>获取服务</summary>
  8826. <param name="serviceType"></param>
  8827. <returns></returns>
  8828. </member>
  8829. <member name="T:NewLife.Net.NetType">
  8830. <summary>协议类型</summary>
  8831. </member>
  8832. <member name="F:NewLife.Net.NetType.Unknown">
  8833. <summary>未知协议</summary>
  8834. </member>
  8835. <member name="F:NewLife.Net.NetType.Tcp">
  8836. <summary>传输控制协议</summary>
  8837. </member>
  8838. <member name="F:NewLife.Net.NetType.Udp">
  8839. <summary>用户数据报协议</summary>
  8840. </member>
  8841. <member name="F:NewLife.Net.NetType.Http">
  8842. <summary>Http协议</summary>
  8843. </member>
  8844. <member name="F:NewLife.Net.NetType.Https">
  8845. <summary>Https协议</summary>
  8846. </member>
  8847. <member name="F:NewLife.Net.NetType.WebSocket">
  8848. <summary>WebSocket协议</summary>
  8849. </member>
  8850. <member name="T:NewLife.Net.NetUri">
  8851. <summary>网络资源标识,指定协议、地址、端口、地址族(IPv4/IPv6)</summary>
  8852. <remarks>
  8853. 仅序列化<see cref="P:NewLife.Net.NetUri.Type"/>和<see cref="P:NewLife.Net.NetUri.EndPoint"/>,其它均是配角!
  8854. 有可能<see cref="P:NewLife.Net.NetUri.Host"/>代表主机域名,而<see cref="P:NewLife.Net.NetUri.Address"/>指定主机IP地址。
  8855. </remarks>
  8856. </member>
  8857. <member name="P:NewLife.Net.NetUri.Type">
  8858. <summary>协议类型</summary>
  8859. </member>
  8860. <member name="P:NewLife.Net.NetUri.Host">
  8861. <summary>主机或域名</summary>
  8862. <remarks>可能对应多个IP地址</remarks>
  8863. </member>
  8864. <member name="P:NewLife.Net.NetUri.Address">
  8865. <summary>地址</summary>
  8866. <remarks>
  8867. 域名多地址时的第一个。
  8868. 设置地址后,反向覆盖Host。
  8869. </remarks>
  8870. </member>
  8871. <member name="P:NewLife.Net.NetUri.Port">
  8872. <summary>端口</summary>
  8873. </member>
  8874. <member name="P:NewLife.Net.NetUri.EndPoint">
  8875. <summary>终结点</summary>
  8876. <remarks>
  8877. 域名多地址时的第一个。
  8878. 设置地址后,反向覆盖Host。
  8879. </remarks>
  8880. </member>
  8881. <member name="P:NewLife.Net.NetUri.IsTcp">
  8882. <summary>是否Tcp协议</summary>
  8883. </member>
  8884. <member name="P:NewLife.Net.NetUri.IsUdp">
  8885. <summary>是否Udp协议</summary>
  8886. </member>
  8887. <member name="M:NewLife.Net.NetUri.#ctor">
  8888. <summary>实例化</summary>
  8889. </member>
  8890. <member name="M:NewLife.Net.NetUri.#ctor(System.String)">
  8891. <summary>实例化</summary>
  8892. <param name="uri"></param>
  8893. </member>
  8894. <member name="M:NewLife.Net.NetUri.#ctor(NewLife.Net.NetType,System.Net.IPEndPoint)">
  8895. <summary>实例化</summary>
  8896. <param name="protocol"></param>
  8897. <param name="endpoint"></param>
  8898. </member>
  8899. <member name="M:NewLife.Net.NetUri.#ctor(NewLife.Net.NetType,System.Net.IPAddress,System.Int32)">
  8900. <summary>实例化</summary>
  8901. <param name="protocol"></param>
  8902. <param name="address"></param>
  8903. <param name="port"></param>
  8904. </member>
  8905. <member name="M:NewLife.Net.NetUri.#ctor(NewLife.Net.NetType,System.String,System.Int32)">
  8906. <summary>实例化</summary>
  8907. <param name="protocol"></param>
  8908. <param name="host"></param>
  8909. <param name="port"></param>
  8910. </member>
  8911. <member name="M:NewLife.Net.NetUri.Parse(System.String)">
  8912. <summary>分析</summary>
  8913. <param name="uri"></param>
  8914. </member>
  8915. <member name="M:NewLife.Net.NetUri.GetAddresses">
  8916. <summary>获取该域名下所有IP地址</summary>
  8917. <returns></returns>
  8918. </member>
  8919. <member name="M:NewLife.Net.NetUri.GetEndPoints">
  8920. <summary>获取该域名下所有IP节点(含端口)</summary>
  8921. <returns></returns>
  8922. </member>
  8923. <member name="M:NewLife.Net.NetUri.ParseAddress(System.String)">
  8924. <summary>分析地址</summary>
  8925. <param name="hostname">主机地址</param>
  8926. <returns></returns>
  8927. </member>
  8928. <member name="M:NewLife.Net.NetUri.ToString">
  8929. <summary>已重载。</summary>
  8930. <returns></returns>
  8931. </member>
  8932. <member name="M:NewLife.Net.NetUri.op_Implicit(System.String)~NewLife.Net.NetUri">
  8933. <summary>重载类型转换,字符串直接转为NetUri对象</summary>
  8934. <param name="value"></param>
  8935. <returns></returns>
  8936. </member>
  8937. <member name="T:NewLife.Net.ReceivedEventArgs">
  8938. <summary>收到数据时的事件参数</summary>
  8939. </member>
  8940. <member name="P:NewLife.Net.ReceivedEventArgs.Packet">
  8941. <summary>原始数据包</summary>
  8942. <remarks>
  8943. Packet内部的Data可能是网络缓冲区,并非全部数据都属于当前消息,需要ReadBytes得到有效数据。
  8944. </remarks>
  8945. </member>
  8946. <member name="P:NewLife.Net.ReceivedEventArgs.Local">
  8947. <summary>本地地址</summary>
  8948. </member>
  8949. <member name="P:NewLife.Net.ReceivedEventArgs.Remote">
  8950. <summary>远程地址</summary>
  8951. </member>
  8952. <member name="P:NewLife.Net.ReceivedEventArgs.Message">
  8953. <summary>管道处理器解码后的消息,一般就是业务消息</summary>
  8954. </member>
  8955. <member name="P:NewLife.Net.ReceivedEventArgs.UserState">
  8956. <summary>用户自定义数据</summary>
  8957. </member>
  8958. <member name="M:NewLife.Net.ReceivedEventArgs.GetBytes">
  8959. <summary>获取当前事件的原始数据。避免用户错误使用Packet.Data</summary>
  8960. <returns></returns>
  8961. </member>
  8962. <member name="T:NewLife.Net.SessionBase">
  8963. <summary>会话基类</summary>
  8964. </member>
  8965. <member name="P:NewLife.Net.SessionBase.ID">
  8966. <summary>标识</summary>
  8967. </member>
  8968. <member name="P:NewLife.Net.SessionBase.Name">
  8969. <summary>名称</summary>
  8970. </member>
  8971. <member name="P:NewLife.Net.SessionBase.Local">
  8972. <summary>本地绑定信息</summary>
  8973. </member>
  8974. <member name="P:NewLife.Net.SessionBase.Port">
  8975. <summary>端口</summary>
  8976. </member>
  8977. <member name="P:NewLife.Net.SessionBase.Remote">
  8978. <summary>远程结点地址</summary>
  8979. </member>
  8980. <member name="P:NewLife.Net.SessionBase.Timeout">
  8981. <summary>超时。默认3000ms</summary>
  8982. </member>
  8983. <member name="P:NewLife.Net.SessionBase.Active">
  8984. <summary>是否活动</summary>
  8985. </member>
  8986. <member name="P:NewLife.Net.SessionBase.Client">
  8987. <summary>底层Socket</summary>
  8988. </member>
  8989. <member name="P:NewLife.Net.SessionBase.LastTime">
  8990. <summary>最后一次通信时间,主要表示活跃时间,包括收发</summary>
  8991. </member>
  8992. <member name="P:NewLife.Net.SessionBase.MaxAsync">
  8993. <summary>最大并行接收数。Tcp默认1,Udp默认CPU*1.6,0关闭异步接收使用同步接收</summary>
  8994. </member>
  8995. <member name="P:NewLife.Net.SessionBase.BufferSize">
  8996. <summary>缓冲区大小。默认8k</summary>
  8997. </member>
  8998. <member name="P:NewLife.Net.SessionBase.CloseReason">
  8999. <summary>连接关闭原因</summary>
  9000. </member>
  9001. <member name="P:NewLife.Net.SessionBase.Tracer">
  9002. <summary>APM性能追踪器</summary>
  9003. </member>
  9004. <member name="M:NewLife.Net.SessionBase.#ctor">
  9005. <summary>构造函数,初始化默认名称</summary>
  9006. </member>
  9007. <member name="M:NewLife.Net.SessionBase.Dispose(System.Boolean)">
  9008. <summary>销毁</summary>
  9009. <param name="disposing"></param>
  9010. </member>
  9011. <member name="M:NewLife.Net.SessionBase.ToString">
  9012. <summary>已重载。</summary>
  9013. <returns></returns>
  9014. </member>
  9015. <member name="M:NewLife.Net.SessionBase.Open">
  9016. <summary>打开</summary>
  9017. <returns>是否成功</returns>
  9018. </member>
  9019. <member name="M:NewLife.Net.SessionBase.OnOpen">
  9020. <summary>打开</summary>
  9021. <returns></returns>
  9022. </member>
  9023. <member name="M:NewLife.Net.SessionBase.Close(System.String)">
  9024. <summary>关闭</summary>
  9025. <param name="reason">关闭原因。便于日志分析</param>
  9026. <returns>是否成功</returns>
  9027. </member>
  9028. <member name="M:NewLife.Net.SessionBase.OnClose(System.String)">
  9029. <summary>关闭</summary>
  9030. <param name="reason">关闭原因。便于日志分析</param>
  9031. <returns></returns>
  9032. </member>
  9033. <member name="M:NewLife.Net.SessionBase.CheckClosed">
  9034. <summary>检查连接是否已关闭,并返回关闭原因,主要检测FIN/RST</summary>
  9035. <returns></returns>
  9036. </member>
  9037. <member name="E:NewLife.Net.SessionBase.Opened">
  9038. <summary>打开后触发。</summary>
  9039. </member>
  9040. <member name="E:NewLife.Net.SessionBase.Closed">
  9041. <summary>关闭后触发。可实现掉线重连</summary>
  9042. </member>
  9043. <member name="M:NewLife.Net.SessionBase.Send(NewLife.Data.Packet)">
  9044. <summary>直接发送数据包 Byte[]/Packet</summary>
  9045. <remarks>
  9046. 目标地址由<seealso cref="P:NewLife.Net.SessionBase.Remote"/>决定
  9047. </remarks>
  9048. <param name="data">数据包</param>
  9049. <returns>是否成功</returns>
  9050. </member>
  9051. <member name="M:NewLife.Net.SessionBase.OnSend(NewLife.Data.Packet)">
  9052. <summary>发送数据</summary>
  9053. <remarks>
  9054. 目标地址由<seealso cref="P:NewLife.Net.SessionBase.Remote"/>决定
  9055. </remarks>
  9056. <param name="data">数据包</param>
  9057. <returns>是否成功</returns>
  9058. </member>
  9059. <member name="M:NewLife.Net.SessionBase.Receive">
  9060. <summary>接收数据</summary>
  9061. <returns></returns>
  9062. </member>
  9063. <member name="M:NewLife.Net.SessionBase.ReceiveAsync(System.Threading.CancellationToken)">
  9064. <summary>异步接收数据</summary>
  9065. <returns></returns>
  9066. </member>
  9067. <member name="F:NewLife.Net.SessionBase._RecvCount">
  9068. <summary>当前异步接收个数</summary>
  9069. </member>
  9070. <member name="M:NewLife.Net.SessionBase.ReceiveAsync">
  9071. <summary>开始异步接收。在事件中返回数据</summary>
  9072. <returns>是否成功</returns>
  9073. </member>
  9074. <member name="M:NewLife.Net.SessionBase.ReleaseRecv(System.Net.Sockets.SocketAsyncEventArgs,System.String)">
  9075. <summary>释放一个事件参数</summary>
  9076. <param name="se"></param>
  9077. <param name="reason"></param>
  9078. </member>
  9079. <member name="F:NewLife.Net.SessionBase._IntoThreadCount">
  9080. <summary>当前进入线程递归数量,超过10就另外起线程</summary>
  9081. </member>
  9082. <member name="M:NewLife.Net.SessionBase.StartReceive(System.Net.Sockets.SocketAsyncEventArgs,System.Int32)">
  9083. <summary>用一个事件参数来开始异步接收</summary>
  9084. <param name="se">事件参数</param>
  9085. <param name="ioThread">是否在线程池调用,小于等于0不是,大于0是</param>
  9086. <returns></returns>
  9087. </member>
  9088. <member name="M:NewLife.Net.SessionBase.ProcessEvent(System.Net.Sockets.SocketAsyncEventArgs,System.Int32,System.Int32)">
  9089. <summary>同步或异步收到数据</summary>
  9090. <remarks>
  9091. ioThread:
  9092. 如果在StartReceive的时候线程池调用ProcessEvent,则处于worker线程;
  9093. 如果在IOCP的时候调用ProcessEvent,则处于completionPort线程。
  9094. </remarks>
  9095. <param name="se"></param>
  9096. <param name="bytes"></param>
  9097. <param name="ioThread">是否在IO线程池里面</param>
  9098. </member>
  9099. <member name="M:NewLife.Net.SessionBase.ProcessReceive(NewLife.Data.Packet,System.Net.IPAddress,System.Net.IPEndPoint)">
  9100. <summary>接收预处理,粘包拆包</summary>
  9101. <param name="pk">数据包</param>
  9102. <param name="local">接收数据的本地地址</param>
  9103. <param name="remote">远程地址</param>
  9104. </member>
  9105. <member name="M:NewLife.Net.SessionBase.OnPreReceive(NewLife.Data.Packet,System.Net.IPAddress,System.Net.IPEndPoint)">
  9106. <summary>预处理</summary>
  9107. <param name="pk">数据包</param>
  9108. <param name="local">接收数据的本地地址</param>
  9109. <param name="remote">远程地址</param>
  9110. <returns>将要处理该数据包的会话</returns>
  9111. </member>
  9112. <member name="M:NewLife.Net.SessionBase.OnReceive(NewLife.Net.ReceivedEventArgs)">
  9113. <summary>处理收到的数据。默认匹配同步接收委托</summary>
  9114. <param name="e">接收事件参数</param>
  9115. <returns>是否已处理,已处理的数据不再向下传递</returns>
  9116. </member>
  9117. <member name="E:NewLife.Net.SessionBase.Received">
  9118. <summary>数据到达事件</summary>
  9119. </member>
  9120. <member name="M:NewLife.Net.SessionBase.RaiseReceive(System.Object,NewLife.Net.ReceivedEventArgs)">
  9121. <summary>触发数据到达事件</summary>
  9122. <param name="sender"></param>
  9123. <param name="e">接收事件参数</param>
  9124. </member>
  9125. <member name="M:NewLife.Net.SessionBase.OnReceiveError(System.Net.Sockets.SocketAsyncEventArgs)">
  9126. <summary>收到异常时如何处理。默认关闭会话</summary>
  9127. <param name="se"></param>
  9128. <returns>是否当作异常处理并结束会话</returns>
  9129. </member>
  9130. <member name="P:NewLife.Net.SessionBase.Pipeline">
  9131. <summary>消息管道。收发消息都经过管道处理器,进行协议编码解码</summary>
  9132. <remarks>
  9133. 1,接收数据解码时,从前向后通过管道处理器;
  9134. 2,发送数据编码时,从后向前通过管道处理器;
  9135. </remarks>
  9136. </member>
  9137. <member name="M:NewLife.Net.SessionBase.CreateContext(NewLife.Net.ISocketRemote)">
  9138. <summary>创建上下文</summary>
  9139. <param name="session">远程会话</param>
  9140. <returns></returns>
  9141. </member>
  9142. <member name="M:NewLife.Net.SessionBase.SendMessage(System.Object)">
  9143. <summary>通过管道发送消息,不等待响应</summary>
  9144. <param name="message"></param>
  9145. <returns></returns>
  9146. </member>
  9147. <member name="M:NewLife.Net.SessionBase.SendMessageAsync(System.Object)">
  9148. <summary>通过管道发送消息并等待响应</summary>
  9149. <param name="message"></param>
  9150. <returns></returns>
  9151. </member>
  9152. <member name="M:NewLife.Net.SessionBase.SendMessageAsync(System.Object,System.Threading.CancellationToken)">
  9153. <summary>通过管道发送消息并等待响应</summary>
  9154. <param name="message">消息</param>
  9155. <param name="cancellationToken">取消通知</param>
  9156. <returns></returns>
  9157. </member>
  9158. <member name="M:NewLife.Net.SessionBase.NewLife#Net#ISocketRemote#Process(NewLife.Data.IData)">
  9159. <summary>处理数据帧</summary>
  9160. <param name="data">数据帧</param>
  9161. </member>
  9162. <member name="E:NewLife.Net.SessionBase.Error">
  9163. <summary>错误发生/断开连接时</summary>
  9164. </member>
  9165. <member name="M:NewLife.Net.SessionBase.OnError(System.String,System.Exception)">
  9166. <summary>触发异常</summary>
  9167. <param name="action">动作</param>
  9168. <param name="ex">异常</param>
  9169. </member>
  9170. <member name="P:NewLife.Net.SessionBase.Items">
  9171. <summary>数据项</summary>
  9172. </member>
  9173. <member name="P:NewLife.Net.SessionBase.Item(System.String)">
  9174. <summary>设置 或 获取 数据项</summary>
  9175. <param name="key"></param>
  9176. <returns></returns>
  9177. </member>
  9178. <member name="P:NewLife.Net.SessionBase.LogPrefix">
  9179. <summary>日志前缀</summary>
  9180. </member>
  9181. <member name="P:NewLife.Net.SessionBase.Log">
  9182. <summary>日志对象。禁止设为空对象</summary>
  9183. </member>
  9184. <member name="P:NewLife.Net.SessionBase.LogSend">
  9185. <summary>是否输出发送日志。默认false</summary>
  9186. </member>
  9187. <member name="P:NewLife.Net.SessionBase.LogReceive">
  9188. <summary>是否输出接收日志。默认false</summary>
  9189. </member>
  9190. <member name="P:NewLife.Net.SessionBase.LogDataLength">
  9191. <summary>收发日志数据体长度。默认64</summary>
  9192. </member>
  9193. <member name="M:NewLife.Net.SessionBase.WriteLog(System.String,System.Object[])">
  9194. <summary>输出日志</summary>
  9195. <param name="format"></param>
  9196. <param name="args"></param>
  9197. </member>
  9198. <member name="T:NewLife.Net.SessionCollection">
  9199. <summary>会话集合。带有自动清理不活动会话的功能</summary>
  9200. </member>
  9201. <member name="P:NewLife.Net.SessionCollection.Server">
  9202. <summary>服务端</summary>
  9203. </member>
  9204. <member name="P:NewLife.Net.SessionCollection.ClearPeriod">
  9205. <summary>清理周期。单位毫秒,默认10秒。</summary>
  9206. </member>
  9207. <member name="F:NewLife.Net.SessionCollection._clearTimer">
  9208. <summary>清理会话计时器</summary>
  9209. </member>
  9210. <member name="M:NewLife.Net.SessionCollection.Add(NewLife.Net.ISocketSession)">
  9211. <summary>添加新会话,并设置会话编号</summary>
  9212. <param name="session"></param>
  9213. <returns>返回添加新会话是否成功</returns>
  9214. </member>
  9215. <member name="M:NewLife.Net.SessionCollection.Get(System.String)">
  9216. <summary>获取会话,加锁</summary>
  9217. <param name="key"></param>
  9218. <returns></returns>
  9219. </member>
  9220. <member name="M:NewLife.Net.SessionCollection.CloseAll(System.String)">
  9221. <summary>关闭所有</summary>
  9222. </member>
  9223. <member name="M:NewLife.Net.SessionCollection.RemoveNotAlive(System.Object)">
  9224. <summary>移除不活动的会话</summary>
  9225. </member>
  9226. <member name="T:NewLife.Net.Setting">
  9227. <summary>网络设置</summary>
  9228. </member>
  9229. <member name="T:NewLife.Net.SocketSetting">
  9230. <summary>网络设置</summary>
  9231. </member>
  9232. <member name="P:NewLife.Net.SocketSetting.Debug">
  9233. <summary>网络调试</summary>
  9234. </member>
  9235. <member name="P:NewLife.Net.SocketSetting.SessionTimeout">
  9236. <summary>会话超时时间。每个Tcp/Udp连接会话,超过一定时间不活跃时做超时下线处理,默认20*60秒</summary>
  9237. </member>
  9238. <member name="P:NewLife.Net.SocketSetting.BufferSize">
  9239. <summary>缓冲区大小。每个IOCP异步接收缓冲区的大小,较大的值能减少小包合并,但是当连接数很多时会浪费大量内存,默认8k</summary>
  9240. </member>
  9241. <member name="P:NewLife.Net.SocketSetting.LogDataLength">
  9242. <summary>收发日志数据体长度。应用于LogSend/LogReceive时的数据HEX长度,默认64字节</summary>
  9243. </member>
  9244. <member name="P:NewLife.Net.SocketSetting.AutoGZip">
  9245. <summary>自动启用GZip压缩的请求体大小。应用于HttpHelper/ApiHttpClient发起的请求,默认1024,用0表示不压缩</summary>
  9246. </member>
  9247. <member name="T:NewLife.Net.SocketHelper">
  9248. <summary>Socket扩展</summary>
  9249. </member>
  9250. <member name="M:NewLife.Net.SocketHelper.SendAsync(System.Net.Sockets.Socket,System.Byte[])">
  9251. <summary>异步发送数据</summary>
  9252. <param name="socket"></param>
  9253. <param name="buffer"></param>
  9254. <returns></returns>
  9255. </member>
  9256. <member name="M:NewLife.Net.SocketHelper.SendToAsync(System.Net.Sockets.Socket,System.Byte[],System.Net.IPEndPoint)">
  9257. <summary>异步发送数据</summary>
  9258. <param name="socket"></param>
  9259. <param name="buffer"></param>
  9260. <param name="remote"></param>
  9261. <returns></returns>
  9262. </member>
  9263. <member name="M:NewLife.Net.SocketHelper.Send(System.Net.Sockets.Socket,System.IO.Stream,System.Net.IPEndPoint)">
  9264. <summary>发送数据流</summary>
  9265. <param name="socket"></param>
  9266. <param name="stream"></param>
  9267. <param name="remoteEP"></param>
  9268. <returns>返回自身,用于链式写法</returns>
  9269. </member>
  9270. <member name="M:NewLife.Net.SocketHelper.Send(System.Net.Sockets.Socket,System.Byte[],System.Net.IPEndPoint)">
  9271. <summary>向指定目的地发送信息</summary>
  9272. <param name="socket"></param>
  9273. <param name="buffer">缓冲区</param>
  9274. <param name="remoteEP"></param>
  9275. <returns>返回自身,用于链式写法</returns>
  9276. </member>
  9277. <member name="M:NewLife.Net.SocketHelper.Send(System.Net.Sockets.Socket,System.String,System.Text.Encoding,System.Net.IPEndPoint)">
  9278. <summary>向指定目的地发送信息</summary>
  9279. <param name="socket"></param>
  9280. <param name="message"></param>
  9281. <param name="encoding">文本编码,默认null表示UTF-8编码</param>
  9282. <param name="remoteEP"></param>
  9283. <returns>返回自身,用于链式写法</returns>
  9284. </member>
  9285. <member name="M:NewLife.Net.SocketHelper.Broadcast(System.Net.Sockets.Socket,System.Byte[],System.Int32)">
  9286. <summary>广播数据包</summary>
  9287. <param name="socket"></param>
  9288. <param name="buffer">缓冲区</param>
  9289. <param name="port"></param>
  9290. </member>
  9291. <member name="M:NewLife.Net.SocketHelper.Broadcast(System.Net.Sockets.Socket,System.String,System.Int32)">
  9292. <summary>广播字符串</summary>
  9293. <param name="socket"></param>
  9294. <param name="message"></param>
  9295. <param name="port"></param>
  9296. </member>
  9297. <member name="M:NewLife.Net.SocketHelper.ReceiveString(System.Net.Sockets.Socket,System.Text.Encoding)">
  9298. <summary>接收字符串</summary>
  9299. <param name="socket"></param>
  9300. <param name="encoding">文本编码,默认null表示UTF-8编码</param>
  9301. <returns></returns>
  9302. </member>
  9303. <member name="M:NewLife.Net.SocketHelper.CheckBroadcast(System.Net.Sockets.Socket,System.Net.IPAddress)">
  9304. <summary>检查并开启广播</summary>
  9305. <param name="socket"></param>
  9306. <param name="address"></param>
  9307. <returns></returns>
  9308. </member>
  9309. <member name="M:NewLife.Net.SocketHelper.Shutdown(System.Net.Sockets.Socket,System.Boolean)">
  9310. <summary>关闭连接</summary>
  9311. <param name="socket"></param>
  9312. <param name="reuseAddress"></param>
  9313. </member>
  9314. <member name="P:NewLife.Net.SocketHelper.mSafeHandle">
  9315. <summary>SafeHandle字段</summary>
  9316. </member>
  9317. <member name="M:NewLife.Net.SocketHelper.IsNotClosed(System.Net.Sockets.SocketAsyncEventArgs)">
  9318. <summary>Socket是否未被关闭</summary>
  9319. <param name="se"></param>
  9320. <returns></returns>
  9321. </member>
  9322. <member name="M:NewLife.Net.SocketHelper.GetException(System.Net.Sockets.SocketAsyncEventArgs)">
  9323. <summary>根据异步事件获取可输出异常,屏蔽常见异常</summary>
  9324. <param name="se"></param>
  9325. <returns></returns>
  9326. </member>
  9327. <member name="T:NewLife.Net.TcpConnectionInformation2">
  9328. <summary>Tcp连接信息</summary>
  9329. </member>
  9330. <member name="P:NewLife.Net.TcpConnectionInformation2.LocalEndPoint">
  9331. <summary>本地结点</summary>
  9332. </member>
  9333. <member name="P:NewLife.Net.TcpConnectionInformation2.RemoteEndPoint">
  9334. <summary>远程结点</summary>
  9335. </member>
  9336. <member name="P:NewLife.Net.TcpConnectionInformation2.State">
  9337. <summary>Tcp状态</summary>
  9338. </member>
  9339. <member name="P:NewLife.Net.TcpConnectionInformation2.ProcessId">
  9340. <summary>进程标识</summary>
  9341. </member>
  9342. <member name="P:NewLife.Net.TcpConnectionInformation2.Node">
  9343. <summary>inode标识</summary>
  9344. </member>
  9345. <member name="M:NewLife.Net.TcpConnectionInformation2.#ctor(System.Net.IPEndPoint,System.Net.IPEndPoint,System.Net.NetworkInformation.TcpState,System.Int32)">
  9346. <summary>实例化Tcp连接信息</summary>
  9347. <param name="local"></param>
  9348. <param name="remote"></param>
  9349. <param name="state"></param>
  9350. <param name="processId"></param>
  9351. </member>
  9352. <member name="M:NewLife.Net.TcpConnectionInformation2.ToString">
  9353. <summary>已重载。</summary>
  9354. <returns></returns>
  9355. </member>
  9356. <member name="M:NewLife.Net.TcpConnectionInformation2.GetAllTcpConnections">
  9357. <summary>获取所有Tcp连接</summary>
  9358. <returns></returns>
  9359. </member>
  9360. <member name="M:NewLife.Net.TcpConnectionInformation2.GetWindowsTcpConnections">
  9361. <summary>获取所有Tcp连接</summary>
  9362. <returns></returns>
  9363. </member>
  9364. <member name="M:NewLife.Net.TcpConnectionInformation2.GetLinuxTcpConnections(System.Int32)">
  9365. <summary>获取指定进程的Tcp连接</summary>
  9366. <param name="processId">目标进程。默认-1未指定,获取所有进程的Tcp连接</param>
  9367. <returns></returns>
  9368. </member>
  9369. <member name="M:NewLife.Net.TcpConnectionInformation2.ParseTcps(System.String)">
  9370. <summary>分析Tcp连接信息</summary>
  9371. <param name="text"></param>
  9372. <returns></returns>
  9373. </member>
  9374. <member name="M:NewLife.Net.TcpConnectionInformation2.ParseNodes(System.Collections.Generic.IList{System.String})">
  9375. <summary>分析Socket的inode</summary>
  9376. <param name="files"></param>
  9377. <returns></returns>
  9378. </member>
  9379. <member name="T:NewLife.Net.TcpServer">
  9380. <summary>TCP服务器</summary>
  9381. <remarks>
  9382. 核心工作:启动服务<see cref="M:NewLife.Net.TcpServer.Start"/>时,监听端口,并启用多个(逻辑处理器数的10倍)异步接受操作<see cref="M:NewLife.Net.TcpServer.StartAccept(System.Net.Sockets.SocketAsyncEventArgs,System.Boolean)"/>。
  9383. 服务器完全处于异步工作状态,任何操作都不可能被阻塞。
  9384. 注意:服务器接受连接请求后,不会开始处理数据,而是由<see cref="E:NewLife.Net.TcpServer.NewSession"/>事件订阅者决定何时开始处理数据。
  9385. </remarks>
  9386. </member>
  9387. <member name="P:NewLife.Net.TcpServer.Name">
  9388. <summary>名称</summary>
  9389. </member>
  9390. <member name="P:NewLife.Net.TcpServer.Local">
  9391. <summary>本地绑定信息</summary>
  9392. </member>
  9393. <member name="P:NewLife.Net.TcpServer.Port">
  9394. <summary>端口</summary>
  9395. </member>
  9396. <member name="P:NewLife.Net.TcpServer.SessionTimeout">
  9397. <summary>会话超时时间</summary>
  9398. <remarks>
  9399. 对于每一个会话连接,如果超过该时间仍然没有收到任何数据,则断开会话连接。
  9400. </remarks>
  9401. </member>
  9402. <member name="P:NewLife.Net.TcpServer.Client">
  9403. <summary>底层Socket</summary>
  9404. </member>
  9405. <member name="P:NewLife.Net.TcpServer.Active">
  9406. <summary>是否活动</summary>
  9407. </member>
  9408. <member name="P:NewLife.Net.TcpServer.MaxAsync">
  9409. <summary>最大并行接收连接数。默认CPU*1.6</summary>
  9410. </member>
  9411. <member name="P:NewLife.Net.TcpServer.NoDelay">
  9412. <summary>不延迟直接发送。Tcp为了合并小包而设计,客户端默认false,服务端默认true</summary>
  9413. </member>
  9414. <member name="P:NewLife.Net.TcpServer.ReuseAddress">
  9415. <summary>地址重用,主要应用于网络服务器重启交替。默认false</summary>
  9416. <remarks>
  9417. 一个端口释放后会等待两分钟之后才能再被使用,SO_REUSEADDR是让端口释放后立即就可以被再次使用。
  9418. SO_REUSEADDR用于对TCP套接字处于TIME_WAIT状态下的socket(TCP连接中, 先调用close() 的一方会进入TIME_WAIT状态),才可以重复绑定使用。
  9419. </remarks>
  9420. </member>
  9421. <member name="P:NewLife.Net.TcpServer.KeepAliveInterval">
  9422. <summary>KeepAlive间隔。默认0秒不启用</summary>
  9423. </member>
  9424. <member name="P:NewLife.Net.TcpServer.EnableHttp">
  9425. <summary>启用Http,数据处理时截去请求响应头,默认false</summary>
  9426. </member>
  9427. <member name="P:NewLife.Net.TcpServer.Pipeline">
  9428. <summary>消息管道。收发消息都经过管道处理器,进行协议编码解码</summary>
  9429. <remarks>
  9430. 1,接收数据解码时,从前向后通过管道处理器;
  9431. 2,发送数据编码时,从后向前通过管道处理器;
  9432. </remarks>
  9433. </member>
  9434. <member name="P:NewLife.Net.TcpServer.SslProtocol">
  9435. <summary>SSL协议。默认None</summary>
  9436. </member>
  9437. <member name="P:NewLife.Net.TcpServer.Certificate">
  9438. <summary>X509证书。用于SSL连接时验证证书指纹,可以直接加载pem证书文件,未指定时不验证证书</summary>
  9439. <remarks>
  9440. 可以使用pfx证书文件,也可以使用pem证书文件。
  9441. 服务端必须指定证书。
  9442. </remarks>
  9443. <example>
  9444. var cert = new X509Certificate2("file", "pass");
  9445. </example>
  9446. </member>
  9447. <member name="P:NewLife.Net.TcpServer.Tracer">
  9448. <summary>APM性能追踪器</summary>
  9449. </member>
  9450. <member name="M:NewLife.Net.TcpServer.#ctor">
  9451. <summary>构造TCP服务器对象</summary>
  9452. </member>
  9453. <member name="M:NewLife.Net.TcpServer.#ctor(System.Int32)">
  9454. <summary>构造TCP服务器对象</summary>
  9455. <param name="port"></param>
  9456. </member>
  9457. <member name="M:NewLife.Net.TcpServer.Dispose(System.Boolean)">
  9458. <summary>已重载。释放会话集合等资源</summary>
  9459. <param name="disposing"></param>
  9460. </member>
  9461. <member name="M:NewLife.Net.TcpServer.Start">
  9462. <summary>开始</summary>
  9463. </member>
  9464. <member name="M:NewLife.Net.TcpServer.Stop(System.String)">
  9465. <summary>停止</summary>
  9466. <param name="reason">关闭原因。便于日志分析</param>
  9467. </member>
  9468. <member name="E:NewLife.Net.TcpServer.NewSession">
  9469. <summary>新会话时触发</summary>
  9470. </member>
  9471. <member name="M:NewLife.Net.TcpServer.StartAccept(System.Net.Sockets.SocketAsyncEventArgs,System.Boolean)">
  9472. <summary>开启异步接受新连接</summary>
  9473. <param name="se"></param>
  9474. <param name="io">是否IO线程</param>
  9475. <returns>开启异步是否成功</returns>
  9476. </member>
  9477. <member name="M:NewLife.Net.TcpServer.OnAccept(System.Net.Sockets.Socket)">
  9478. <summary>收到新连接时处理</summary>
  9479. <param name="client"></param>
  9480. </member>
  9481. <member name="P:NewLife.Net.TcpServer.Sessions">
  9482. <summary>会话集合。用地址端口作为标识,业务应用自己维持地址端口与业务主键的对应关系。</summary>
  9483. </member>
  9484. <member name="M:NewLife.Net.TcpServer.CreateSession(System.Net.Sockets.Socket)">
  9485. <summary>创建会话</summary>
  9486. <param name="client"></param>
  9487. <returns></returns>
  9488. </member>
  9489. <member name="E:NewLife.Net.TcpServer.Error">
  9490. <summary>错误发生/断开连接时</summary>
  9491. </member>
  9492. <member name="M:NewLife.Net.TcpServer.OnError(System.String,System.Exception)">
  9493. <summary>触发异常</summary>
  9494. <param name="action">动作</param>
  9495. <param name="ex">异常</param>
  9496. </member>
  9497. <member name="P:NewLife.Net.TcpServer.LogPrefix">
  9498. <summary>日志前缀</summary>
  9499. </member>
  9500. <member name="P:NewLife.Net.TcpServer.Log">
  9501. <summary>日志对象</summary>
  9502. </member>
  9503. <member name="P:NewLife.Net.TcpServer.LogSend">
  9504. <summary>是否输出发送日志。默认false</summary>
  9505. </member>
  9506. <member name="P:NewLife.Net.TcpServer.LogReceive">
  9507. <summary>是否输出接收日志。默认false</summary>
  9508. </member>
  9509. <member name="M:NewLife.Net.TcpServer.WriteLog(System.String,System.Object[])">
  9510. <summary>输出日志</summary>
  9511. <param name="format"></param>
  9512. <param name="args"></param>
  9513. </member>
  9514. <member name="M:NewLife.Net.TcpServer.ToString">
  9515. <summary>已重载。</summary>
  9516. <returns></returns>
  9517. </member>
  9518. <member name="T:NewLife.Net.TcpSession">
  9519. <summary>增强TCP客户端</summary>
  9520. </member>
  9521. <member name="P:NewLife.Net.TcpSession.RemoteAddress">
  9522. <summary>实际使用的远程地址。Remote配置域名时,可能有多个IP地址</summary>
  9523. </member>
  9524. <member name="P:NewLife.Net.TcpSession.NewLife#Net#ISocketSession#Server">
  9525. <summary>Socket服务器。当前通讯所在的Socket服务器,其实是TcpServer/UdpServer。该属性决定本会话是客户端会话还是服务的会话</summary>
  9526. </member>
  9527. <member name="P:NewLife.Net.TcpSession.NoDelay">
  9528. <summary>不延迟直接发送。Tcp为了合并小包而设计,客户端默认false,服务端默认true</summary>
  9529. </member>
  9530. <member name="P:NewLife.Net.TcpSession.KeepAliveInterval">
  9531. <summary>KeepAlive间隔。默认0秒不启用</summary>
  9532. </member>
  9533. <member name="P:NewLife.Net.TcpSession.SslProtocol">
  9534. <summary>SSL协议。默认None,服务端Default,客户端不启用</summary>
  9535. </member>
  9536. <member name="P:NewLife.Net.TcpSession.Certificate">
  9537. <summary>X509证书。用于SSL连接时验证证书指纹,可以直接加载pem证书文件,未指定时不验证证书</summary>
  9538. <remarks>
  9539. 可以使用pfx证书文件,也可以使用pem证书文件。
  9540. 服务端必须指定证书,客户端可以不指定,除非服务端请求客户端证书。
  9541. </remarks>
  9542. <example>
  9543. var cert = new X509Certificate2("file", "pass");
  9544. </example>
  9545. </member>
  9546. <member name="M:NewLife.Net.TcpSession.#ctor">
  9547. <summary>实例化增强TCP</summary>
  9548. </member>
  9549. <member name="M:NewLife.Net.TcpSession.#ctor(System.Int32)">
  9550. <summary>使用监听口初始化</summary>
  9551. <param name="listenPort"></param>
  9552. </member>
  9553. <member name="M:NewLife.Net.TcpSession.#ctor(System.Net.Sockets.Socket)">
  9554. <summary>用TCP客户端初始化</summary>
  9555. <param name="client"></param>
  9556. </member>
  9557. <member name="M:NewLife.Net.TcpSession.OnOpen">
  9558. <summary>打开</summary>
  9559. </member>
  9560. <member name="M:NewLife.Net.TcpSession.OnClose(System.String)">
  9561. <summary>关闭</summary>
  9562. <param name="reason">关闭原因。便于日志分析</param>
  9563. </member>
  9564. <member name="M:NewLife.Net.TcpSession.OnSend(NewLife.Data.Packet)">
  9565. <summary>发送数据</summary>
  9566. <remarks>
  9567. 目标地址由<seealso cref="P:NewLife.Net.SessionBase.Remote"/>决定
  9568. </remarks>
  9569. <param name="pk">数据包</param>
  9570. <returns>是否成功</returns>
  9571. </member>
  9572. <member name="M:NewLife.Net.TcpSession.ReceiveAsync(System.Threading.CancellationToken)">
  9573. <summary>异步接收数据。重载以支持SSL</summary>
  9574. <returns></returns>
  9575. </member>
  9576. <member name="M:NewLife.Net.TcpSession.OnEndRead(System.IAsyncResult)">
  9577. <summary>异步读取数据流,仅用于SSL</summary>
  9578. <param name="ar"></param>
  9579. </member>
  9580. <member name="M:NewLife.Net.TcpSession.OnPreReceive(NewLife.Data.Packet,System.Net.IPAddress,System.Net.IPEndPoint)">
  9581. <summary>预处理</summary>
  9582. <param name="pk">数据包</param>
  9583. <param name="local">接收数据的本地地址</param>
  9584. <param name="remote">远程地址</param>
  9585. <returns>将要处理该数据包的会话</returns>
  9586. </member>
  9587. <member name="M:NewLife.Net.TcpSession.OnReceive(NewLife.Net.ReceivedEventArgs)">
  9588. <summary>处理收到的数据</summary>
  9589. <param name="e">接收事件参数</param>
  9590. </member>
  9591. <member name="P:NewLife.Net.TcpSession.LogPrefix">
  9592. <summary>日志前缀</summary>
  9593. </member>
  9594. <member name="M:NewLife.Net.TcpSession.ToString">
  9595. <summary>已重载。</summary>
  9596. <returns></returns>
  9597. </member>
  9598. <member name="T:NewLife.Net.UdpServer">
  9599. <summary>增强的UDP</summary>
  9600. <remarks>
  9601. 如果已经打开异步接收,还要使用同步接收,则同步Receive内部不再调用底层Socket,而是等待截走异步数据。
  9602. </remarks>
  9603. </member>
  9604. <member name="P:NewLife.Net.UdpServer.SessionTimeout">
  9605. <summary>会话超时时间</summary>
  9606. <remarks>
  9607. 对于每一个会话连接,如果超过该时间仍然没有收到任何数据,则断开会话连接。
  9608. </remarks>
  9609. </member>
  9610. <member name="P:NewLife.Net.UdpServer.Loopback">
  9611. <summary>是否接收来自自己广播的环回数据。默认false</summary>
  9612. </member>
  9613. <member name="P:NewLife.Net.UdpServer.ReuseAddress">
  9614. <summary>地址重用,主要应用于网络服务器重启交替。默认false</summary>
  9615. <remarks>
  9616. 一个端口释放后会等待两分钟之后才能再被使用,SO_REUSEADDR是让端口释放后立即就可以被再次使用。
  9617. SO_REUSEADDR用于对TCP套接字处于TIME_WAIT状态下的socket(TCP连接中, 先调用close() 的一方会进入TIME_WAIT状态),才可以重复绑定使用。
  9618. </remarks>
  9619. </member>
  9620. <member name="M:NewLife.Net.UdpServer.#ctor">
  9621. <summary>实例化增强UDP</summary>
  9622. </member>
  9623. <member name="M:NewLife.Net.UdpServer.#ctor(System.Int32)">
  9624. <summary>使用监听口初始化</summary>
  9625. <param name="listenPort"></param>
  9626. </member>
  9627. <member name="M:NewLife.Net.UdpServer.Dispose(System.Boolean)">
  9628. <summary>销毁</summary>
  9629. <param name="disposing"></param>
  9630. </member>
  9631. <member name="M:NewLife.Net.UdpServer.OnOpen">
  9632. <summary>打开</summary>
  9633. </member>
  9634. <member name="M:NewLife.Net.UdpServer.OnClose(System.String)">
  9635. <summary>关闭</summary>
  9636. </member>
  9637. <member name="M:NewLife.Net.UdpServer.OnSend(NewLife.Data.Packet)">
  9638. <summary>发送数据</summary>
  9639. <remarks>
  9640. 目标地址由<seealso cref="P:NewLife.Net.SessionBase.Remote"/>决定
  9641. </remarks>
  9642. <param name="pk">数据包</param>
  9643. <returns>是否成功</returns>
  9644. </member>
  9645. <member name="M:NewLife.Net.UdpServer.SendMessageAsync(System.Object)">
  9646. <summary>发送消息并等待响应。必须调用会话的发送,否则配对会失败</summary>
  9647. <param name="message">消息</param>
  9648. <returns></returns>
  9649. </member>
  9650. <member name="M:NewLife.Net.UdpServer.SendMessageAsync(System.Object,System.Threading.CancellationToken)">
  9651. <summary>发送消息并等待响应。必须调用会话的发送,否则配对会失败</summary>
  9652. <param name="message">消息</param>
  9653. <param name="cancellationToken">取消通知</param>
  9654. <returns></returns>
  9655. </member>
  9656. <member name="M:NewLife.Net.UdpServer.OnPreReceive(NewLife.Data.Packet,System.Net.IPAddress,System.Net.IPEndPoint)">
  9657. <summary>预处理</summary>
  9658. <param name="pk">数据包</param>
  9659. <param name="local">接收数据的本地地址</param>
  9660. <param name="remote">远程地址</param>
  9661. <returns>将要处理该数据包的会话</returns>
  9662. </member>
  9663. <member name="M:NewLife.Net.UdpServer.OnReceive(NewLife.Net.ReceivedEventArgs)">
  9664. <summary>处理收到的数据</summary>
  9665. <param name="e">接收事件参数</param>
  9666. </member>
  9667. <member name="M:NewLife.Net.UdpServer.OnReceiveError(System.Net.Sockets.SocketAsyncEventArgs)">
  9668. <summary>收到异常时如何处理。Tcp/Udp客户端默认关闭会话,但是Udp服务端不能关闭服务器,仅关闭会话</summary>
  9669. <param name="se"></param>
  9670. <returns>是否当作异常处理并结束会话</returns>
  9671. </member>
  9672. <member name="E:NewLife.Net.UdpServer.NewSession">
  9673. <summary>新会话时触发</summary>
  9674. </member>
  9675. <member name="P:NewLife.Net.UdpServer.Sessions">
  9676. <summary>会话集合。用地址端口作为标识,业务应用自己维持地址端口与业务主键的对应关系。</summary>
  9677. </member>
  9678. <member name="M:NewLife.Net.UdpServer.CreateSession(System.Net.IPAddress,System.Net.IPEndPoint)">
  9679. <summary>创建会话</summary>
  9680. <param name="local">接收数据的本地地址</param>
  9681. <param name="remoteEP">远程地址</param>
  9682. <returns></returns>
  9683. </member>
  9684. <member name="M:NewLife.Net.UdpServer.ToString">
  9685. <summary>已重载。</summary>
  9686. <returns></returns>
  9687. </member>
  9688. <member name="T:NewLife.Net.UdpHelper">
  9689. <summary>Udp扩展</summary>
  9690. </member>
  9691. <member name="M:NewLife.Net.UdpHelper.Send(System.Net.Sockets.UdpClient,System.IO.Stream,System.Net.IPEndPoint)">
  9692. <summary>发送数据流</summary>
  9693. <param name="udp"></param>
  9694. <param name="stream"></param>
  9695. <param name="remoteEP"></param>
  9696. <returns>返回自身,用于链式写法</returns>
  9697. </member>
  9698. <member name="M:NewLife.Net.UdpHelper.Send(System.Net.Sockets.UdpClient,System.Byte[],System.Net.IPEndPoint)">
  9699. <summary>向指定目的地发送信息</summary>
  9700. <param name="udp"></param>
  9701. <param name="buffer">缓冲区</param>
  9702. <param name="remoteEP"></param>
  9703. <returns>返回自身,用于链式写法</returns>
  9704. </member>
  9705. <member name="M:NewLife.Net.UdpHelper.Send(System.Net.Sockets.UdpClient,System.String,System.Text.Encoding,System.Net.IPEndPoint)">
  9706. <summary>向指定目的地发送信息</summary>
  9707. <param name="udp"></param>
  9708. <param name="message"></param>
  9709. <param name="encoding">文本编码,默认null表示UTF-8编码</param>
  9710. <param name="remoteEP"></param>
  9711. <returns>返回自身,用于链式写法</returns>
  9712. </member>
  9713. <member name="M:NewLife.Net.UdpHelper.Broadcast(System.Net.Sockets.UdpClient,System.Byte[],System.Int32)">
  9714. <summary>广播数据包</summary>
  9715. <param name="udp"></param>
  9716. <param name="buffer">缓冲区</param>
  9717. <param name="port"></param>
  9718. </member>
  9719. <member name="M:NewLife.Net.UdpHelper.Broadcast(System.Net.Sockets.UdpClient,System.String,System.Int32)">
  9720. <summary>广播字符串</summary>
  9721. <param name="udp"></param>
  9722. <param name="message"></param>
  9723. <param name="port"></param>
  9724. </member>
  9725. <member name="M:NewLife.Net.UdpHelper.ReceiveString(System.Net.Sockets.UdpClient,System.Text.Encoding)">
  9726. <summary>接收字符串</summary>
  9727. <param name="udp"></param>
  9728. <param name="encoding">文本编码,默认null表示UTF-8编码</param>
  9729. <returns></returns>
  9730. </member>
  9731. <member name="T:NewLife.Net.UdpSession">
  9732. <summary>Udp会话。仅用于服务端与某一固定远程地址通信</summary>
  9733. </member>
  9734. <member name="P:NewLife.Net.UdpSession.ID">
  9735. <summary>会话编号</summary>
  9736. </member>
  9737. <member name="P:NewLife.Net.UdpSession.Name">
  9738. <summary>名称</summary>
  9739. </member>
  9740. <member name="P:NewLife.Net.UdpSession.Server">
  9741. <summary>服务器</summary>
  9742. </member>
  9743. <member name="P:NewLife.Net.UdpSession.NewLife#Net#ISocket#Client">
  9744. <summary>底层Socket</summary>
  9745. </member>
  9746. <member name="P:NewLife.Net.UdpSession.Local">
  9747. <summary>本地地址</summary>
  9748. </member>
  9749. <member name="P:NewLife.Net.UdpSession.Port">
  9750. <summary>端口</summary>
  9751. </member>
  9752. <member name="P:NewLife.Net.UdpSession.Remote">
  9753. <summary>远程地址</summary>
  9754. </member>
  9755. <member name="P:NewLife.Net.UdpSession.Timeout">
  9756. <summary>超时。默认3000ms</summary>
  9757. </member>
  9758. <member name="P:NewLife.Net.UdpSession.Pipeline">
  9759. <summary>消息管道。收发消息都经过管道处理器,进行协议编码解码</summary>
  9760. <remarks>
  9761. 1,接收数据解码时,从前向后通过管道处理器;
  9762. 2,发送数据编码时,从后向前通过管道处理器;
  9763. </remarks>
  9764. </member>
  9765. <member name="P:NewLife.Net.UdpSession.NewLife#Net#ISocketSession#Server">
  9766. <summary>Socket服务器。当前通讯所在的Socket服务器,其实是TcpServer/UdpServer</summary>
  9767. </member>
  9768. <member name="P:NewLife.Net.UdpSession.LastTime">
  9769. <summary>最后一次通信时间,主要表示活跃时间,包括收发</summary>
  9770. </member>
  9771. <member name="P:NewLife.Net.UdpSession.Tracer">
  9772. <summary>APM性能追踪器</summary>
  9773. </member>
  9774. <member name="M:NewLife.Net.UdpSession.#ctor(NewLife.Net.UdpServer,System.Net.IPAddress,System.Net.IPEndPoint)">
  9775. <summary>实例化Udp会话</summary>
  9776. <param name="server"></param>
  9777. <param name="local">接收数据的本地地址</param>
  9778. <param name="remote"></param>
  9779. </member>
  9780. <member name="M:NewLife.Net.UdpSession.Start">
  9781. <summary>开始数据交换</summary>
  9782. </member>
  9783. <member name="M:NewLife.Net.UdpSession.Dispose(System.Boolean)">
  9784. <summary>销毁</summary>
  9785. <param name="disposing"></param>
  9786. </member>
  9787. <member name="M:NewLife.Net.UdpSession.Send(NewLife.Data.Packet)">
  9788. <summary>发送数据</summary>
  9789. <param name="data"></param>
  9790. <returns></returns>
  9791. <exception cref="T:System.ObjectDisposedException"></exception>
  9792. </member>
  9793. <member name="M:NewLife.Net.UdpSession.SendMessage(System.Object)">
  9794. <summary>发送消息,不等待响应</summary>
  9795. <param name="message"></param>
  9796. <returns></returns>
  9797. </member>
  9798. <member name="M:NewLife.Net.UdpSession.SendMessageAsync(System.Object)">
  9799. <summary>发送消息并等待响应</summary>
  9800. <param name="message">消息</param>
  9801. <returns></returns>
  9802. </member>
  9803. <member name="M:NewLife.Net.UdpSession.SendMessageAsync(System.Object,System.Threading.CancellationToken)">
  9804. <summary>发送消息并等待响应</summary>
  9805. <param name="message">消息</param>
  9806. <param name="cancellationToken">取消通知</param>
  9807. <returns></returns>
  9808. </member>
  9809. <member name="M:NewLife.Net.UdpSession.Receive">
  9810. <summary>接收数据</summary>
  9811. <returns></returns>
  9812. </member>
  9813. <member name="M:NewLife.Net.UdpSession.ReceiveAsync(System.Threading.CancellationToken)">
  9814. <summary>异步接收数据</summary>
  9815. <returns></returns>
  9816. </member>
  9817. <member name="E:NewLife.Net.UdpSession.Received">
  9818. <summary>数据接收事件</summary>
  9819. </member>
  9820. <member name="M:NewLife.Net.UdpSession.NewLife#Net#ISocketRemote#Process(NewLife.Data.IData)">
  9821. <summary>处理数据帧</summary>
  9822. <param name="data">数据帧</param>
  9823. </member>
  9824. <member name="E:NewLife.Net.UdpSession.Error">
  9825. <summary>错误发生/断开连接时</summary>
  9826. </member>
  9827. <member name="M:NewLife.Net.UdpSession.OnError(System.String,System.Exception)">
  9828. <summary>触发异常</summary>
  9829. <param name="action">动作</param>
  9830. <param name="ex">异常</param>
  9831. </member>
  9832. <member name="M:NewLife.Net.UdpSession.ToString">
  9833. <summary>已重载。</summary>
  9834. <returns></returns>
  9835. </member>
  9836. <member name="P:NewLife.Net.UdpSession.Items">
  9837. <summary>数据项</summary>
  9838. </member>
  9839. <member name="P:NewLife.Net.UdpSession.Item(System.String)">
  9840. <summary>设置 或 获取 数据项</summary>
  9841. <param name="key"></param>
  9842. <returns></returns>
  9843. </member>
  9844. <member name="P:NewLife.Net.UdpSession.Log">
  9845. <summary>日志提供者</summary>
  9846. </member>
  9847. <member name="P:NewLife.Net.UdpSession.LogSend">
  9848. <summary>是否输出发送日志。默认false</summary>
  9849. </member>
  9850. <member name="P:NewLife.Net.UdpSession.LogReceive">
  9851. <summary>是否输出接收日志。默认false</summary>
  9852. </member>
  9853. <member name="P:NewLife.Net.UdpSession.LogPrefix">
  9854. <summary>日志前缀</summary>
  9855. </member>
  9856. <member name="M:NewLife.Net.UdpSession.WriteLog(System.String,System.Object[])">
  9857. <summary>输出日志</summary>
  9858. <param name="format"></param>
  9859. <param name="args"></param>
  9860. </member>
  9861. <member name="T:NewLife.Net.Upgrade">
  9862. <summary>升级更新</summary>
  9863. <remarks>
  9864. 优先比较版本Version,再比较时间Time。
  9865. 自动更新的难点在于覆盖正在使用的exe/dll文件,通过改名可以解决。
  9866. </remarks>
  9867. </member>
  9868. <member name="P:NewLife.Net.Upgrade.Name">
  9869. <summary>名称</summary>
  9870. </member>
  9871. <member name="P:NewLife.Net.Upgrade.Server">
  9872. <summary>服务器地址</summary>
  9873. </member>
  9874. <member name="P:NewLife.Net.Upgrade.Version">
  9875. <summary>版本</summary>
  9876. </member>
  9877. <member name="P:NewLife.Net.Upgrade.Time">
  9878. <summary>本地编译时间</summary>
  9879. </member>
  9880. <member name="P:NewLife.Net.Upgrade.UpdatePath">
  9881. <summary>更新目录</summary>
  9882. </member>
  9883. <member name="P:NewLife.Net.Upgrade.DestinationPath">
  9884. <summary>目标目录</summary>
  9885. </member>
  9886. <member name="P:NewLife.Net.Upgrade.Link">
  9887. <summary>超链接信息</summary>
  9888. </member>
  9889. <member name="P:NewLife.Net.Upgrade.CacheFile">
  9890. <summary>缓存文件。同名文件不再下载,默认false</summary>
  9891. </member>
  9892. <member name="P:NewLife.Net.Upgrade.SourceFile">
  9893. <summary>更新源文件</summary>
  9894. </member>
  9895. <member name="M:NewLife.Net.Upgrade.#ctor">
  9896. <summary>实例化一个升级对象实例,获取当前应用信息</summary>
  9897. </member>
  9898. <member name="M:NewLife.Net.Upgrade.Check">
  9899. <summary>获取版本信息,检查是否需要更新</summary>
  9900. <returns></returns>
  9901. </member>
  9902. <member name="M:NewLife.Net.Upgrade.Download">
  9903. <summary>开始更新</summary>
  9904. </member>
  9905. <member name="M:NewLife.Net.Upgrade.Download(System.String,System.String)">
  9906. <summary>开始更新</summary>
  9907. <param name="url">下载源</param>
  9908. <param name="fileName">文件名</param>
  9909. </member>
  9910. <member name="M:NewLife.Net.Upgrade.DownloadAsync(System.String,System.String,System.Threading.CancellationToken)">
  9911. <summary>开始更新</summary>
  9912. <param name="url">下载源</param>
  9913. <param name="fileName">文件名</param>
  9914. <param name="cancellationToken">取消通知</param>
  9915. </member>
  9916. <member name="M:NewLife.Net.Upgrade.Update">
  9917. <summary>检查并执行更新操作</summary>
  9918. </member>
  9919. <member name="M:NewLife.Net.Upgrade.Run">
  9920. <summary>启动当前应用的新进程。当前进程退出</summary>
  9921. </member>
  9922. <member name="M:NewLife.Net.Upgrade.DeleteBuckup(System.String)">
  9923. <summary>删除备份文件</summary>
  9924. <param name="dest">目标目录</param>
  9925. </member>
  9926. <member name="M:NewLife.Net.Upgrade.DeleteBackup(System.String)">
  9927. <summary>删除备份文件</summary>
  9928. <param name="dest">目标目录</param>
  9929. </member>
  9930. <member name="M:NewLife.Net.Upgrade.Extract(System.String)">
  9931. <summary>
  9932. 解压缩
  9933. </summary>
  9934. <param name="fileName"></param>
  9935. </member>
  9936. <member name="M:NewLife.Net.Upgrade.CopyAndReplace(System.String,System.String)">
  9937. <summary>拷贝并替换。正在使用锁定的文件不可删除,但可以改名</summary>
  9938. <param name="source">源目录</param>
  9939. <param name="dest">目标目录</param>
  9940. </member>
  9941. <member name="P:NewLife.Net.Upgrade.Log">
  9942. <summary>日志对象</summary>
  9943. </member>
  9944. <member name="M:NewLife.Net.Upgrade.WriteLog(System.String,System.Object[])">
  9945. <summary>输出日志</summary>
  9946. <param name="format"></param>
  9947. <param name="args"></param>
  9948. </member>
  9949. <member name="T:NewLife.Net.WebSocketClient">
  9950. <summary>WebSocket客户端</summary>
  9951. </member>
  9952. <member name="P:NewLife.Net.WebSocketClient.Uri">
  9953. <summary>资源地址</summary>
  9954. </member>
  9955. <member name="P:NewLife.Net.WebSocketClient.KeepAlive">
  9956. <summary>WebSocket心跳间隔。默认60秒</summary>
  9957. </member>
  9958. <member name="M:NewLife.Net.WebSocketClient.#ctor">
  9959. <summary>实例化</summary>
  9960. </member>
  9961. <member name="M:NewLife.Net.WebSocketClient.#ctor(System.Uri)">
  9962. <summary>实例化</summary>
  9963. <param name="uri"></param>
  9964. </member>
  9965. <member name="M:NewLife.Net.WebSocketClient.#ctor(System.String)">
  9966. <summary>实例化</summary>
  9967. <param name="url"></param>
  9968. </member>
  9969. <member name="M:NewLife.Net.WebSocketClient.OnOpen">
  9970. <summary>打开连接,建立WebSocket请求</summary>
  9971. <returns></returns>
  9972. </member>
  9973. <member name="M:NewLife.Net.WebSocketClient.OnClose(System.String)">
  9974. <summary>关闭连接</summary>
  9975. <param name="reason"></param>
  9976. <returns></returns>
  9977. </member>
  9978. <member name="M:NewLife.Net.WebSocketClient.ReceiveMessageAsync(System.Threading.CancellationToken)">
  9979. <summary>接收WebSocket消息</summary>
  9980. <param name="cancellationToken"></param>
  9981. <returns></returns>
  9982. </member>
  9983. <member name="M:NewLife.Net.WebSocketClient.SendMessageAsync(NewLife.Http.WebSocketMessage,System.Threading.CancellationToken)">
  9984. <summary>发送消息</summary>
  9985. <param name="message"></param>
  9986. <param name="cancellationToken"></param>
  9987. <returns></returns>
  9988. </member>
  9989. <member name="M:NewLife.Net.WebSocketClient.SendTextAsync(NewLife.Data.Packet,System.Threading.CancellationToken)">
  9990. <summary>发送文本</summary>
  9991. <param name="data"></param>
  9992. <param name="cancellationToken"></param>
  9993. <returns></returns>
  9994. </member>
  9995. <member name="M:NewLife.Net.WebSocketClient.SendTextAsync(System.String,System.Threading.CancellationToken)">
  9996. <summary>发送文本</summary>
  9997. <param name="text"></param>
  9998. <param name="cancellationToken"></param>
  9999. <returns></returns>
  10000. </member>
  10001. <member name="M:NewLife.Net.WebSocketClient.SendBinaryAsync(NewLife.Data.Packet,System.Threading.CancellationToken)">
  10002. <summary>发送二进制数据</summary>
  10003. <param name="data"></param>
  10004. <param name="cancellationToken"></param>
  10005. <returns></returns>
  10006. </member>
  10007. <member name="M:NewLife.Net.WebSocketClient.CloseAsync(System.Int32,System.String,System.Threading.CancellationToken)">
  10008. <summary>发送关闭</summary>
  10009. <param name="closeStatus"></param>
  10010. <param name="statusDescription"></param>
  10011. <param name="cancellationToken"></param>
  10012. <returns></returns>
  10013. </member>
  10014. <member name="M:NewLife.Net.WebSocketClient.Handshake(NewLife.Net.ISocketClient,System.Uri)">
  10015. <summary>握手</summary>
  10016. <param name="client"></param>
  10017. <param name="uri"></param>
  10018. <returns></returns>
  10019. </member>
  10020. <member name="T:NewLife.NetHelper">
  10021. <summary>网络工具类</summary>
  10022. </member>
  10023. <member name="M:NewLife.NetHelper.SetTcpKeepAlive(System.Net.Sockets.Socket,System.Boolean,System.Int32,System.Int32)">
  10024. <summary>设置超时检测时间和检测间隔</summary>
  10025. <remarks>
  10026. 一次对server服务大量积压异常TCP ESTABLISHED链接的排查笔记 https://www.jianshu.com/p/a1c3aba4af96
  10027. 查看连接创建时间: sudo ls /proc/128260/fd -l|grep socket ,可发现大量连接的创建时间在很久之前。
  10028. 查看连接是否有启用keepalive: ss -aoen|grep ESTAB|grep timer ,带有timer的socket表示启用了keepalive。
  10029. </remarks>
  10030. <param name="socket">要设置的Socket对象</param>
  10031. <param name="isKeepAlive">是否启用Keep-Alive</param>
  10032. <param name="startTime">多长时间后开始第一次探测(单位:秒)</param>
  10033. <param name="interval">探测时间间隔(单位:秒)</param>
  10034. </member>
  10035. <member name="M:NewLife.NetHelper.ParseAddress(System.String)">
  10036. <summary>分析地址,根据IP或者域名得到IP地址,缓存60秒,异步更新</summary>
  10037. <param name="hostname"></param>
  10038. <returns></returns>
  10039. </member>
  10040. <member name="M:NewLife.NetHelper.ParseEndPoint(System.String,System.Int32)">
  10041. <summary>分析网络终结点</summary>
  10042. <param name="address">地址,可以不带端口</param>
  10043. <param name="defaultPort">地址不带端口时指定的默认端口</param>
  10044. <returns></returns>
  10045. </member>
  10046. <member name="M:NewLife.NetHelper.GetRightAny(System.Net.IPAddress,System.Net.Sockets.AddressFamily)">
  10047. <summary>针对IPv4和IPv6获取合适的Any地址</summary>
  10048. <remarks>除了Any地址以为,其它地址不具备等效性</remarks>
  10049. <param name="address"></param>
  10050. <param name="family"></param>
  10051. <returns></returns>
  10052. </member>
  10053. <member name="M:NewLife.NetHelper.IsAny(System.Net.IPAddress)">
  10054. <summary>是否Any地址,同时处理IPv4和IPv6</summary>
  10055. <param name="address"></param>
  10056. <returns></returns>
  10057. </member>
  10058. <member name="M:NewLife.NetHelper.IsAny(System.Net.EndPoint)">
  10059. <summary>是否Any结点</summary>
  10060. <param name="endpoint"></param>
  10061. <returns></returns>
  10062. </member>
  10063. <member name="M:NewLife.NetHelper.IsIPv4(System.Net.IPAddress)">
  10064. <summary>是否IPv4地址</summary>
  10065. <param name="address"></param>
  10066. <returns></returns>
  10067. </member>
  10068. <member name="M:NewLife.NetHelper.IsLocal(System.Net.IPAddress)">
  10069. <summary>是否本地地址</summary>
  10070. <param name="address"></param>
  10071. <returns></returns>
  10072. </member>
  10073. <member name="M:NewLife.NetHelper.GetRelativeAddress(System.Net.IPAddress,System.Net.IPAddress)">
  10074. <summary>获取相对于指定远程地址的本地地址</summary>
  10075. <param name="address"></param>
  10076. <param name="remote"></param>
  10077. <returns></returns>
  10078. </member>
  10079. <member name="M:NewLife.NetHelper.GetRelativeEndPoint(System.Net.IPEndPoint,System.Net.IPAddress)">
  10080. <summary>获取相对于指定远程地址的本地地址</summary>
  10081. <param name="local"></param>
  10082. <param name="remote"></param>
  10083. <returns></returns>
  10084. </member>
  10085. <member name="M:NewLife.NetHelper.CheckPort(System.Net.IPAddress,NewLife.Net.NetType,System.Int32)">
  10086. <summary>指定地址的指定端口是否已被使用,似乎没办法判断IPv6地址</summary>
  10087. <param name="protocol"></param>
  10088. <param name="address"></param>
  10089. <param name="port"></param>
  10090. <returns></returns>
  10091. </member>
  10092. <member name="M:NewLife.NetHelper.CheckPort(NewLife.Net.NetUri)">
  10093. <summary>检查该协议的地址端口是否已经被使用</summary>
  10094. <param name="uri"></param>
  10095. <returns></returns>
  10096. </member>
  10097. <member name="M:NewLife.NetHelper.GetAllTcpConnections">
  10098. <summary>获取所有Tcp连接,带进程Id</summary>
  10099. <returns></returns>
  10100. </member>
  10101. <member name="M:NewLife.NetHelper.GetAllTcpConnections(System.Int32)">
  10102. <summary>获取所有Tcp连接,带进程Id</summary>
  10103. <returns></returns>
  10104. </member>
  10105. <member name="M:NewLife.NetHelper.GetActiveInterfaces">
  10106. <summary>获取活动的接口信息</summary>
  10107. <returns></returns>
  10108. </member>
  10109. <member name="M:NewLife.NetHelper.GetDhcps">
  10110. <summary>获取可用的DHCP地址</summary>
  10111. <returns></returns>
  10112. </member>
  10113. <member name="M:NewLife.NetHelper.GetDns">
  10114. <summary>获取可用的DNS地址</summary>
  10115. <returns></returns>
  10116. </member>
  10117. <member name="M:NewLife.NetHelper.GetGateways">
  10118. <summary>获取可用的网关地址</summary>
  10119. <returns></returns>
  10120. </member>
  10121. <member name="M:NewLife.NetHelper.GetIPs">
  10122. <summary>获取可用的IP地址</summary>
  10123. <returns></returns>
  10124. </member>
  10125. <member name="M:NewLife.NetHelper.GetIPsWithCache">
  10126. <summary>获取本机可用IP地址,缓存60秒,异步更新</summary>
  10127. <returns></returns>
  10128. </member>
  10129. <member name="M:NewLife.NetHelper.GetMulticasts">
  10130. <summary>获取可用的多播地址</summary>
  10131. <returns></returns>
  10132. </member>
  10133. <member name="M:NewLife.NetHelper.GetMacs">
  10134. <summary>获取所有物理网卡MAC地址。包括未启用网卡,剔除本地和隧道</summary>
  10135. <returns></returns>
  10136. </member>
  10137. <member name="M:NewLife.NetHelper.GetMac">
  10138. <summary>获取网卡MAC地址(网关所在网卡)</summary>
  10139. <returns></returns>
  10140. </member>
  10141. <member name="M:NewLife.NetHelper.MyIP">
  10142. <summary>获取本地第一个IPv4地址。一般是网关所在网卡的IP地址</summary>
  10143. <returns></returns>
  10144. </member>
  10145. <member name="M:NewLife.NetHelper.MyIPv6">
  10146. <summary>获取本地第一个IPv6地址</summary>
  10147. <returns></returns>
  10148. </member>
  10149. <member name="M:NewLife.NetHelper.Wake(System.String[])">
  10150. <summary>唤醒指定MAC地址的计算机</summary>
  10151. <param name="macs"></param>
  10152. </member>
  10153. <member name="M:NewLife.NetHelper.GetMac(System.Net.IPAddress)">
  10154. <summary>根据IP地址获取MAC地址</summary>
  10155. <param name="ip"></param>
  10156. <returns></returns>
  10157. </member>
  10158. <member name="P:NewLife.NetHelper.IpResolver">
  10159. <summary>IP地址提供者</summary>
  10160. </member>
  10161. <member name="M:NewLife.NetHelper.GetAddress(System.Net.IPAddress)">
  10162. <summary>获取IP地址的物理地址位置</summary>
  10163. <param name="addr"></param>
  10164. <returns></returns>
  10165. </member>
  10166. <member name="M:NewLife.NetHelper.IPToAddress(System.String)">
  10167. <summary>根据字符串形式IP地址转为物理地址</summary>
  10168. <param name="addr"></param>
  10169. <returns></returns>
  10170. </member>
  10171. <member name="M:NewLife.NetHelper.CreateClient(NewLife.Net.NetUri)">
  10172. <summary>根据本地网络标识创建客户端</summary>
  10173. <param name="local"></param>
  10174. <returns></returns>
  10175. </member>
  10176. <member name="M:NewLife.NetHelper.CreateRemote(NewLife.Net.NetUri)">
  10177. <summary>根据远程网络标识创建客户端</summary>
  10178. <param name="remote"></param>
  10179. <returns></returns>
  10180. </member>
  10181. <member name="M:NewLife.NetHelper.CreateRemote(System.Uri)">
  10182. <summary>根据Uri创建客户端,主要支持Http/WebSocket</summary>
  10183. <param name="uri"></param>
  10184. <returns></returns>
  10185. <exception cref="T:System.NotSupportedException"></exception>
  10186. </member>
  10187. <member name="T:NewLife.Reflection.AssemblyX">
  10188. <summary>程序集辅助类。使用Create创建,保证每个程序集只有一个辅助类</summary>
  10189. </member>
  10190. <member name="P:NewLife.Reflection.AssemblyX.Asm">
  10191. <summary>程序集</summary>
  10192. </member>
  10193. <member name="P:NewLife.Reflection.AssemblyX.Name">
  10194. <summary>名称</summary>
  10195. </member>
  10196. <member name="P:NewLife.Reflection.AssemblyX.Version">
  10197. <summary>程序集版本</summary>
  10198. </member>
  10199. <member name="P:NewLife.Reflection.AssemblyX.Title">
  10200. <summary>程序集标题</summary>
  10201. </member>
  10202. <member name="P:NewLife.Reflection.AssemblyX.FileVersion">
  10203. <summary>文件版本</summary>
  10204. </member>
  10205. <member name="P:NewLife.Reflection.AssemblyX.Compile">
  10206. <summary>编译时间</summary>
  10207. </member>
  10208. <member name="P:NewLife.Reflection.AssemblyX.Company">
  10209. <summary>公司名称</summary>
  10210. </member>
  10211. <member name="P:NewLife.Reflection.AssemblyX.Description">
  10212. <summary>说明</summary>
  10213. </member>
  10214. <member name="P:NewLife.Reflection.AssemblyX.Location">
  10215. <summary>获取包含清单的已加载文件的路径或 UNC 位置。</summary>
  10216. </member>
  10217. <member name="M:NewLife.Reflection.AssemblyX.Create(System.Reflection.Assembly)">
  10218. <summary>创建程序集辅助对象</summary>
  10219. <param name="asm"></param>
  10220. <returns></returns>
  10221. </member>
  10222. <member name="P:NewLife.Reflection.AssemblyX.Types">
  10223. <summary>类型集合,当前程序集的所有类型,包括私有和内嵌,非内嵌请直接调用Asm.GetTypes()</summary>
  10224. </member>
  10225. <member name="P:NewLife.Reflection.AssemblyX.IsSystemAssembly">
  10226. <summary>是否系统程序集</summary>
  10227. </member>
  10228. <member name="P:NewLife.Reflection.AssemblyX.Entry">
  10229. <summary>入口程序集</summary>
  10230. </member>
  10231. <member name="P:NewLife.Reflection.AssemblyX.ResolveFilter">
  10232. <summary>
  10233. 加载过滤器,如果返回 false 表示跳过加载。
  10234. </summary>
  10235. </member>
  10236. <member name="M:NewLife.Reflection.AssemblyX.GetType(System.String)">
  10237. <summary>从程序集中查找指定名称的类型</summary>
  10238. <param name="typeName"></param>
  10239. <returns></returns>
  10240. </member>
  10241. <member name="M:NewLife.Reflection.AssemblyX.GetTypeInternal(System.String)">
  10242. <summary>在程序集中查找类型</summary>
  10243. <param name="typeName"></param>
  10244. <returns></returns>
  10245. </member>
  10246. <member name="M:NewLife.Reflection.AssemblyX.FindPlugins(System.Type)">
  10247. <summary>查找插件,带缓存</summary>
  10248. <param name="baseType">类型</param>
  10249. <returns></returns>
  10250. </member>
  10251. <member name="M:NewLife.Reflection.AssemblyX.FindAllPlugins(System.Type,System.Boolean,System.Boolean)">
  10252. <summary>查找所有非系统程序集中的所有插件</summary>
  10253. <remarks>继承类所在的程序集会引用baseType所在的程序集,利用这一点可以做一定程度的性能优化。</remarks>
  10254. <param name="baseType"></param>
  10255. <param name="isLoadAssembly">是否从未加载程序集中获取类型。使用仅反射的方法检查目标类型,如果存在,则进行常规加载</param>
  10256. <param name="excludeGlobalTypes">指示是否应检查来自所有引用程序集的类型。如果为 false,则检查来自所有引用程序集的类型。 否则,只检查来自非全局程序集缓存 (GAC) 引用的程序集的类型。</param>
  10257. <returns></returns>
  10258. </member>
  10259. <member name="M:NewLife.Reflection.AssemblyX.IsReferencedFrom(System.Reflection.Assembly,System.String)">
  10260. <summary><paramref name="asm"/> 是否引用了 <paramref name="baseAsmName"/></summary>
  10261. <param name="asm">程序集</param>
  10262. <param name="baseAsmName">被引用程序集全名</param>
  10263. <returns></returns>
  10264. </member>
  10265. <member name="M:NewLife.Reflection.AssemblyX.GetType(System.String,System.Boolean)">
  10266. <summary>根据名称获取类型</summary>
  10267. <param name="typeName">类型名</param>
  10268. <param name="isLoadAssembly">是否从未加载程序集中获取类型。使用仅反射的方法检查目标类型,如果存在,则进行常规加载</param>
  10269. <returns></returns>
  10270. </member>
  10271. <member name="M:NewLife.Reflection.AssemblyX.GetAssemblies(System.AppDomain)">
  10272. <summary>获取指定程序域所有程序集</summary>
  10273. <param name="domain"></param>
  10274. <returns></returns>
  10275. </member>
  10276. <member name="P:NewLife.Reflection.AssemblyX.AssemblyPaths">
  10277. <summary>程序集目录集合</summary>
  10278. </member>
  10279. <member name="M:NewLife.Reflection.AssemblyX.ReflectionOnlyGetAssemblies">
  10280. <summary>获取当前程序域所有只反射程序集的辅助类。NETCore不支持只反射加载,该方法动态加载DLL后返回</summary>
  10281. <returns></returns>
  10282. </member>
  10283. <member name="M:NewLife.Reflection.AssemblyX.ReflectionOnlyLoad(System.String)">
  10284. <summary>只反射加载指定路径的所有程序集。NETCore不支持只反射加载,该方法动态加载DLL后返回</summary>
  10285. <param name="path"></param>
  10286. <returns></returns>
  10287. </member>
  10288. <member name="M:NewLife.Reflection.AssemblyX.GetMyAssemblies">
  10289. <summary>获取当前应用程序的所有程序集,不包括系统程序集,仅限本目录</summary>
  10290. <returns></returns>
  10291. </member>
  10292. <member name="M:NewLife.Reflection.AssemblyX.OnResolve(System.String)">
  10293. <summary>在对程序集的解析失败时发生</summary>
  10294. <param name="name"></param>
  10295. <returns></returns>
  10296. </member>
  10297. <member name="M:NewLife.Reflection.AssemblyX.ToString">
  10298. <summary>已重载。</summary>
  10299. <returns></returns>
  10300. </member>
  10301. <member name="M:NewLife.Reflection.AssemblyX.GetCompileTime(System.String)">
  10302. <summary>根据版本号计算得到编译时间</summary>
  10303. <param name="version"></param>
  10304. <returns></returns>
  10305. </member>
  10306. <member name="T:NewLife.Reflection.DynamicInternal">
  10307. <summary>包装程序集内部类的动态对象</summary>
  10308. </member>
  10309. <member name="M:NewLife.Reflection.DynamicInternal.TryConvert(System.Dynamic.ConvertBinder,System.Object@)">
  10310. <summary>类型转换</summary>
  10311. <param name="binder"></param>
  10312. <param name="result"></param>
  10313. <returns></returns>
  10314. </member>
  10315. <member name="M:NewLife.Reflection.DynamicInternal.TryGetMember(System.Dynamic.GetMemberBinder,System.Object@)">
  10316. <summary>成员取值</summary>
  10317. <param name="binder"></param>
  10318. <param name="result"></param>
  10319. <returns></returns>
  10320. </member>
  10321. <member name="M:NewLife.Reflection.DynamicInternal.TryInvokeMember(System.Dynamic.InvokeMemberBinder,System.Object[],System.Object@)">
  10322. <summary>调用成员</summary>
  10323. <param name="binder"></param>
  10324. <param name="args"></param>
  10325. <param name="result"></param>
  10326. <returns></returns>
  10327. </member>
  10328. <member name="M:NewLife.Reflection.DynamicInternal.Wrap(System.Object)">
  10329. <summary>包装</summary>
  10330. <param name="obj"></param>
  10331. <returns></returns>
  10332. </member>
  10333. <member name="M:NewLife.Reflection.DynamicInternal.ToString">
  10334. <summary>已重载。</summary>
  10335. <returns></returns>
  10336. </member>
  10337. <member name="T:NewLife.Reflection.DynamicXml">
  10338. <summary>动态Xml</summary>
  10339. </member>
  10340. <member name="P:NewLife.Reflection.DynamicXml.Node">
  10341. <summary>节点</summary>
  10342. </member>
  10343. <member name="M:NewLife.Reflection.DynamicXml.#ctor">
  10344. <summary>实例化</summary>
  10345. </member>
  10346. <member name="M:NewLife.Reflection.DynamicXml.#ctor(System.Xml.Linq.XElement)">
  10347. <summary>实例化</summary>
  10348. <param name="node"></param>
  10349. </member>
  10350. <member name="M:NewLife.Reflection.DynamicXml.#ctor(System.String)">
  10351. <summary>实例化</summary>
  10352. <param name="name"></param>
  10353. </member>
  10354. <member name="M:NewLife.Reflection.DynamicXml.TrySetMember(System.Dynamic.SetMemberBinder,System.Object)">
  10355. <summary>设置</summary>
  10356. <param name="binder"></param>
  10357. <param name="value"></param>
  10358. <returns></returns>
  10359. </member>
  10360. <member name="M:NewLife.Reflection.DynamicXml.TryGetMember(System.Dynamic.GetMemberBinder,System.Object@)">
  10361. <summary>获取</summary>
  10362. <param name="binder"></param>
  10363. <param name="result"></param>
  10364. <returns></returns>
  10365. </member>
  10366. <member name="T:NewLife.Reflection.IReflect">
  10367. <summary>反射接口</summary>
  10368. <remarks>该接口仅用于扩展,不建议外部使用</remarks>
  10369. </member>
  10370. <member name="M:NewLife.Reflection.IReflect.GetType(System.String,System.Boolean)">
  10371. <summary>根据名称获取类型</summary>
  10372. <param name="typeName">类型名</param>
  10373. <param name="isLoadAssembly">是否从未加载程序集中获取类型。使用仅反射的方法检查目标类型,如果存在,则进行常规加载</param>
  10374. <returns></returns>
  10375. </member>
  10376. <member name="M:NewLife.Reflection.IReflect.GetMethod(System.Type,System.String,System.Type[])">
  10377. <summary>获取方法</summary>
  10378. <remarks>用于具有多个签名的同名方法的场合,不确定是否存在性能问题,不建议普通场合使用</remarks>
  10379. <param name="type">类型</param>
  10380. <param name="name">名称</param>
  10381. <param name="paramTypes">参数类型数组</param>
  10382. <returns></returns>
  10383. </member>
  10384. <member name="M:NewLife.Reflection.IReflect.GetMethods(System.Type,System.String,System.Int32)">
  10385. <summary>获取指定名称的方法集合,支持指定参数个数来匹配过滤</summary>
  10386. <param name="type"></param>
  10387. <param name="name"></param>
  10388. <param name="paramCount">参数个数,-1表示不过滤参数个数</param>
  10389. <returns></returns>
  10390. </member>
  10391. <member name="M:NewLife.Reflection.IReflect.GetProperty(System.Type,System.String,System.Boolean)">
  10392. <summary>获取属性</summary>
  10393. <param name="type">类型</param>
  10394. <param name="name">名称</param>
  10395. <param name="ignoreCase">忽略大小写</param>
  10396. <returns></returns>
  10397. </member>
  10398. <member name="M:NewLife.Reflection.IReflect.GetField(System.Type,System.String,System.Boolean)">
  10399. <summary>获取字段</summary>
  10400. <param name="type">类型</param>
  10401. <param name="name">名称</param>
  10402. <param name="ignoreCase">忽略大小写</param>
  10403. <returns></returns>
  10404. </member>
  10405. <member name="M:NewLife.Reflection.IReflect.GetMember(System.Type,System.String,System.Boolean)">
  10406. <summary>获取成员</summary>
  10407. <param name="type">类型</param>
  10408. <param name="name">名称</param>
  10409. <param name="ignoreCase">忽略大小写</param>
  10410. <returns></returns>
  10411. </member>
  10412. <member name="M:NewLife.Reflection.IReflect.GetFields(System.Type,System.Boolean)">
  10413. <summary>获取字段</summary>
  10414. <param name="type"></param>
  10415. <param name="baseFirst"></param>
  10416. <returns></returns>
  10417. </member>
  10418. <member name="M:NewLife.Reflection.IReflect.GetProperties(System.Type,System.Boolean)">
  10419. <summary>获取属性</summary>
  10420. <param name="type"></param>
  10421. <param name="baseFirst"></param>
  10422. <returns></returns>
  10423. </member>
  10424. <member name="M:NewLife.Reflection.IReflect.CreateInstance(System.Type,System.Object[])">
  10425. <summary>反射创建指定类型的实例</summary>
  10426. <param name="type">类型</param>
  10427. <param name="parameters">参数数组</param>
  10428. <returns></returns>
  10429. </member>
  10430. <member name="M:NewLife.Reflection.IReflect.Invoke(System.Object,System.Reflection.MethodBase,System.Object[])">
  10431. <summary>反射调用指定对象的方法</summary>
  10432. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10433. <param name="method">方法</param>
  10434. <param name="parameters">方法参数</param>
  10435. <returns></returns>
  10436. </member>
  10437. <member name="M:NewLife.Reflection.IReflect.InvokeWithParams(System.Object,System.Reflection.MethodBase,System.Collections.IDictionary)">
  10438. <summary>反射调用指定对象的方法</summary>
  10439. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10440. <param name="method">方法</param>
  10441. <param name="parameters">方法参数字典</param>
  10442. <returns></returns>
  10443. </member>
  10444. <member name="M:NewLife.Reflection.IReflect.GetValue(System.Object,System.Reflection.PropertyInfo)">
  10445. <summary>获取目标对象的属性值</summary>
  10446. <param name="target">目标对象</param>
  10447. <param name="property">属性</param>
  10448. <returns></returns>
  10449. </member>
  10450. <member name="M:NewLife.Reflection.IReflect.GetValue(System.Object,System.Reflection.FieldInfo)">
  10451. <summary>获取目标对象的字段值</summary>
  10452. <param name="target">目标对象</param>
  10453. <param name="field">字段</param>
  10454. <returns></returns>
  10455. </member>
  10456. <member name="M:NewLife.Reflection.IReflect.SetValue(System.Object,System.Reflection.PropertyInfo,System.Object)">
  10457. <summary>设置目标对象的属性值</summary>
  10458. <param name="target">目标对象</param>
  10459. <param name="property">属性</param>
  10460. <param name="value">数值</param>
  10461. </member>
  10462. <member name="M:NewLife.Reflection.IReflect.SetValue(System.Object,System.Reflection.FieldInfo,System.Object)">
  10463. <summary>设置目标对象的字段值</summary>
  10464. <param name="target">目标对象</param>
  10465. <param name="field">字段</param>
  10466. <param name="value">数值</param>
  10467. </member>
  10468. <member name="M:NewLife.Reflection.IReflect.Copy(System.Object,System.Object,System.Boolean,System.String[])">
  10469. <summary>从源对象拷贝数据到目标对象</summary>
  10470. <param name="target">目标对象</param>
  10471. <param name="src">源对象</param>
  10472. <param name="deep">递归深度拷贝,直接拷贝成员值而不是引用</param>
  10473. <param name="excludes">要忽略的成员</param>
  10474. </member>
  10475. <member name="M:NewLife.Reflection.IReflect.Copy(System.Object,System.Collections.Generic.IDictionary{System.String,System.Object},System.Boolean)">
  10476. <summary>从源字典拷贝数据到目标对象</summary>
  10477. <param name="target">目标对象</param>
  10478. <param name="dic">源字典</param>
  10479. <param name="deep">递归深度拷贝,直接拷贝成员值而不是引用</param>
  10480. </member>
  10481. <member name="M:NewLife.Reflection.IReflect.GetElementType(System.Type)">
  10482. <summary>获取一个类型的元素类型</summary>
  10483. <param name="type">类型</param>
  10484. <returns></returns>
  10485. </member>
  10486. <member name="M:NewLife.Reflection.IReflect.ChangeType(System.Object,System.Type)">
  10487. <summary>类型转换</summary>
  10488. <param name="value">数值</param>
  10489. <param name="conversionType"></param>
  10490. <returns></returns>
  10491. </member>
  10492. <member name="M:NewLife.Reflection.IReflect.GetName(System.Type,System.Boolean)">
  10493. <summary>获取类型的友好名称</summary>
  10494. <param name="type">指定类型</param>
  10495. <param name="isfull">是否全名,包含命名空间</param>
  10496. <returns></returns>
  10497. </member>
  10498. <member name="M:NewLife.Reflection.IReflect.As(System.Type,System.Type)">
  10499. <summary>是否能够转为指定基类</summary>
  10500. <param name="type"></param>
  10501. <param name="baseType"></param>
  10502. <returns></returns>
  10503. </member>
  10504. <member name="M:NewLife.Reflection.IReflect.GetSubclasses(System.Reflection.Assembly,System.Type)">
  10505. <summary>在指定程序集中查找指定基类或接口的所有子类实现</summary>
  10506. <param name="asm">指定程序集</param>
  10507. <param name="baseType">基类或接口,为空时返回所有类型</param>
  10508. <returns></returns>
  10509. </member>
  10510. <member name="M:NewLife.Reflection.IReflect.GetAllSubclasses(System.Type)">
  10511. <summary>在所有程序集中查找指定基类或接口的子类实现</summary>
  10512. <param name="baseType">基类或接口</param>
  10513. <returns></returns>
  10514. </member>
  10515. <member name="T:NewLife.Reflection.DefaultReflect">
  10516. <summary>默认反射实现</summary>
  10517. <remarks>该接口仅用于扩展,不建议外部使用</remarks>
  10518. </member>
  10519. <member name="M:NewLife.Reflection.DefaultReflect.GetType(System.String,System.Boolean)">
  10520. <summary>根据名称获取类型</summary>
  10521. <param name="typeName">类型名</param>
  10522. <param name="isLoadAssembly">是否从未加载程序集中获取类型。使用仅反射的方法检查目标类型,如果存在,则进行常规加载</param>
  10523. <returns></returns>
  10524. </member>
  10525. <member name="M:NewLife.Reflection.DefaultReflect.GetMethod(System.Type,System.String,System.Type[])">
  10526. <summary>获取方法</summary>
  10527. <remarks>用于具有多个签名的同名方法的场合,不确定是否存在性能问题,不建议普通场合使用</remarks>
  10528. <param name="type">类型</param>
  10529. <param name="name">名称</param>
  10530. <param name="paramTypes">参数类型数组</param>
  10531. <returns></returns>
  10532. </member>
  10533. <member name="M:NewLife.Reflection.DefaultReflect.GetMethods(System.Type,System.String,System.Int32)">
  10534. <summary>获取指定名称的方法集合,支持指定参数个数来匹配过滤</summary>
  10535. <param name="type"></param>
  10536. <param name="name"></param>
  10537. <param name="paramCount">参数个数,-1表示不过滤参数个数</param>
  10538. <returns></returns>
  10539. </member>
  10540. <member name="M:NewLife.Reflection.DefaultReflect.GetProperty(System.Type,System.String,System.Boolean)">
  10541. <summary>获取属性</summary>
  10542. <param name="type">类型</param>
  10543. <param name="name">名称</param>
  10544. <param name="ignoreCase">忽略大小写</param>
  10545. <returns></returns>
  10546. </member>
  10547. <member name="M:NewLife.Reflection.DefaultReflect.GetField(System.Type,System.String,System.Boolean)">
  10548. <summary>获取字段</summary>
  10549. <param name="type">类型</param>
  10550. <param name="name">名称</param>
  10551. <param name="ignoreCase">忽略大小写</param>
  10552. <returns></returns>
  10553. </member>
  10554. <member name="M:NewLife.Reflection.DefaultReflect.GetMember(System.Type,System.String,System.Boolean)">
  10555. <summary>获取成员</summary>
  10556. <param name="type">类型</param>
  10557. <param name="name">名称</param>
  10558. <param name="ignoreCase">忽略大小写</param>
  10559. <returns></returns>
  10560. </member>
  10561. <member name="M:NewLife.Reflection.DefaultReflect.GetFields(System.Type,System.Boolean)">
  10562. <summary>获取字段</summary>
  10563. <param name="type"></param>
  10564. <param name="baseFirst"></param>
  10565. <returns></returns>
  10566. </member>
  10567. <member name="M:NewLife.Reflection.DefaultReflect.GetProperties(System.Type,System.Boolean)">
  10568. <summary>获取属性</summary>
  10569. <param name="type"></param>
  10570. <param name="baseFirst"></param>
  10571. <returns></returns>
  10572. </member>
  10573. <member name="M:NewLife.Reflection.DefaultReflect.CreateInstance(System.Type,System.Object[])">
  10574. <summary>反射创建指定类型的实例</summary>
  10575. <param name="type">类型</param>
  10576. <param name="parameters">参数数组</param>
  10577. <returns></returns>
  10578. </member>
  10579. <member name="M:NewLife.Reflection.DefaultReflect.Invoke(System.Object,System.Reflection.MethodBase,System.Object[])">
  10580. <summary>反射调用指定对象的方法</summary>
  10581. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10582. <param name="method">方法</param>
  10583. <param name="parameters">方法参数</param>
  10584. <returns></returns>
  10585. </member>
  10586. <member name="M:NewLife.Reflection.DefaultReflect.InvokeWithParams(System.Object,System.Reflection.MethodBase,System.Collections.IDictionary)">
  10587. <summary>反射调用指定对象的方法</summary>
  10588. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10589. <param name="method">方法</param>
  10590. <param name="parameters">方法参数字典</param>
  10591. <returns></returns>
  10592. </member>
  10593. <member name="M:NewLife.Reflection.DefaultReflect.GetValue(System.Object,System.Reflection.PropertyInfo)">
  10594. <summary>获取目标对象的属性值</summary>
  10595. <param name="target">目标对象</param>
  10596. <param name="property">属性</param>
  10597. <returns></returns>
  10598. </member>
  10599. <member name="M:NewLife.Reflection.DefaultReflect.GetValue(System.Object,System.Reflection.FieldInfo)">
  10600. <summary>获取目标对象的字段值</summary>
  10601. <param name="target">目标对象</param>
  10602. <param name="field">字段</param>
  10603. <returns></returns>
  10604. </member>
  10605. <member name="M:NewLife.Reflection.DefaultReflect.SetValue(System.Object,System.Reflection.PropertyInfo,System.Object)">
  10606. <summary>设置目标对象的属性值</summary>
  10607. <param name="target">目标对象</param>
  10608. <param name="property">属性</param>
  10609. <param name="value">数值</param>
  10610. </member>
  10611. <member name="M:NewLife.Reflection.DefaultReflect.SetValue(System.Object,System.Reflection.FieldInfo,System.Object)">
  10612. <summary>设置目标对象的字段值</summary>
  10613. <param name="target">目标对象</param>
  10614. <param name="field">字段</param>
  10615. <param name="value">数值</param>
  10616. </member>
  10617. <member name="M:NewLife.Reflection.DefaultReflect.Copy(System.Object,System.Object,System.Boolean,System.String[])">
  10618. <summary>从源对象拷贝数据到目标对象</summary>
  10619. <param name="target">目标对象</param>
  10620. <param name="source">源对象</param>
  10621. <param name="deep">递归深度拷贝,直接拷贝成员值而不是引用</param>
  10622. <param name="excludes">要忽略的成员</param>
  10623. </member>
  10624. <member name="M:NewLife.Reflection.DefaultReflect.Copy(System.Object,System.Collections.Generic.IDictionary{System.String,System.Object},System.Boolean)">
  10625. <summary>从源字典拷贝数据到目标对象</summary>
  10626. <param name="target">目标对象</param>
  10627. <param name="source">源字典</param>
  10628. <param name="deep">递归深度拷贝,直接拷贝成员值而不是引用</param>
  10629. </member>
  10630. <member name="M:NewLife.Reflection.DefaultReflect.GetElementType(System.Type)">
  10631. <summary>获取一个类型的元素类型</summary>
  10632. <param name="type">类型</param>
  10633. <returns></returns>
  10634. </member>
  10635. <member name="M:NewLife.Reflection.DefaultReflect.ChangeType(System.Object,System.Type)">
  10636. <summary>类型转换</summary>
  10637. <param name="value">数值</param>
  10638. <param name="conversionType"></param>
  10639. <returns></returns>
  10640. </member>
  10641. <member name="M:NewLife.Reflection.DefaultReflect.GetName(System.Type,System.Boolean)">
  10642. <summary>获取类型的友好名称</summary>
  10643. <param name="type">指定类型</param>
  10644. <param name="isfull">是否全名,包含命名空间</param>
  10645. <returns></returns>
  10646. </member>
  10647. <member name="M:NewLife.Reflection.DefaultReflect.As(System.Type,System.Type)">
  10648. <summary>是否子类</summary>
  10649. <param name="type"></param>
  10650. <param name="baseType"></param>
  10651. <returns></returns>
  10652. </member>
  10653. <member name="M:NewLife.Reflection.DefaultReflect.GetSubclasses(System.Reflection.Assembly,System.Type)">
  10654. <summary>在指定程序集中查找指定基类的子类</summary>
  10655. <param name="asm">指定程序集</param>
  10656. <param name="baseType">基类或接口,为空时返回所有类型</param>
  10657. <returns></returns>
  10658. </member>
  10659. <member name="M:NewLife.Reflection.DefaultReflect.GetAllSubclasses(System.Type)">
  10660. <summary>在所有程序集中查找指定基类或接口的子类实现</summary>
  10661. <param name="baseType">基类或接口</param>
  10662. <returns></returns>
  10663. </member>
  10664. <member name="T:NewLife.Reflection.Reflect">
  10665. <summary>反射工具类</summary>
  10666. <remarks>
  10667. 文档 https://newlifex.com/core/reflect
  10668. </remarks>
  10669. </member>
  10670. <member name="P:NewLife.Reflection.Reflect.Provider">
  10671. <summary>当前反射提供者</summary>
  10672. </member>
  10673. <member name="M:NewLife.Reflection.Reflect.GetTypeEx(System.String)">
  10674. <summary>根据名称获取类型。可搜索当前目录DLL,自动加载</summary>
  10675. <param name="typeName">类型名</param>
  10676. <returns></returns>
  10677. </member>
  10678. <member name="M:NewLife.Reflection.Reflect.GetTypeEx(System.String,System.Boolean)">
  10679. <summary>根据名称获取类型。可搜索当前目录DLL,自动加载</summary>
  10680. <param name="typeName">类型名</param>
  10681. <param name="isLoadAssembly">是否从未加载程序集中获取类型。使用仅反射的方法检查目标类型,如果存在,则进行常规加载</param>
  10682. <returns></returns>
  10683. </member>
  10684. <member name="M:NewLife.Reflection.Reflect.GetMethodEx(System.Type,System.String,System.Type[])">
  10685. <summary>获取方法</summary>
  10686. <remarks>用于具有多个签名的同名方法的场合,不确定是否存在性能问题,不建议普通场合使用</remarks>
  10687. <param name="type">类型</param>
  10688. <param name="name">名称</param>
  10689. <param name="paramTypes">参数类型数组</param>
  10690. <returns></returns>
  10691. </member>
  10692. <member name="M:NewLife.Reflection.Reflect.GetMethodsEx(System.Type,System.String,System.Int32)">
  10693. <summary>获取指定名称的方法集合,支持指定参数个数来匹配过滤</summary>
  10694. <param name="type"></param>
  10695. <param name="name"></param>
  10696. <param name="paramCount">参数个数,-1表示不过滤参数个数</param>
  10697. <returns></returns>
  10698. </member>
  10699. <member name="M:NewLife.Reflection.Reflect.GetPropertyEx(System.Type,System.String,System.Boolean)">
  10700. <summary>获取属性。搜索私有、静态、基类,优先返回大小写精确匹配成员</summary>
  10701. <param name="type">类型</param>
  10702. <param name="name">名称</param>
  10703. <param name="ignoreCase">忽略大小写</param>
  10704. <returns></returns>
  10705. </member>
  10706. <member name="M:NewLife.Reflection.Reflect.GetFieldEx(System.Type,System.String,System.Boolean)">
  10707. <summary>获取字段。搜索私有、静态、基类,优先返回大小写精确匹配成员</summary>
  10708. <param name="type">类型</param>
  10709. <param name="name">名称</param>
  10710. <param name="ignoreCase">忽略大小写</param>
  10711. <returns></returns>
  10712. </member>
  10713. <member name="M:NewLife.Reflection.Reflect.GetMemberEx(System.Type,System.String,System.Boolean)">
  10714. <summary>获取成员。搜索私有、静态、基类,优先返回大小写精确匹配成员</summary>
  10715. <param name="type">类型</param>
  10716. <param name="name">名称</param>
  10717. <param name="ignoreCase">忽略大小写</param>
  10718. <returns></returns>
  10719. </member>
  10720. <member name="M:NewLife.Reflection.Reflect.GetFields(System.Type,System.Boolean)">
  10721. <summary>获取用于序列化的字段</summary>
  10722. <remarks>过滤<seealso cref="T:NonSerializedAttribute"/>特性的字段</remarks>
  10723. <param name="type"></param>
  10724. <param name="baseFirst"></param>
  10725. <returns></returns>
  10726. </member>
  10727. <member name="M:NewLife.Reflection.Reflect.GetProperties(System.Type,System.Boolean)">
  10728. <summary>获取用于序列化的属性</summary>
  10729. <remarks>过滤<seealso cref="T:XmlIgnoreAttribute"/>特性的属性和索引器</remarks>
  10730. <param name="type"></param>
  10731. <param name="baseFirst"></param>
  10732. <returns></returns>
  10733. </member>
  10734. <member name="M:NewLife.Reflection.Reflect.CreateInstance(System.Type,System.Object[])">
  10735. <summary>反射创建指定类型的实例</summary>
  10736. <param name="type">类型</param>
  10737. <param name="parameters">参数数组</param>
  10738. <returns></returns>
  10739. </member>
  10740. <member name="M:NewLife.Reflection.Reflect.Invoke(System.Object,System.String,System.Object[])">
  10741. <summary>反射调用指定对象的方法。target为类型时调用其静态方法</summary>
  10742. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10743. <param name="name">方法名</param>
  10744. <param name="parameters">方法参数</param>
  10745. <returns></returns>
  10746. </member>
  10747. <member name="M:NewLife.Reflection.Reflect.TryInvoke(System.Object,System.String,System.Object@,System.Object[])">
  10748. <summary>反射调用指定对象的方法</summary>
  10749. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10750. <param name="name">方法名</param>
  10751. <param name="value">数值</param>
  10752. <param name="parameters">方法参数</param>
  10753. <remarks>反射调用是否成功</remarks>
  10754. </member>
  10755. <member name="M:NewLife.Reflection.Reflect.Invoke(System.Object,System.Reflection.MethodBase,System.Object[])">
  10756. <summary>反射调用指定对象的方法</summary>
  10757. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10758. <param name="method">方法</param>
  10759. <param name="parameters">方法参数</param>
  10760. <returns></returns>
  10761. </member>
  10762. <member name="M:NewLife.Reflection.Reflect.InvokeWithParams(System.Object,System.Reflection.MethodBase,System.Collections.IDictionary)">
  10763. <summary>反射调用指定对象的方法</summary>
  10764. <param name="target">要调用其方法的对象,如果要调用静态方法,则target是类型</param>
  10765. <param name="method">方法</param>
  10766. <param name="parameters">方法参数字典</param>
  10767. <returns></returns>
  10768. </member>
  10769. <member name="M:NewLife.Reflection.Reflect.GetValue(System.Object,System.String,System.Boolean)">
  10770. <summary>获取目标对象指定名称的属性/字段值</summary>
  10771. <param name="target">目标对象</param>
  10772. <param name="name">名称</param>
  10773. <param name="throwOnError">出错时是否抛出异常</param>
  10774. <returns></returns>
  10775. </member>
  10776. <member name="M:NewLife.Reflection.Reflect.TryGetValue(System.Object,System.String,System.Object@)">
  10777. <summary>获取目标对象指定名称的属性/字段值</summary>
  10778. <param name="target">目标对象</param>
  10779. <param name="name">名称</param>
  10780. <param name="value">数值</param>
  10781. <returns>是否成功获取数值</returns>
  10782. </member>
  10783. <member name="M:NewLife.Reflection.Reflect.GetValue(System.Object,System.Reflection.MemberInfo)">
  10784. <summary>获取目标对象的成员值</summary>
  10785. <param name="target">目标对象</param>
  10786. <param name="member">成员</param>
  10787. <returns></returns>
  10788. </member>
  10789. <member name="M:NewLife.Reflection.Reflect.SetValue(System.Object,System.String,System.Object)">
  10790. <summary>设置目标对象指定名称的属性/字段值,若不存在返回false</summary>
  10791. <param name="target">目标对象</param>
  10792. <param name="name">名称</param>
  10793. <param name="value">数值</param>
  10794. <remarks>反射调用是否成功</remarks>
  10795. </member>
  10796. <member name="M:NewLife.Reflection.Reflect.SetValue(System.Object,System.Reflection.MemberInfo,System.Object)">
  10797. <summary>设置目标对象的成员值</summary>
  10798. <param name="target">目标对象</param>
  10799. <param name="member">成员</param>
  10800. <param name="value">数值</param>
  10801. </member>
  10802. <member name="M:NewLife.Reflection.Reflect.Copy(System.Object,System.Object,System.Boolean,System.String[])">
  10803. <summary>从源对象拷贝数据到目标对象</summary>
  10804. <param name="target">目标对象</param>
  10805. <param name="src">源对象</param>
  10806. <param name="deep">递归深度拷贝,直接拷贝成员值而不是引用</param>
  10807. <param name="excludes">要忽略的成员</param>
  10808. </member>
  10809. <member name="M:NewLife.Reflection.Reflect.Copy(System.Object,System.Collections.Generic.IDictionary{System.String,System.Object},System.Boolean)">
  10810. <summary>从源字典拷贝数据到目标对象</summary>
  10811. <param name="target">目标对象</param>
  10812. <param name="dic">源字典</param>
  10813. <param name="deep">递归深度拷贝,直接拷贝成员值而不是引用</param>
  10814. </member>
  10815. <member name="M:NewLife.Reflection.Reflect.GetElementTypeEx(System.Type)">
  10816. <summary>获取一个类型的元素类型</summary>
  10817. <param name="type">类型</param>
  10818. <returns></returns>
  10819. </member>
  10820. <member name="M:NewLife.Reflection.Reflect.ChangeType(System.Object,System.Type)">
  10821. <summary>类型转换</summary>
  10822. <param name="value">数值</param>
  10823. <param name="conversionType"></param>
  10824. <returns></returns>
  10825. </member>
  10826. <member name="M:NewLife.Reflection.Reflect.ChangeType``1(System.Object)">
  10827. <summary>类型转换</summary>
  10828. <typeparam name="TResult"></typeparam>
  10829. <param name="value">数值</param>
  10830. <returns></returns>
  10831. </member>
  10832. <member name="M:NewLife.Reflection.Reflect.GetName(System.Type,System.Boolean)">
  10833. <summary>获取类型的友好名称</summary>
  10834. <param name="type">指定类型</param>
  10835. <param name="isfull">是否全名,包含命名空间</param>
  10836. <returns></returns>
  10837. </member>
  10838. <member name="M:NewLife.Reflection.Reflect.GetTypeArray(System.Object[])">
  10839. <summary>从参数数组中获取类型数组</summary>
  10840. <param name="args"></param>
  10841. <returns></returns>
  10842. </member>
  10843. <member name="M:NewLife.Reflection.Reflect.GetMemberType(System.Reflection.MemberInfo)">
  10844. <summary>获取成员的类型,字段和属性是它们的类型,方法是返回类型,类型是自身</summary>
  10845. <param name="member"></param>
  10846. <returns></returns>
  10847. </member>
  10848. <member name="M:NewLife.Reflection.Reflect.GetTypeCode(System.Type)">
  10849. <summary>获取类型代码,支持可空类型</summary>
  10850. <param name="type"></param>
  10851. <returns></returns>
  10852. </member>
  10853. <member name="M:NewLife.Reflection.Reflect.IsBaseType(System.Type)">
  10854. <summary>是否基础类型。识别常见基元类型和String,支持可空类型</summary>
  10855. <remarks>
  10856. 基础类型可以方便的进行字符串转换,用于存储于传输。
  10857. 在序列化时,基础类型作为原子数据不可再次拆分,而复杂类型则可以进一步拆分。
  10858. 包括:Boolean/Char/SByte/Byte/Int16/UInt16/Int32/UInt32/Int64/UInt64/Single/Double/Decimal/DateTime/String/枚举,以及这些类型的可空类型
  10859. </remarks>
  10860. <param name="type"></param>
  10861. <returns></returns>
  10862. </member>
  10863. <member name="M:NewLife.Reflection.Reflect.IsNullable(System.Type)">
  10864. <summary>是否可空类型。继承泛型定义Nullable的类型</summary>
  10865. <param name="type"></param>
  10866. <returns></returns>
  10867. </member>
  10868. <member name="M:NewLife.Reflection.Reflect.IsInt(System.Type)">
  10869. <summary>是否整数。Byte/Int16/Int32/Int64</summary>
  10870. <param name="type"></param>
  10871. <returns></returns>
  10872. </member>
  10873. <member name="M:NewLife.Reflection.Reflect.IsList(System.Type)">
  10874. <summary>是否泛型列表</summary>
  10875. <param name="type"></param>
  10876. <returns></returns>
  10877. </member>
  10878. <member name="M:NewLife.Reflection.Reflect.IsDictionary(System.Type)">
  10879. <summary>是否泛型字典</summary>
  10880. <param name="type"></param>
  10881. <returns></returns>
  10882. </member>
  10883. <member name="M:NewLife.Reflection.Reflect.As(System.Type,System.Type)">
  10884. <summary>是否能够转为指定基类</summary>
  10885. <param name="type"></param>
  10886. <param name="baseType"></param>
  10887. <returns></returns>
  10888. </member>
  10889. <member name="M:NewLife.Reflection.Reflect.As``1(System.Type)">
  10890. <summary>是否能够转为指定基类</summary>
  10891. <typeparam name="T"></typeparam>
  10892. <param name="type"></param>
  10893. <returns></returns>
  10894. </member>
  10895. <member name="M:NewLife.Reflection.Reflect.GetSubclasses(System.Reflection.Assembly,System.Type)">
  10896. <summary>在指定程序集中查找指定基类的子类</summary>
  10897. <param name="asm">指定程序集</param>
  10898. <param name="baseType">基类或接口</param>
  10899. <returns></returns>
  10900. </member>
  10901. <member name="M:NewLife.Reflection.Reflect.GetAllSubclasses(System.Type)">
  10902. <summary>在所有程序集中查找指定基类或接口的子类实现</summary>
  10903. <param name="baseType">基类或接口</param>
  10904. <returns></returns>
  10905. </member>
  10906. <member name="M:NewLife.Reflection.Reflect.GetType(System.Object)">
  10907. <summary>获取类型,如果target是Type类型,则表示要反射的是静态成员</summary>
  10908. <param name="target">目标对象</param>
  10909. <returns></returns>
  10910. </member>
  10911. <member name="M:NewLife.Reflection.Reflect.As``1(System.Reflection.MethodInfo,System.Object)">
  10912. <summary>把一个方法转为泛型委托,便于快速反射调用</summary>
  10913. <typeparam name="TFunc"></typeparam>
  10914. <param name="method"></param>
  10915. <param name="target"></param>
  10916. <returns></returns>
  10917. </member>
  10918. <member name="T:NewLife.Reflection.ScriptEngine">
  10919. <summary>脚本引擎</summary>
  10920. <remarks>
  10921. 文档 https://newlifex.com/core/script_engine
  10922. 三大用法:
  10923. 1,单个表达式,根据参数计算表达式结果并返回
  10924. 2,多个语句,最后有返回语句
  10925. 3,多个方法,有一个名为Execute的静态方法作为入口方法
  10926. 脚本引擎禁止实例化,必须通过<see cref="M:NewLife.Reflection.ScriptEngine.Create(System.String,System.Boolean)"/>方法创建,以代码为键进行缓存,避免重复创建反复编译形成泄漏。
  10927. 其中<see cref="M:NewLife.Reflection.ScriptEngine.Create(System.String,System.Boolean)"/>方法的第二个参数为true表示前两种用法,为false表示第三种用法。
  10928. </remarks>
  10929. <example>
  10930. 最简单而完整的用法:
  10931. <code>
  10932. // 根据代码创建脚本实例,相同代码只编译一次
  10933. var se = ScriptEngine.Create("a+b");
  10934. // 如果Method为空说明未编译,可设置参数
  10935. if (se.Method == null)
  10936. {
  10937. se.Parameters.Add("a", typeof(Int32));
  10938. se.Parameters.Add("b", typeof(Int32));
  10939. }
  10940. // 脚本固定返回Object类型,需要自己转换
  10941. var n = (Int32)se.Invoke(2, 3);
  10942. Console.WriteLine("2+3={0}", n);
  10943. </code>
  10944. 无参数快速调用:
  10945. <code>
  10946. var n = (Int32)ScriptEngine.Execute("2*3");
  10947. </code>
  10948. 约定参数快速调用:
  10949. <code>
  10950. var n = (Int32)ScriptEngine.Execute("p0*p1", new Object[] { 2, 3 });
  10951. Console.WriteLine("2*3={0}", n);
  10952. </code>
  10953. </example>
  10954. </member>
  10955. <member name="P:NewLife.Reflection.ScriptEngine.Code">
  10956. <summary>代码</summary>
  10957. </member>
  10958. <member name="P:NewLife.Reflection.ScriptEngine.IsExpression">
  10959. <summary>是否表达式</summary>
  10960. </member>
  10961. <member name="P:NewLife.Reflection.ScriptEngine.Parameters">
  10962. <summary>参数集合。编译后就不可修改。</summary>
  10963. </member>
  10964. <member name="P:NewLife.Reflection.ScriptEngine.FinalCode">
  10965. <summary>最终代码</summary>
  10966. </member>
  10967. <member name="P:NewLife.Reflection.ScriptEngine.Type">
  10968. <summary>编译得到的类型</summary>
  10969. </member>
  10970. <member name="P:NewLife.Reflection.ScriptEngine.Method">
  10971. <summary>根据代码编译出来可供直接调用的入口方法,Eval/Main</summary>
  10972. </member>
  10973. <member name="P:NewLife.Reflection.ScriptEngine.NameSpaces">
  10974. <summary>命名空间集合</summary>
  10975. </member>
  10976. <member name="P:NewLife.Reflection.ScriptEngine.ReferencedAssemblies">
  10977. <summary>引用程序集集合</summary>
  10978. </member>
  10979. <member name="P:NewLife.Reflection.ScriptEngine.Log">
  10980. <summary>日志</summary>
  10981. </member>
  10982. <member name="P:NewLife.Reflection.ScriptEngine.WorkingDirectory">
  10983. <summary>工作目录。执行时,将会作为环境变量的当前目录和PathHelper目录,执行后还原</summary>
  10984. </member>
  10985. <member name="M:NewLife.Reflection.ScriptEngine.#ctor(System.String,System.Boolean)">
  10986. <summary>构造函数私有,禁止外部越过Create方法直接创建实例</summary>
  10987. <param name="code">代码片段</param>
  10988. <param name="isExpression">是否表达式,表达式将编译成为一个Main方法</param>
  10989. </member>
  10990. <member name="M:NewLife.Reflection.ScriptEngine.Create(System.String,System.Boolean)">
  10991. <summary>为指定代码片段创建脚本引擎实例。采用缓存,避免同一脚本重复创建引擎。</summary>
  10992. <param name="code">代码片段</param>
  10993. <param name="isExpression">是否表达式,表达式将编译成为一个Main方法</param>
  10994. <returns></returns>
  10995. </member>
  10996. <member name="M:NewLife.Reflection.ScriptEngine.Execute(System.String)">
  10997. <summary>执行表达式,返回结果</summary>
  10998. <param name="code">代码片段</param>
  10999. <returns></returns>
  11000. </member>
  11001. <member name="M:NewLife.Reflection.ScriptEngine.Execute(System.String,System.String[],System.Type[],System.Object[])">
  11002. <summary>执行表达式,返回结果</summary>
  11003. <param name="code">代码片段</param>
  11004. <param name="names">参数名称</param>
  11005. <param name="parameterTypes">参数类型</param>
  11006. <param name="parameters">参数值</param>
  11007. <returns></returns>
  11008. </member>
  11009. <member name="M:NewLife.Reflection.ScriptEngine.Execute(System.String,System.Collections.Generic.IDictionary{System.String,System.Object})">
  11010. <summary>执行表达式,返回结果</summary>
  11011. <param name="code">代码片段</param>
  11012. <param name="parameters">参数名值对</param>
  11013. <returns></returns>
  11014. </member>
  11015. <member name="M:NewLife.Reflection.ScriptEngine.Execute(System.String,System.Object[])">
  11016. <summary>执行表达式,返回结果。参数名默认为p0/p1/p2/pn</summary>
  11017. <param name="code"></param>
  11018. <param name="parameters">参数数组</param>
  11019. <returns></returns>
  11020. </member>
  11021. <member name="M:NewLife.Reflection.ScriptEngine.GenerateCode">
  11022. <summary>生成代码。根据<see cref="P:NewLife.Reflection.ScriptEngine.Code"/>完善得到最终代码<see cref="P:NewLife.Reflection.ScriptEngine.FinalCode"/></summary>
  11023. </member>
  11024. <member name="M:NewLife.Reflection.ScriptEngine.GetFullCode">
  11025. <summary>获取完整源代码</summary>
  11026. <returns></returns>
  11027. </member>
  11028. <member name="M:NewLife.Reflection.ScriptEngine.Compile">
  11029. <summary>编译</summary>
  11030. </member>
  11031. <member name="M:NewLife.Reflection.ScriptEngine.Compile(System.String,System.CodeDom.Compiler.CompilerParameters)">
  11032. <summary>编译</summary>
  11033. <param name="classCode"></param>
  11034. <param name="options"></param>
  11035. <returns></returns>
  11036. </member>
  11037. <member name="M:NewLife.Reflection.ScriptEngine.Invoke(System.Object[])">
  11038. <summary>按照传入参数执行代码</summary>
  11039. <param name="parameters">参数</param>
  11040. <returns>结果</returns>
  11041. </member>
  11042. <member name="M:NewLife.Reflection.ScriptEngine.ParseNameSpace(System.String)">
  11043. <summary>分析命名空间</summary>
  11044. <param name="code"></param>
  11045. <returns></returns>
  11046. </member>
  11047. <member name="T:NewLife.AttributeX">
  11048. <summary>特性辅助类</summary>
  11049. </member>
  11050. <member name="M:NewLife.AttributeX.GetCustomAttributes``1(System.Reflection.Assembly)">
  11051. <summary>获取自定义属性,带有缓存功能,避免因.Net内部GetCustomAttributes没有缓存而带来的损耗</summary>
  11052. <typeparam name="TAttribute"></typeparam>
  11053. <param name="assembly"></param>
  11054. <returns></returns>
  11055. </member>
  11056. <member name="M:NewLife.AttributeX.GetDisplayName(System.Reflection.MemberInfo,System.Boolean)">
  11057. <summary>获取成员绑定的显示名</summary>
  11058. <param name="member"></param>
  11059. <param name="inherit"></param>
  11060. <returns></returns>
  11061. </member>
  11062. <member name="M:NewLife.AttributeX.GetDescription(System.Reflection.MemberInfo,System.Boolean)">
  11063. <summary>获取成员绑定的备注</summary>
  11064. <param name="member"></param>
  11065. <param name="inherit"></param>
  11066. <returns></returns>
  11067. </member>
  11068. <member name="M:NewLife.AttributeX.GetCustomAttributeValue``2(System.Reflection.Assembly)">
  11069. <summary>获取自定义属性的值。可用于ReflectionOnly加载的程序集</summary>
  11070. <typeparam name="TAttribute"></typeparam>
  11071. <typeparam name="TResult"></typeparam>
  11072. <returns></returns>
  11073. </member>
  11074. <member name="M:NewLife.AttributeX.GetCustomAttributeValue``2(System.Reflection.MemberInfo,System.Boolean)">
  11075. <summary>获取自定义属性的值。可用于ReflectionOnly加载的程序集</summary>
  11076. <typeparam name="TAttribute"></typeparam>
  11077. <typeparam name="TResult"></typeparam>
  11078. <param name="target">目标对象</param>
  11079. <param name="inherit">是否递归</param>
  11080. <returns></returns>
  11081. </member>
  11082. <member name="T:NewLife.Remoting.ApiCode">
  11083. <summary>Api接口响应代码</summary>
  11084. </member>
  11085. <member name="F:NewLife.Remoting.ApiCode.Ok">
  11086. <summary>成功</summary>
  11087. </member>
  11088. <member name="F:NewLife.Remoting.ApiCode.Ok200">
  11089. <summary>200成功。一般用于Http响应,也有部分JsonRpc使用该响应码表示成功</summary>
  11090. </member>
  11091. <member name="F:NewLife.Remoting.ApiCode.Unauthorized">
  11092. <summary>未经许可。一般是指未登录</summary>
  11093. </member>
  11094. <member name="F:NewLife.Remoting.ApiCode.Forbidden">
  11095. <summary>禁止访问。一般是只已登录但无权访问</summary>
  11096. </member>
  11097. <member name="F:NewLife.Remoting.ApiCode.NotFound">
  11098. <summary>找不到</summary>
  11099. </member>
  11100. <member name="F:NewLife.Remoting.ApiCode.InternalServerError">
  11101. <summary>内部服务错误。通用错误</summary>
  11102. </member>
  11103. <member name="T:NewLife.Remoting.ApiException">
  11104. <summary>远程调用异常</summary>
  11105. </member>
  11106. <member name="P:NewLife.Remoting.ApiException.Code">
  11107. <summary>代码</summary>
  11108. </member>
  11109. <member name="M:NewLife.Remoting.ApiException.#ctor(System.Int32,System.String)">
  11110. <summary>实例化远程调用异常</summary>
  11111. <param name="code"></param>
  11112. <param name="message"></param>
  11113. </member>
  11114. <member name="M:NewLife.Remoting.ApiException.#ctor(System.Int32,System.Exception)">
  11115. <summary>实例化远程调用异常</summary>
  11116. <param name="code"></param>
  11117. <param name="ex"></param>
  11118. </member>
  11119. <member name="T:NewLife.Remoting.ApiHelper">
  11120. <summary>Api助手</summary>
  11121. </member>
  11122. <member name="P:NewLife.Remoting.ApiHelper.Tracer">
  11123. <summary>性能跟踪器</summary>
  11124. </member>
  11125. <member name="P:NewLife.Remoting.ApiHelper.Filter">
  11126. <summary>Http过滤器</summary>
  11127. </member>
  11128. <member name="M:NewLife.Remoting.ApiHelper.GetAsync``1(System.Net.Http.HttpClient,System.String,System.Object,System.Threading.CancellationToken)">
  11129. <summary>异步调用,等待返回结果</summary>
  11130. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11131. <param name="client">Http客户端</param>
  11132. <param name="action">服务操作</param>
  11133. <param name="args">参数</param>
  11134. <param name="cancellationToken">取消通知</param>
  11135. <returns></returns>
  11136. </member>
  11137. <member name="M:NewLife.Remoting.ApiHelper.Get``1(System.Net.Http.HttpClient,System.String,System.Object)">
  11138. <summary>同步获取,参数构造在Url</summary>
  11139. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11140. <param name="client">Http客户端</param>
  11141. <param name="action">服务操作</param>
  11142. <param name="args">参数</param>
  11143. <returns></returns>
  11144. </member>
  11145. <member name="M:NewLife.Remoting.ApiHelper.PostAsync``1(System.Net.Http.HttpClient,System.String,System.Object,System.Threading.CancellationToken)">
  11146. <summary>异步调用,等待返回结果</summary>
  11147. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11148. <param name="client">Http客户端</param>
  11149. <param name="action">服务操作</param>
  11150. <param name="args">参数</param>
  11151. <param name="cancellationToken">取消通知</param>
  11152. <returns></returns>
  11153. </member>
  11154. <member name="M:NewLife.Remoting.ApiHelper.Post``1(System.Net.Http.HttpClient,System.String,System.Object)">
  11155. <summary>同步提交,参数Json打包在Body</summary>
  11156. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11157. <param name="client">Http客户端</param>
  11158. <param name="action">服务操作</param>
  11159. <param name="args">参数</param>
  11160. <returns></returns>
  11161. </member>
  11162. <member name="M:NewLife.Remoting.ApiHelper.PutAsync``1(System.Net.Http.HttpClient,System.String,System.Object,System.Threading.CancellationToken)">
  11163. <summary>异步上传,等待返回结果</summary>
  11164. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11165. <param name="client">Http客户端</param>
  11166. <param name="action">服务操作</param>
  11167. <param name="args">参数</param>
  11168. <param name="cancellationToken">取消通知</param>
  11169. <returns></returns>
  11170. </member>
  11171. <member name="M:NewLife.Remoting.ApiHelper.DeleteAsync``1(System.Net.Http.HttpClient,System.String,System.Object,System.Threading.CancellationToken)">
  11172. <summary>异步删除,等待返回结果</summary>
  11173. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11174. <param name="client">Http客户端</param>
  11175. <param name="action">服务操作</param>
  11176. <param name="args">参数</param>
  11177. <param name="cancellationToken">取消通知</param>
  11178. <returns></returns>
  11179. </member>
  11180. <member name="M:NewLife.Remoting.ApiHelper.InvokeAsync``1(System.Net.Http.HttpClient,System.Net.Http.HttpMethod,System.String,System.Object,System.Action{System.Net.Http.HttpRequestMessage},System.String,System.Threading.CancellationToken)">
  11181. <summary>异步调用,等待返回结果</summary>
  11182. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11183. <param name="client">Http客户端</param>
  11184. <param name="method">请求方法</param>
  11185. <param name="action">服务操作</param>
  11186. <param name="args">参数</param>
  11187. <param name="onRequest">请求头回调</param>
  11188. <param name="dataName">数据字段名称,默认data。同一套rpc体系不同接口的code/message一致,但data可能不同</param>
  11189. <param name="cancellationToken">取消通知</param>
  11190. <returns></returns>
  11191. </member>
  11192. <member name="M:NewLife.Remoting.ApiHelper.BuildRequest(System.Net.Http.HttpMethod,System.String,System.Object)">
  11193. <summary>建立请求,action写到url里面</summary>
  11194. <param name="method">请求方法</param>
  11195. <param name="action">动作</param>
  11196. <param name="args">参数</param>
  11197. <returns></returns>
  11198. </member>
  11199. <member name="M:NewLife.Remoting.ApiHelper.BuildContent(NewLife.Data.Packet)">
  11200. <summary>为二进制数据生成请求体内容。对超长内容进行压缩</summary>
  11201. <param name="pk"></param>
  11202. <returns></returns>
  11203. </member>
  11204. <member name="P:NewLife.Remoting.ApiHelper.CodeNames">
  11205. <summary>结果代码名称。默认 code/errcode</summary>
  11206. </member>
  11207. <member name="P:NewLife.Remoting.ApiHelper.MessageNames">
  11208. <summary>结果消息名称。默认 message/msg/errmsg</summary>
  11209. </member>
  11210. <member name="M:NewLife.Remoting.ApiHelper.ProcessResponse``1(System.Net.Http.HttpResponseMessage,System.String)">
  11211. <summary>处理响应。统一识别code/message</summary>
  11212. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11213. <param name="response">Http响应消息</param>
  11214. <param name="dataName">数据字段名称,默认data。同一套rpc体系不同接口的code/message一致,但data可能不同</param>
  11215. <returns></returns>
  11216. </member>
  11217. <member name="M:NewLife.Remoting.ApiHelper.ProcessResponse``1(System.Net.Http.HttpResponseMessage,System.String,System.String)">
  11218. <summary>处理响应。统一识别code/message</summary>
  11219. <typeparam name="TResult">响应类型,优先原始字节数据,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11220. <param name="codeName">状态码字段名</param>
  11221. <param name="response">Http响应消息</param>
  11222. <param name="dataName">数据字段名称,默认data。同一套rpc体系不同接口的code/message一致,但data可能不同</param>
  11223. <returns></returns>
  11224. </member>
  11225. <member name="M:NewLife.Remoting.ApiHelper.ProcessResponse``1(System.String,System.String,System.String)">
  11226. <summary>处理响应。</summary>
  11227. <typeparam name="TResult">响应类型,字典返回整体,Object返回data,没找到data时返回整体字典,其它对data反序列化</typeparam>
  11228. <param name="response">文本响应消息</param>
  11229. <param name="codeName">状态码字段名</param>
  11230. <param name="dataName">数据字段名称,默认data。同一套rpc体系不同接口的code/message一致,但data可能不同</param>
  11231. <returns></returns>
  11232. </member>
  11233. <member name="M:NewLife.Remoting.ApiHelper.GetUrl(System.String,System.Collections.Generic.IDictionary{System.String,System.Object})">
  11234. <summary>根据动作和参数构造Url</summary>
  11235. <param name="action"></param>
  11236. <param name="ps"></param>
  11237. <returns></returns>
  11238. </member>
  11239. <member name="T:NewLife.Remoting.ApiHttpClient">
  11240. <summary>Http应用接口客户端</summary>
  11241. </member>
  11242. <member name="P:NewLife.Remoting.ApiHttpClient.Token">
  11243. <summary>令牌。每次请求携带</summary>
  11244. </member>
  11245. <member name="P:NewLife.Remoting.ApiHttpClient.Timeout">
  11246. <summary>超时时间。默认15000ms</summary>
  11247. </member>
  11248. <member name="P:NewLife.Remoting.ApiHttpClient.UseProxy">
  11249. <summary>是否使用系统代理设置。默认false不检查系统代理设置,在某些系统上可以大大改善初始化速度</summary>
  11250. </member>
  11251. <member name="P:NewLife.Remoting.ApiHttpClient.RoundRobin">
  11252. <summary>加权轮询负载均衡。默认false只使用故障转移</summary>
  11253. </member>
  11254. <member name="P:NewLife.Remoting.ApiHttpClient.ShieldingTime">
  11255. <summary>不可用节点的屏蔽时间。默认60秒</summary>
  11256. </member>
  11257. <member name="P:NewLife.Remoting.ApiHttpClient.Authentication">
  11258. <summary>身份验证</summary>
  11259. </member>
  11260. <member name="P:NewLife.Remoting.ApiHttpClient.DefaultUserAgent">
  11261. <summary>默认用户浏览器UserAgent。默认为空,可取值HttpHelper.DefaultUserAgent</summary>
  11262. </member>
  11263. <member name="E:NewLife.Remoting.ApiHttpClient.OnRequest">
  11264. <summary>创建请求时触发</summary>
  11265. </member>
  11266. <member name="E:NewLife.Remoting.ApiHttpClient.OnCreateClient">
  11267. <summary>创建客户端时触发</summary>
  11268. </member>
  11269. <member name="P:NewLife.Remoting.ApiHttpClient.Filter">
  11270. <summary>Http过滤器</summary>
  11271. </member>
  11272. <member name="P:NewLife.Remoting.ApiHttpClient.CodeName">
  11273. <summary>状态码字段名。例如code/status等</summary>
  11274. </member>
  11275. <member name="P:NewLife.Remoting.ApiHttpClient.DataName">
  11276. <summary>数据体字段名。例如data/result等</summary>
  11277. </member>
  11278. <member name="P:NewLife.Remoting.ApiHttpClient.Source">
  11279. <summary>服务器源。正在使用的服务器</summary>
  11280. </member>
  11281. <member name="P:NewLife.Remoting.ApiHttpClient.StatInvoke">
  11282. <summary>调用统计</summary>
  11283. </member>
  11284. <member name="P:NewLife.Remoting.ApiHttpClient.SlowTrace">
  11285. <summary>慢追踪。远程调用或处理时间超过该值时,输出慢调用日志,默认5000ms</summary>
  11286. </member>
  11287. <member name="P:NewLife.Remoting.ApiHttpClient.Tracer">
  11288. <summary>跟踪器</summary>
  11289. </member>
  11290. <member name="P:NewLife.Remoting.ApiHttpClient.Services">
  11291. <summary>服务列表。用于负载均衡和故障转移</summary>
  11292. </member>
  11293. <member name="F:NewLife.Remoting.ApiHttpClient._currentService">
  11294. <summary>当前服务</summary>
  11295. </member>
  11296. <member name="M:NewLife.Remoting.ApiHttpClient.#ctor">
  11297. <summary>实例化</summary>
  11298. </member>
  11299. <member name="M:NewLife.Remoting.ApiHttpClient.#ctor(System.String)">
  11300. <summary>实例化</summary>
  11301. <param name="urls">地址集合。多地址逗号分隔,支持权重,test1=3*http://127.0.0.1:1234,test2=7*http://127.0.0.1:3344</param>
  11302. </member>
  11303. <member name="M:NewLife.Remoting.ApiHttpClient.#ctor(System.IServiceProvider,System.String)">
  11304. <summary>按照配置服务实例化,用于NETCore依赖注入</summary>
  11305. <param name="provider">服务提供者,将要解析IConfigProvider</param>
  11306. <param name="name">缓存名称,也是配置中心key</param>
  11307. </member>
  11308. <member name="M:NewLife.Remoting.ApiHttpClient.Add(System.String,System.String)">
  11309. <summary>添加服务地址</summary>
  11310. <param name="name">名称</param>
  11311. <param name="address">地址,支持名称和权重,test1=3*http://127.0.0.1:1234</param>
  11312. </member>
  11313. <member name="M:NewLife.Remoting.ApiHttpClient.Add(System.String,System.Uri)">
  11314. <summary>添加服务地址</summary>
  11315. <param name="name"></param>
  11316. <param name="address"></param>
  11317. </member>
  11318. <member name="M:NewLife.Remoting.ApiHttpClient.GetAsync``1(System.String,System.Object)">
  11319. <summary>异步获取,参数构造在Url</summary>
  11320. <param name="action">服务操作</param>
  11321. <param name="args">参数</param>
  11322. <returns></returns>
  11323. </member>
  11324. <member name="M:NewLife.Remoting.ApiHttpClient.Get``1(System.String,System.Object)">
  11325. <summary>同步获取,参数构造在Url</summary>
  11326. <param name="action">服务操作</param>
  11327. <param name="args">参数</param>
  11328. <returns></returns>
  11329. </member>
  11330. <member name="M:NewLife.Remoting.ApiHttpClient.PostAsync``1(System.String,System.Object)">
  11331. <summary>异步提交,参数Json打包在Body</summary>
  11332. <param name="action">服务操作</param>
  11333. <param name="args">参数</param>
  11334. <returns></returns>
  11335. </member>
  11336. <member name="M:NewLife.Remoting.ApiHttpClient.Post``1(System.String,System.Object)">
  11337. <summary>同步提交,参数Json打包在Body</summary>
  11338. <param name="action">服务操作</param>
  11339. <param name="args">参数</param>
  11340. <returns></returns>
  11341. </member>
  11342. <member name="M:NewLife.Remoting.ApiHttpClient.PutAsync``1(System.String,System.Object)">
  11343. <summary>异步上传,参数Json打包在Body</summary>
  11344. <param name="action">服务操作</param>
  11345. <param name="args">参数</param>
  11346. <returns></returns>
  11347. </member>
  11348. <member name="M:NewLife.Remoting.ApiHttpClient.PatchAsync``1(System.String,System.Object)">
  11349. <summary>异步修改,参数Json打包在Body</summary>
  11350. <param name="action">服务操作</param>
  11351. <param name="args">参数</param>
  11352. <returns></returns>
  11353. </member>
  11354. <member name="M:NewLife.Remoting.ApiHttpClient.DeleteAsync``1(System.String,System.Object)">
  11355. <summary>异步删除,参数Json打包在Body</summary>
  11356. <param name="action">服务操作</param>
  11357. <param name="args">参数</param>
  11358. <returns></returns>
  11359. </member>
  11360. <member name="M:NewLife.Remoting.ApiHttpClient.InvokeAsync``1(System.Net.Http.HttpMethod,System.String,System.Object,System.Action{System.Net.Http.HttpRequestMessage},System.Threading.CancellationToken)">
  11361. <summary>异步调用,等待返回结果</summary>
  11362. <typeparam name="TResult"></typeparam>
  11363. <param name="method">请求方法</param>
  11364. <param name="action">服务操作</param>
  11365. <param name="args">参数</param>
  11366. <param name="onRequest">请求头回调</param>
  11367. <param name="cancellationToken">取消通知</param>
  11368. <returns></returns>
  11369. </member>
  11370. <member name="M:NewLife.Remoting.ApiHttpClient.InvokeAsync``1(System.String,System.Object,System.Threading.CancellationToken)">
  11371. <summary>异步调用,等待返回结果</summary>
  11372. <typeparam name="TResult"></typeparam>
  11373. <param name="action">服务操作</param>
  11374. <param name="args">参数</param>
  11375. <param name="cancellationToken">取消通知</param>
  11376. <returns></returns>
  11377. </member>
  11378. <member name="M:NewLife.Remoting.ApiHttpClient.Invoke``1(System.String,System.Object)">
  11379. <summary>同步调用,阻塞等待</summary>
  11380. <param name="action">服务操作</param>
  11381. <param name="args">参数</param>
  11382. <returns></returns>
  11383. </member>
  11384. <member name="M:NewLife.Remoting.ApiHttpClient.BuildRequest(System.Net.Http.HttpMethod,System.String,System.Object,System.Type)">
  11385. <summary>建立请求</summary>
  11386. <param name="method">请求方法</param>
  11387. <param name="action"></param>
  11388. <param name="args"></param>
  11389. <param name="returnType"></param>
  11390. <returns></returns>
  11391. </member>
  11392. <member name="F:NewLife.Remoting.ApiHttpClient._idxServer">
  11393. <summary>调度索引,当前使用该索引处的服务</summary>
  11394. </member>
  11395. <member name="M:NewLife.Remoting.ApiHttpClient.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
  11396. <summary>异步发送</summary>
  11397. <param name="request">请求</param>
  11398. <param name="cancellationToken">取消通知</param>
  11399. <returns></returns>
  11400. </member>
  11401. <member name="M:NewLife.Remoting.ApiHttpClient.GetService">
  11402. <summary>获取一个服务用于处理请求,此处可实现负载均衡LoadBalance。默认取当前可用服务</summary>
  11403. <remarks>
  11404. 如需实现负载均衡,每次取值后都累加索引,让其下一次记获取时拿到下一个服务。
  11405. </remarks>
  11406. <returns></returns>
  11407. </member>
  11408. <member name="M:NewLife.Remoting.ApiHttpClient.PutService(NewLife.Remoting.ApiHttpClient.Service,System.Exception)">
  11409. <summary>归还服务,此处实现故障转移Failover,服务的客户端被清空,说明当前服务不可用</summary>
  11410. <param name="service"></param>
  11411. <param name="error"></param>
  11412. </member>
  11413. <member name="M:NewLife.Remoting.ApiHttpClient.SendOnServiceAsync(System.Net.Http.HttpRequestMessage,NewLife.Remoting.ApiHttpClient.Service,System.Net.Http.HttpClient,System.Threading.CancellationToken)">
  11414. <summary>在指定服务地址上发生请求</summary>
  11415. <param name="request">请求消息</param>
  11416. <param name="service">服务名</param>
  11417. <param name="client">客户端</param>
  11418. <param name="cancellationToken">取消通知</param>
  11419. <returns></returns>
  11420. </member>
  11421. <member name="M:NewLife.Remoting.ApiHttpClient.CreateClient">
  11422. <summary>创建客户端</summary>
  11423. <returns></returns>
  11424. </member>
  11425. <member name="T:NewLife.Remoting.ApiHttpClient.Service">
  11426. <summary>服务项</summary>
  11427. </member>
  11428. <member name="P:NewLife.Remoting.ApiHttpClient.Service.Name">
  11429. <summary>名称</summary>
  11430. </member>
  11431. <member name="P:NewLife.Remoting.ApiHttpClient.Service.Address">
  11432. <summary>名称</summary>
  11433. </member>
  11434. <member name="P:NewLife.Remoting.ApiHttpClient.Service.Weight">
  11435. <summary>权重。用于负载均衡,默认1</summary>
  11436. </member>
  11437. <member name="F:NewLife.Remoting.ApiHttpClient.Service.Index">
  11438. <summary>轮询均衡时,本项第几次使用</summary>
  11439. </member>
  11440. <member name="P:NewLife.Remoting.ApiHttpClient.Service.Times">
  11441. <summary>总次数</summary>
  11442. </member>
  11443. <member name="P:NewLife.Remoting.ApiHttpClient.Service.Errors">
  11444. <summary>错误数</summary>
  11445. </member>
  11446. <member name="P:NewLife.Remoting.ApiHttpClient.Service.CreateTime">
  11447. <summary>创建时间。每过一段时间,就清空一次客户端,让它重建连接,更新域名缓存</summary>
  11448. </member>
  11449. <member name="P:NewLife.Remoting.ApiHttpClient.Service.NextTime">
  11450. <summary>下一次时间。服务项出错时,将禁用一段时间</summary>
  11451. </member>
  11452. <member name="P:NewLife.Remoting.ApiHttpClient.Service.Client">
  11453. <summary>客户端</summary>
  11454. </member>
  11455. <member name="M:NewLife.Remoting.ApiHttpClient.Service.ToString">
  11456. <summary>已重载。友好显示</summary>
  11457. <returns></returns>
  11458. </member>
  11459. <member name="P:NewLife.Remoting.ApiHttpClient.Log">
  11460. <summary>日志</summary>
  11461. </member>
  11462. <member name="M:NewLife.Remoting.ApiHttpClient.WriteLog(System.String,System.Object[])">
  11463. <summary>写日志</summary>
  11464. <param name="format"></param>
  11465. <param name="args"></param>
  11466. </member>
  11467. <member name="T:NewLife.Remoting.HttpClientEventArgs">
  11468. <summary>Http客户端事件参数</summary>
  11469. </member>
  11470. <member name="P:NewLife.Remoting.HttpClientEventArgs.Client">
  11471. <summary>客户端</summary>
  11472. </member>
  11473. <member name="T:NewLife.Remoting.HttpRequestEventArgs">
  11474. <summary>Http请求事件参数</summary>
  11475. </member>
  11476. <member name="P:NewLife.Remoting.HttpRequestEventArgs.Request">
  11477. <summary>客户端</summary>
  11478. </member>
  11479. <member name="T:NewLife.Remoting.IApiClient">
  11480. <summary>应用接口客户端接口</summary>
  11481. </member>
  11482. <member name="P:NewLife.Remoting.IApiClient.Token">
  11483. <summary>令牌。每次请求携带</summary>
  11484. </member>
  11485. <member name="M:NewLife.Remoting.IApiClient.Invoke``1(System.String,System.Object)">
  11486. <summary>同步调用,阻塞等待</summary>
  11487. <param name="action">服务操作</param>
  11488. <param name="args">参数</param>
  11489. <returns></returns>
  11490. </member>
  11491. <member name="M:NewLife.Remoting.IApiClient.InvokeAsync``1(System.String,System.Object,System.Threading.CancellationToken)">
  11492. <summary>异步调用,等待返回结果</summary>
  11493. <typeparam name="TResult"></typeparam>
  11494. <param name="action">服务操作</param>
  11495. <param name="args">参数</param>
  11496. <param name="cancellationToken">取消通知</param>
  11497. <returns></returns>
  11498. </member>
  11499. <member name="T:NewLife.Security.Asn1">
  11500. <summary>抽象语法标记。ASN.1是一种 ISO/ITU-T 标准,描述了一种对数据进行表示、编码、传输和解码的数据格式。</summary>
  11501. </member>
  11502. <member name="P:NewLife.Security.Asn1.Tag">
  11503. <summary>标签</summary>
  11504. </member>
  11505. <member name="P:NewLife.Security.Asn1.Length">
  11506. <summary>长度</summary>
  11507. </member>
  11508. <member name="P:NewLife.Security.Asn1.Value">
  11509. <summary>数值</summary>
  11510. </member>
  11511. <member name="M:NewLife.Security.Asn1.ToString">
  11512. <summary>已重载。</summary>
  11513. <returns></returns>
  11514. </member>
  11515. <member name="M:NewLife.Security.Asn1.GetOids">
  11516. <summary>获取OID</summary>
  11517. <returns></returns>
  11518. </member>
  11519. <member name="M:NewLife.Security.Asn1.Read(System.Byte[])">
  11520. <summary>读取</summary>
  11521. <param name="data"></param>
  11522. <returns></returns>
  11523. </member>
  11524. <member name="M:NewLife.Security.Asn1.Read(System.IO.Stream)">
  11525. <summary>读取</summary>
  11526. <param name="stream"></param>
  11527. <returns></returns>
  11528. </member>
  11529. <member name="M:NewLife.Security.Asn1.Read(System.IO.BinaryReader)">
  11530. <summary>读取对象</summary>
  11531. <param name="reader"></param>
  11532. <returns></returns>
  11533. </member>
  11534. <member name="M:NewLife.Security.Asn1.GetByteArray(System.Boolean)">
  11535. <summary>获取字节数组</summary>
  11536. <param name="trimZero"></param>
  11537. <returns></returns>
  11538. </member>
  11539. <member name="M:NewLife.Security.Asn1.ReadTLV(System.IO.BinaryReader,System.Byte@)">
  11540. <summary>读取TLV,Tag+Length+Value</summary>
  11541. <param name="reader">读取器</param>
  11542. <param name="tag"></param>
  11543. <returns>返回长度,数据流指针移到Value第一个字节</returns>
  11544. </member>
  11545. <member name="M:NewLife.Security.Asn1.ReadTLV(System.IO.BinaryReader,System.Boolean)">
  11546. <summary>读取TLV,Tag+Length+Value</summary>
  11547. <param name="reader">读取器</param>
  11548. <param name="trimZero">是否剔除头部的0x00</param>
  11549. <returns></returns>
  11550. </member>
  11551. <member name="T:NewLife.Security.Asn1Tags">
  11552. <summary>ASN.1标签</summary>
  11553. </member>
  11554. <member name="F:NewLife.Security.Asn1Tags.Boolean">
  11555. <summary>布尔</summary>
  11556. </member>
  11557. <member name="F:NewLife.Security.Asn1Tags.Integer">
  11558. <summary>长整数</summary>
  11559. </member>
  11560. <member name="F:NewLife.Security.Asn1Tags.BitString">
  11561. <summary>比特串</summary>
  11562. </member>
  11563. <member name="F:NewLife.Security.Asn1Tags.OctetString">
  11564. <summary>字节串</summary>
  11565. </member>
  11566. <member name="F:NewLife.Security.Asn1Tags.Null">
  11567. <summary>空</summary>
  11568. </member>
  11569. <member name="F:NewLife.Security.Asn1Tags.ObjectIdentifier">
  11570. <summary>OID实体标识符</summary>
  11571. </member>
  11572. <member name="F:NewLife.Security.Asn1Tags.External">
  11573. <summary>外部</summary>
  11574. </member>
  11575. <member name="F:NewLife.Security.Asn1Tags.Enumerated">
  11576. <summary>枚举</summary>
  11577. </member>
  11578. <member name="F:NewLife.Security.Asn1Tags.Sequence">
  11579. <summary>序列</summary>
  11580. </member>
  11581. <member name="F:NewLife.Security.Asn1Tags.Set">
  11582. <summary>集合</summary>
  11583. </member>
  11584. <member name="F:NewLife.Security.Asn1Tags.NumericString">
  11585. <summary>数字字符串</summary>
  11586. </member>
  11587. <member name="F:NewLife.Security.Asn1Tags.PrintableString">
  11588. <summary>可打印字符串</summary>
  11589. </member>
  11590. <member name="F:NewLife.Security.Asn1Tags.T61String">
  11591. <summary>T61字符串</summary>
  11592. </member>
  11593. <member name="F:NewLife.Security.Asn1Tags.VideotexString">
  11594. <summary>视频</summary>
  11595. </member>
  11596. <member name="F:NewLife.Security.Asn1Tags.IA5String">
  11597. <summary>IA5字符串</summary>
  11598. </member>
  11599. <member name="F:NewLife.Security.Asn1Tags.UtcTime">
  11600. <summary>UTC时间</summary>
  11601. </member>
  11602. <member name="F:NewLife.Security.Asn1Tags.GeneralizedTime">
  11603. <summary>通用时间</summary>
  11604. </member>
  11605. <member name="F:NewLife.Security.Asn1Tags.GraphicString">
  11606. <summary>图形</summary>
  11607. </member>
  11608. <member name="F:NewLife.Security.Asn1Tags.VisibleString">
  11609. <summary>可见字符串</summary>
  11610. </member>
  11611. <member name="F:NewLife.Security.Asn1Tags.GeneralString">
  11612. <summary>基本字符串</summary>
  11613. </member>
  11614. <member name="F:NewLife.Security.Asn1Tags.UniversalString">
  11615. <summary>全局字符串</summary>
  11616. </member>
  11617. <member name="F:NewLife.Security.Asn1Tags.BmpString">
  11618. <summary>位图</summary>
  11619. </member>
  11620. <member name="F:NewLife.Security.Asn1Tags.Utf8String">
  11621. <summary>UTF8字符串</summary>
  11622. </member>
  11623. <member name="F:NewLife.Security.Asn1Tags.Constructed">
  11624. <summary>组合</summary>
  11625. </member>
  11626. <member name="F:NewLife.Security.Asn1Tags.Application">
  11627. <summary>应用</summary>
  11628. </member>
  11629. <member name="F:NewLife.Security.Asn1Tags.Tagged">
  11630. <summary>标记</summary>
  11631. </member>
  11632. <member name="T:NewLife.Security.CbcTransform">
  11633. <summary>CBC块密码模式</summary>
  11634. <remarks>
  11635. 密码块链 (CBC) 模式引入了反馈。 每个纯文本块在加密前,通过按位“异或”操作与前一个块的密码文本结合。
  11636. 这样确保了即使纯文本包含许多相同的块,这些块中的每一个也会加密为不同的密码文本块。
  11637. 在加密块之前,初始化向量通过按位“异或”操作与第一个纯文本块结合。
  11638. 如果密码文本块中有一个位出错,相应的纯文本块也将出错。
  11639. 此外,后面的块中与原出错位的位置相同的位也将出错。
  11640. </remarks>
  11641. </member>
  11642. <member name="P:NewLife.Security.CbcTransform.CanTransformMultipleBlocks">
  11643. <summary>获取一个值,该值指示是否可以转换多个块。</summary>
  11644. </member>
  11645. <member name="P:NewLife.Security.CbcTransform.CanReuseTransform">
  11646. <summary>获取一个值,该值指示是否可重复使用当前转换。</summary>
  11647. </member>
  11648. <member name="P:NewLife.Security.CbcTransform.InputBlockSize">
  11649. <summary>获取输入块大小。</summary>
  11650. </member>
  11651. <member name="P:NewLife.Security.CbcTransform.OutputBlockSize">
  11652. <summary>获取输出块大小。</summary>
  11653. </member>
  11654. <member name="M:NewLife.Security.CbcTransform.#ctor(System.Security.Cryptography.ICryptoTransform,System.Byte[],System.Boolean)">
  11655. <summary>实例化</summary>
  11656. <param name="transform"></param>
  11657. <param name="iv"></param>
  11658. <param name="encryptMode"></param>
  11659. <exception cref="T:System.Security.Cryptography.CryptographicException"></exception>
  11660. </member>
  11661. <member name="M:NewLife.Security.CbcTransform.Dispose">
  11662. <summary>销毁</summary>
  11663. </member>
  11664. <member name="M:NewLife.Security.CbcTransform.TransformBlock(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)">
  11665. <summary>转换输入字节数组的指定区域,并将所得到的转换复制到输出字节数组的指定区域。</summary>
  11666. <param name="inputBuffer"></param>
  11667. <param name="inputOffset"></param>
  11668. <param name="inputCount"></param>
  11669. <param name="outputBuffer"></param>
  11670. <param name="outputOffset"></param>
  11671. <returns></returns>
  11672. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  11673. </member>
  11674. <member name="M:NewLife.Security.CbcTransform.TransformFinalBlock(System.Byte[],System.Int32,System.Int32)">
  11675. <summary>转换指定字节数组的指定区域。</summary>
  11676. <param name="inputBuffer"></param>
  11677. <param name="inputOffset"></param>
  11678. <param name="inputCount"></param>
  11679. <returns></returns>
  11680. <exception cref="T:System.ArgumentException"></exception>
  11681. </member>
  11682. <member name="T:NewLife.Security.Crc16">
  11683. <summary>CRC16校验</summary>
  11684. </member>
  11685. <member name="F:NewLife.Security.Crc16.CrcTable">
  11686. <summary>CRC16表</summary>
  11687. </member>
  11688. <member name="P:NewLife.Security.Crc16.Value">
  11689. <summary>校验值</summary>
  11690. </member>
  11691. <member name="M:NewLife.Security.Crc16.Reset">
  11692. <summary>重置清零</summary>
  11693. </member>
  11694. <member name="M:NewLife.Security.Crc16.Update(System.Int16)">
  11695. <summary>添加整数进行校验</summary>
  11696. <param name = "value">
  11697. the byte is taken as the lower 8 bits of value
  11698. </param>
  11699. </member>
  11700. <member name="M:NewLife.Security.Crc16.Update(System.Byte[],System.Int32,System.Int32)">
  11701. <summary>添加字节数组进行校验,查表计算 CRC16-CCITT x16+x12+x5+1 1021 ISO HDLC, ITU X.25, V.34/V.41/V.42, PPP-FCS</summary>
  11702. <remarks>字符串123456789的Crc16是31C3</remarks>
  11703. <param name = "buffer">数据缓冲区</param>
  11704. <param name = "offset">偏移量</param>
  11705. <param name = "count">字节个数</param>
  11706. </member>
  11707. <member name="M:NewLife.Security.Crc16.Update(System.IO.Stream,System.Int64)">
  11708. <summary>添加数据流进行校验,不查表计算 CRC-16 x16+x15+x2+1 8005 IBM SDLC</summary>
  11709. <param name="stream"></param>
  11710. <param name="count">数量</param>
  11711. </member>
  11712. <member name="M:NewLife.Security.Crc16.Compute(System.Byte[],System.Int32,System.Int32)">
  11713. <summary>计算校验码</summary>
  11714. <param name="buf"></param>
  11715. <param name="offset"></param>
  11716. <param name="count"></param>
  11717. <returns></returns>
  11718. </member>
  11719. <member name="M:NewLife.Security.Crc16.Compute(System.IO.Stream,System.Int32)">
  11720. <summary>计算数据流校验码</summary>
  11721. <param name="stream"></param>
  11722. <param name="count"></param>
  11723. <returns></returns>
  11724. </member>
  11725. <member name="M:NewLife.Security.Crc16.Compute(System.IO.Stream,System.Int64,System.Int32)">
  11726. <summary>计算数据流校验码,指定起始位置和字节数偏移量</summary>
  11727. <remarks>
  11728. 一般用于计算数据包校验码,需要回过头去开始校验,并且可能需要跳过最后的校验码长度。
  11729. position小于0时,数据流从当前位置开始计算校验;
  11730. position大于等于0时,数据流移到该位置开始计算校验,最后由count决定可能差几个字节不参与计算;
  11731. </remarks>
  11732. <param name="stream"></param>
  11733. <param name="position">如果大于等于0,则表示从该位置开始计算</param>
  11734. <param name="count">字节数偏移量,一般用负数表示</param>
  11735. <returns></returns>
  11736. </member>
  11737. <member name="M:NewLife.Security.Crc16.ComputeModbus(System.Byte[],System.Int32,System.Int32)">
  11738. <summary>Modbus版Crc校验</summary>
  11739. <param name="data"></param>
  11740. <param name="offset">偏移</param>
  11741. <param name="count">数量</param>
  11742. <returns></returns>
  11743. </member>
  11744. <member name="M:NewLife.Security.Crc16.ComputeModbus(System.IO.Stream,System.Int64)">
  11745. <summary>Modbus版Crc校验</summary>
  11746. <param name="stream">数据流</param>
  11747. <param name="position">回到该位置开始</param>
  11748. <returns></returns>
  11749. </member>
  11750. <member name="T:NewLife.Security.Crc32">
  11751. <summary>CRC32校验</summary>
  11752. <remarks>
  11753. Generate a table for a byte-wise 32-bit CRC calculation on the polynomial:
  11754. x^32+x^26+x^23+x^22+x^16+x^12+x^11+x^10+x^8+x^7+x^5+x^4+x^2+x+1.
  11755. Polynomials over GF(2) are represented in binary, one bit per coefficient,
  11756. with the lowest powers in the most significant bit. Then adding polynomials
  11757. is just exclusive-or, and multiplying a polynomial by x is a right shift by
  11758. one. If we call the above polynomial p, and represent a byte as the
  11759. polynomial q, also with the lowest power in the most significant bit (so the
  11760. byte 0xb1 is the polynomial x^7+x^3+x+1), then the CRC is (q*x^32) mod p,
  11761. where a mod b means the remainder after dividing a by b.
  11762. This calculation is done using the shift-register method of multiplying and
  11763. taking the remainder. The register is initialized to zero, and for each
  11764. incoming bit, x^32 is added mod p to the register if the bit is a one (where
  11765. x^32 mod p is p+x^32 = x^26+...+1), and the register is multiplied mod p by
  11766. x (which is shifting right by one and adding x^32 mod p if the bit shifted
  11767. out is a one). We start with the highest power (least significant bit) of
  11768. q and repeat for all eight bits of q.
  11769. The table is simply the CRC of all possible eight bit values. This is all
  11770. the information needed to generate CRC's on data a byte at a time for all
  11771. combinations of CRC register values and incoming bytes.
  11772. </remarks>
  11773. </member>
  11774. <member name="F:NewLife.Security.Crc32.Table">
  11775. <summary>校验表</summary>
  11776. </member>
  11777. <member name="F:NewLife.Security.Crc32.crc">
  11778. <summary>校验值</summary>
  11779. </member>
  11780. <member name="P:NewLife.Security.Crc32.Value">
  11781. <summary>校验值</summary>
  11782. </member>
  11783. <member name="M:NewLife.Security.Crc32.Reset">
  11784. <summary>重置清零</summary>
  11785. </member>
  11786. <member name="M:NewLife.Security.Crc32.Update(System.Int32)">
  11787. <summary>添加整数进行校验</summary>
  11788. <param name = "value">
  11789. the byte is taken as the lower 8 bits of value
  11790. </param>
  11791. </member>
  11792. <member name="M:NewLife.Security.Crc32.Update(System.Byte[],System.Int32,System.Int32)">
  11793. <summary>添加字节数组进行校验</summary>
  11794. <param name = "buffer">
  11795. The buffer which contains the data
  11796. </param>
  11797. <param name = "offset">
  11798. The offset in the buffer where the data starts
  11799. </param>
  11800. <param name = "count">
  11801. The number of data bytes to update the CRC with.
  11802. </param>
  11803. </member>
  11804. <member name="M:NewLife.Security.Crc32.Update(System.IO.Stream,System.Int64)">
  11805. <summary>添加数据流进行校验</summary>
  11806. <param name="stream"></param>
  11807. <param name="count">数量</param>
  11808. </member>
  11809. <member name="M:NewLife.Security.Crc32.Compute(System.Byte[],System.Int32,System.Int32)">
  11810. <summary>计算校验码</summary>
  11811. <param name="buf"></param>
  11812. <param name="offset"></param>
  11813. <param name="count"></param>
  11814. <returns></returns>
  11815. </member>
  11816. <member name="M:NewLife.Security.Crc32.Compute(System.IO.Stream,System.Int32)">
  11817. <summary>计算数据流校验码</summary>
  11818. <param name="stream"></param>
  11819. <param name="count"></param>
  11820. <returns></returns>
  11821. </member>
  11822. <member name="M:NewLife.Security.Crc32.ComputeRange(System.IO.Stream,System.Int64,System.Int32)">
  11823. <summary>计算数据流校验码,指定起始位置和字节数偏移量</summary>
  11824. <remarks>
  11825. 一般用于计算数据包校验码,需要回过头去开始校验,并且可能需要跳过最后的校验码长度。
  11826. position小于0时,数据流从当前位置开始计算校验;
  11827. position大于等于0时,数据流移到该位置开始计算校验,最后由count决定可能差几个字节不参与计算;
  11828. </remarks>
  11829. <param name="stream"></param>
  11830. <param name="position">如果大于等于0,则表示从该位置开始计算</param>
  11831. <param name="count">字节数偏移量,一般用负数表示</param>
  11832. <returns></returns>
  11833. </member>
  11834. <member name="T:NewLife.Security.DSAHelper">
  11835. <summary>DSA算法</summary>
  11836. </member>
  11837. <member name="M:NewLife.Security.DSAHelper.GenerateKey(System.Int32)">
  11838. <summary>产生非对称密钥对(私钥和公钥)</summary>
  11839. <param name="keySize">密钥长度,默认1024位强密钥</param>
  11840. <returns>私钥和公钥</returns>
  11841. </member>
  11842. <member name="M:NewLife.Security.DSAHelper.Sign(System.Byte[],System.String)">
  11843. <summary>签名</summary>
  11844. <param name="buf"></param>
  11845. <param name="priKey"></param>
  11846. <returns></returns>
  11847. </member>
  11848. <member name="M:NewLife.Security.DSAHelper.Verify(System.Byte[],System.String,System.Byte[])">
  11849. <summary>验证</summary>
  11850. <param name="buf"></param>
  11851. <param name="pukKey"></param>
  11852. <param name="rgbSignature"></param>
  11853. <returns></returns>
  11854. </member>
  11855. <member name="M:NewLife.Security.DSAHelper.FromXmlStringX(System.Security.Cryptography.DSACryptoServiceProvider,System.String)">
  11856. <summary>从Xml加载DSA密钥</summary>
  11857. <param name="rsa"></param>
  11858. <param name="xmlString"></param>
  11859. </member>
  11860. <member name="M:NewLife.Security.DSAHelper.ToXmlStringX(System.Security.Cryptography.DSACryptoServiceProvider,System.Boolean)">
  11861. <summary>保存DSA密钥到Xml</summary>
  11862. <param name="rsa"></param>
  11863. <param name="includePrivateParameters"></param>
  11864. <returns></returns>
  11865. </member>
  11866. <member name="T:NewLife.Security.IPasswordProvider">
  11867. <summary>密码提供者</summary>
  11868. </member>
  11869. <member name="M:NewLife.Security.IPasswordProvider.Hash(System.String)">
  11870. <summary>对密码进行散列处理,此处可以加盐,结果保存在数据库</summary>
  11871. <param name="password"></param>
  11872. <returns></returns>
  11873. </member>
  11874. <member name="M:NewLife.Security.IPasswordProvider.Verify(System.String,System.String)">
  11875. <summary>验证密码散列,包括加盐判断</summary>
  11876. <param name="password"></param>
  11877. <param name="hash"></param>
  11878. <returns></returns>
  11879. </member>
  11880. <member name="T:NewLife.Security.MD5PasswordProvider">
  11881. <summary>MD5密码提供者</summary>
  11882. </member>
  11883. <member name="M:NewLife.Security.MD5PasswordProvider.Hash(System.String)">
  11884. <summary>对密码进行散列处理,此处可以加盐,结果保存在数据库</summary>
  11885. <param name="password"></param>
  11886. <returns></returns>
  11887. </member>
  11888. <member name="M:NewLife.Security.MD5PasswordProvider.Verify(System.String,System.String)">
  11889. <summary>验证密码散列,包括加盐判断</summary>
  11890. <param name="password"></param>
  11891. <param name="hash"></param>
  11892. <returns></returns>
  11893. </member>
  11894. <member name="T:NewLife.Security.SaltPasswordProvider">
  11895. <summary>盐值密码提供者</summary>
  11896. </member>
  11897. <member name="P:NewLife.Security.SaltPasswordProvider.Algorithm">
  11898. <summary>算法。支持md5/sha1/sha512</summary>
  11899. </member>
  11900. <member name="P:NewLife.Security.SaltPasswordProvider.SaltTime">
  11901. <summary>使用Unix秒作为盐值。该值为允许的最大时间差,默认0,不使用时间盐值,而是使用随机字符串</summary>
  11902. <remarks>一般在传输中使用,避免临时盐值被截取作为它用,建议值30秒。不仅仅是传输耗时,还有两端时间差</remarks>
  11903. </member>
  11904. <member name="M:NewLife.Security.SaltPasswordProvider.Hash(System.String)">
  11905. <summary>对密码进行散列处理,此处可以加盐,结果保存在数据库</summary>
  11906. <param name="password">密码</param>
  11907. <returns></returns>
  11908. </member>
  11909. <member name="M:NewLife.Security.SaltPasswordProvider.CreateSalt">
  11910. <summary>创建盐值</summary>
  11911. <returns></returns>
  11912. </member>
  11913. <member name="M:NewLife.Security.SaltPasswordProvider.Verify(System.String,System.String)">
  11914. <summary>验证密码散列,包括加盐判断</summary>
  11915. <param name="password"></param>
  11916. <param name="hash"></param>
  11917. <returns></returns>
  11918. </member>
  11919. <member name="T:NewLife.Security.Murmur128">
  11920. <summary>高性能低碰撞Murmur128哈希算法</summary>
  11921. <remarks>
  11922. Redis等大量使用,比MD5要好
  11923. </remarks>
  11924. </member>
  11925. <member name="P:NewLife.Security.Murmur128.Seed">
  11926. <summary>种子</summary>
  11927. </member>
  11928. <member name="P:NewLife.Security.Murmur128.HashSize">
  11929. <summary>哈希大小</summary>
  11930. </member>
  11931. <member name="M:NewLife.Security.Murmur128.#ctor(System.UInt32)">
  11932. <summary>实例化</summary>
  11933. <param name="seed"></param>
  11934. </member>
  11935. <member name="M:NewLife.Security.Murmur128.Initialize">
  11936. <summary>初始化</summary>
  11937. </member>
  11938. <member name="M:NewLife.Security.Murmur128.HashCore(System.Byte[],System.Int32,System.Int32)">
  11939. <summary>哈希核心</summary>
  11940. <param name="array"></param>
  11941. <param name="ibStart"></param>
  11942. <param name="cbSize"></param>
  11943. </member>
  11944. <member name="M:NewLife.Security.Murmur128.HashFinal">
  11945. <summary>哈希结束</summary>
  11946. <returns></returns>
  11947. </member>
  11948. <member name="T:NewLife.Security.PKCS7PaddingTransform">
  11949. <summary>PKCS7填充</summary>
  11950. </member>
  11951. <member name="P:NewLife.Security.PKCS7PaddingTransform.CanReuseTransform">
  11952. <summary>获取一个值,该值指示是否可重复使用当前转换。</summary>
  11953. </member>
  11954. <member name="P:NewLife.Security.PKCS7PaddingTransform.CanTransformMultipleBlocks">
  11955. <summary>获取一个值,该值指示是否可以转换多个块。</summary>
  11956. </member>
  11957. <member name="P:NewLife.Security.PKCS7PaddingTransform.InputBlockSize">
  11958. <summary>获取输入块大小。</summary>
  11959. </member>
  11960. <member name="P:NewLife.Security.PKCS7PaddingTransform.OutputBlockSize">
  11961. <summary>获取输出块大小。</summary>
  11962. </member>
  11963. <member name="M:NewLife.Security.PKCS7PaddingTransform.#ctor(System.Security.Cryptography.ICryptoTransform,System.Security.Cryptography.PaddingMode,System.Boolean)">
  11964. <summary>实例化</summary>
  11965. <param name="transform"></param>
  11966. <param name="mode"></param>
  11967. <param name="encryptMode"></param>
  11968. <exception cref="T:System.NotSupportedException"></exception>
  11969. <exception cref="T:System.Security.Cryptography.CryptographicException"></exception>
  11970. </member>
  11971. <member name="M:NewLife.Security.PKCS7PaddingTransform.Dispose">
  11972. <summary>销毁</summary>
  11973. </member>
  11974. <member name="M:NewLife.Security.PKCS7PaddingTransform.TransformBlock(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)">
  11975. <summary>转换输入字节数组的指定区域,并将所得到的转换复制到输出字节数组的指定区域。</summary>
  11976. <param name="inputBuffer"></param>
  11977. <param name="inputOffset"></param>
  11978. <param name="inputCount"></param>
  11979. <param name="outputBuffer"></param>
  11980. <param name="outputOffset"></param>
  11981. <returns></returns>
  11982. </member>
  11983. <member name="M:NewLife.Security.PKCS7PaddingTransform.TransformFinalBlock(System.Byte[],System.Int32,System.Int32)">
  11984. <summary>转换指定字节数组的指定区域。</summary>
  11985. <param name="inputBuffer"></param>
  11986. <param name="inputOffset"></param>
  11987. <param name="inputCount"></param>
  11988. <returns></returns>
  11989. </member>
  11990. <member name="T:NewLife.Security.ProtectedKey">
  11991. <summary>数据保护者。保护连接字符串中的密码</summary>
  11992. </member>
  11993. <member name="P:NewLife.Security.ProtectedKey.Secret">
  11994. <summary>保护数据的密钥</summary>
  11995. </member>
  11996. <member name="P:NewLife.Security.ProtectedKey.Algorithm">
  11997. <summary>算法。默认AES</summary>
  11998. </member>
  11999. <member name="P:NewLife.Security.ProtectedKey.HideString">
  12000. <summary>隐藏字符串</summary>
  12001. </member>
  12002. <member name="P:NewLife.Security.ProtectedKey.Names">
  12003. <summary>密码名字</summary>
  12004. </member>
  12005. <member name="P:NewLife.Security.ProtectedKey.Instance">
  12006. <summary>全局实例。从环境变量和配置文件读取ProtectedKey密钥</summary>
  12007. </member>
  12008. <member name="M:NewLife.Security.ProtectedKey.Protect(System.String)">
  12009. <summary>保护连接字符串中的密码</summary>
  12010. <param name="value"></param>
  12011. <returns></returns>
  12012. </member>
  12013. <member name="M:NewLife.Security.ProtectedKey.Unprotect(System.String)">
  12014. <summary>解保护连接字符串中的密码</summary>
  12015. <param name="value"></param>
  12016. <returns></returns>
  12017. </member>
  12018. <member name="M:NewLife.Security.ProtectedKey.Hide(System.String)">
  12019. <summary>隐藏连接字符串中的密码</summary>
  12020. <param name="value"></param>
  12021. <returns></returns>
  12022. </member>
  12023. <member name="T:NewLife.Security.Rand">
  12024. <summary>随机数</summary>
  12025. </member>
  12026. <member name="M:NewLife.Security.Rand.Next(System.Int32)">
  12027. <summary>返回一个小于所指定最大值的非负随机数</summary>
  12028. <param name="max">返回的随机数的上界(随机数不能取该上界值)</param>
  12029. <returns></returns>
  12030. </member>
  12031. <member name="M:NewLife.Security.Rand.Next(System.Int32,System.Int32)">
  12032. <summary>返回一个指定范围内的随机数</summary>
  12033. <remarks>
  12034. 调用平均耗时37.76ns,其中GC耗时77.56%
  12035. </remarks>
  12036. <param name="min">返回的随机数的下界(随机数可取该下界值)</param>
  12037. <param name="max">返回的随机数的上界(随机数不能取该上界值)</param>
  12038. <returns></returns>
  12039. </member>
  12040. <member name="M:NewLife.Security.Rand.NextBytes(System.Int32)">
  12041. <summary>返回指定长度随机字节数组</summary>
  12042. <remarks>
  12043. 调用平均耗时5.46ns,其中GC耗时15%
  12044. </remarks>
  12045. <param name="count"></param>
  12046. <returns></returns>
  12047. </member>
  12048. <member name="M:NewLife.Security.Rand.NextBytes(System.Random,System.Int32)">
  12049. <summary>
  12050. 返回随机数填充的指定长度的数组
  12051. </summary>
  12052. <param name="random"></param>
  12053. <param name="length">数组长度</param>
  12054. <returns>随机数填充的指定长度的数组</returns>
  12055. </member>
  12056. <member name="M:NewLife.Security.Rand.NextString(System.Int32,System.Boolean)">
  12057. <summary>返回指定长度随机字符串</summary>
  12058. <param name="length">长度</param>
  12059. <param name="symbol">是否包含符号</param>
  12060. <returns></returns>
  12061. </member>
  12062. <member name="M:NewLife.Security.Rand.Fill``1(``0)">
  12063. <summary>随机填充指定对象的属性。可用于构造随机数据进行测试</summary>
  12064. <typeparam name="T"></typeparam>
  12065. <param name="value"></param>
  12066. <returns></returns>
  12067. </member>
  12068. <member name="T:NewLife.Security.RC4">
  12069. <summary>RC4对称加密算法</summary>
  12070. <remarks>
  12071. RC4于1987年提出,和DES算法一样,是一种对称加密算法,也就是说使用的密钥为单钥(或称为私钥)。
  12072. 但不同于DES的是,RC4不是对明文进行分组处理,而是字节流的方式依次加密明文中的每一个字节,解密的时候也是依次对密文中的每一个字节进行解密。
  12073. RC4算法的特点是算法简单,运行速度快,而且密钥长度是可变的,可变范围为1-256字节(8-2048比特),
  12074. 在如今技术支持的前提下,当密钥长度为128比特时,用暴力法搜索密钥已经不太可行,所以可以预见RC4的密钥范围任然可以在今后相当长的时间里抵御暴力搜索密钥的攻击。
  12075. 实际上,如今也没有找到对于128bit密钥长度的RC4加密算法的有效攻击方法。
  12076. </remarks>
  12077. </member>
  12078. <member name="M:NewLife.Security.RC4.Encrypt(System.Byte[],System.Byte[])">
  12079. <summary>加密</summary>
  12080. <param name="data">数据</param>
  12081. <param name="pass">密码</param>
  12082. <returns></returns>
  12083. </member>
  12084. <member name="M:NewLife.Security.RC4.GetKey(System.Byte[],System.Int32)">
  12085. <summary>打乱密码</summary>
  12086. <param name="pass">密码</param>
  12087. <param name="len">密码箱长度</param>
  12088. <returns>打乱后的密码</returns>
  12089. </member>
  12090. <member name="T:NewLife.Security.RSAHelper">
  12091. <summary>RSA算法</summary>
  12092. <remarks>
  12093. RSA加密或签名小数据块时,密文长度128,速度也很快。
  12094. </remarks>
  12095. </member>
  12096. <member name="M:NewLife.Security.RSAHelper.GenerateKey(System.Int32)">
  12097. <summary>产生非对称密钥对</summary>
  12098. <remarks>
  12099. RSAParameters的各个字段采用大端字节序,转为BigInteger的之前一定要倒序。
  12100. RSA加密后密文最小长度就是密钥长度,所以1024密钥最小密文长度是128字节。
  12101. </remarks>
  12102. <param name="keySize">密钥长度,默认1024位强密钥</param>
  12103. <returns></returns>
  12104. </member>
  12105. <member name="M:NewLife.Security.RSAHelper.GenerateParameters(System.Int32)">
  12106. <summary>产生非对称密钥对</summary>
  12107. <remarks>
  12108. RSAParameters的各个字段采用大端字节序,转为BigInteger的之前一定要倒序。
  12109. RSA加密后密文最小长度就是密钥长度,所以1024密钥最小密文长度是128字节。
  12110. </remarks>
  12111. <param name="keySize">密钥长度,默认1024位强密钥</param>
  12112. <returns></returns>
  12113. </member>
  12114. <member name="M:NewLife.Security.RSAHelper.WriteParameters(System.Security.Cryptography.RSAParameters)">
  12115. <summary>RSA参数转为Base64密钥</summary>
  12116. <param name="p"></param>
  12117. <returns></returns>
  12118. </member>
  12119. <member name="M:NewLife.Security.RSAHelper.ReadParameters(System.String)">
  12120. <summary>根据Base64密钥创建RSA参数</summary>
  12121. <param name="key"></param>
  12122. <returns></returns>
  12123. </member>
  12124. <member name="M:NewLife.Security.RSAHelper.Create(System.String)">
  12125. <summary>创建RSA对象,支持Xml密钥和Pem密钥</summary>
  12126. <param name="key"></param>
  12127. <returns></returns>
  12128. </member>
  12129. <member name="M:NewLife.Security.RSAHelper.Encrypt(System.Byte[],System.String,System.Boolean)">
  12130. <summary>RSA公钥加密。仅用于加密少量数据</summary>
  12131. <remarks>
  12132. (PKCS # 1 v2) 的 OAEP 填充 模数大小-2-2 * hLen,其中 hLen 是哈希的大小。
  12133. 直接加密 (PKCS # 1 1.5 版) 模数大小-11。 (11 个字节是可能的最小填充。 )
  12134. </remarks>
  12135. <param name="data">数据明文</param>
  12136. <param name="pubKey">公钥</param>
  12137. <param name="fOAEP">如果为 true,则使用 OAEP 填充(仅可用于运行 Windows XP 及更高版本的计算机)执行直接 System.Security.Cryptography.RSA加密;否则,如果为 false,则使用 PKCS#1 v1.5 填充。</param>
  12138. <returns></returns>
  12139. </member>
  12140. <member name="M:NewLife.Security.RSAHelper.Decrypt(System.Byte[],System.String,System.Boolean)">
  12141. <summary>RSA私钥解密。仅用于加密少量数据</summary>
  12142. <remarks>
  12143. (PKCS # 1 v2) 的 OAEP 填充 模数大小-2-2 * hLen,其中 hLen 是哈希的大小。
  12144. 直接加密 (PKCS # 1 1.5 版) 模数大小-11。 (11 个字节是可能的最小填充。 )
  12145. </remarks>
  12146. <param name="data">数据密文</param>
  12147. <param name="priKey">私钥</param>
  12148. <param name="fOAEP">如果为 true,则使用 OAEP 填充(仅可用于运行 Microsoft Windows XP 及更高版本的计算机)执行直接 System.Security.Cryptography.RSA解密;否则,如果为 false 则使用 PKCS#1 v1.5 填充。</param>
  12149. <returns></returns>
  12150. </member>
  12151. <member name="M:NewLife.Security.RSAHelper.Sign(System.Byte[],System.String)">
  12152. <summary>签名,MD5散列</summary>
  12153. <param name="data"></param>
  12154. <param name="priKey"></param>
  12155. <returns></returns>
  12156. </member>
  12157. <member name="M:NewLife.Security.RSAHelper.Verify(System.Byte[],System.String,System.Byte[])">
  12158. <summary>验证,MD5散列</summary>
  12159. <param name="data"></param>
  12160. <param name="pukKey"></param>
  12161. <param name="rgbSignature"></param>
  12162. <returns></returns>
  12163. </member>
  12164. <member name="M:NewLife.Security.RSAHelper.SignSha256(System.Byte[],System.String)">
  12165. <summary>RS256</summary>
  12166. <param name="data"></param>
  12167. <param name="priKey"></param>
  12168. <returns></returns>
  12169. </member>
  12170. <member name="M:NewLife.Security.RSAHelper.VerifySha256(System.Byte[],System.String,System.Byte[])">
  12171. <summary>RS256</summary>
  12172. <param name="data"></param>
  12173. <param name="pukKey"></param>
  12174. <param name="rgbSignature"></param>
  12175. <returns></returns>
  12176. </member>
  12177. <member name="M:NewLife.Security.RSAHelper.SignSha384(System.Byte[],System.String)">
  12178. <summary>RS384</summary>
  12179. <param name="data"></param>
  12180. <param name="priKey"></param>
  12181. <returns></returns>
  12182. </member>
  12183. <member name="M:NewLife.Security.RSAHelper.VerifySha384(System.Byte[],System.String,System.Byte[])">
  12184. <summary>RS384</summary>
  12185. <param name="data"></param>
  12186. <param name="pukKey"></param>
  12187. <param name="rgbSignature"></param>
  12188. <returns></returns>
  12189. </member>
  12190. <member name="M:NewLife.Security.RSAHelper.SignSha512(System.Byte[],System.String)">
  12191. <summary>RS512</summary>
  12192. <param name="data"></param>
  12193. <param name="priKey"></param>
  12194. <returns></returns>
  12195. </member>
  12196. <member name="M:NewLife.Security.RSAHelper.VerifySha512(System.Byte[],System.String,System.Byte[])">
  12197. <summary>RS512</summary>
  12198. <param name="data"></param>
  12199. <param name="pukKey"></param>
  12200. <param name="rgbSignature"></param>
  12201. <returns></returns>
  12202. </member>
  12203. <member name="M:NewLife.Security.RSAHelper.ReadPem(System.String)">
  12204. <summary>读取PEM文件到RSA参数</summary>
  12205. <param name="content"></param>
  12206. <returns></returns>
  12207. </member>
  12208. <member name="T:NewLife.Security.ZerosPaddingTransform">
  12209. <summary>Zero填充</summary>
  12210. </member>
  12211. <member name="P:NewLife.Security.ZerosPaddingTransform.CanReuseTransform">
  12212. <summary>获取一个值,该值指示是否可重复使用当前转换。</summary>
  12213. </member>
  12214. <member name="P:NewLife.Security.ZerosPaddingTransform.CanTransformMultipleBlocks">
  12215. <summary>获取一个值,该值指示是否可以转换多个块。</summary>
  12216. </member>
  12217. <member name="P:NewLife.Security.ZerosPaddingTransform.InputBlockSize">
  12218. <summary>获取输入块大小。</summary>
  12219. </member>
  12220. <member name="P:NewLife.Security.ZerosPaddingTransform.OutputBlockSize">
  12221. <summary>获取输出块大小。</summary>
  12222. </member>
  12223. <member name="M:NewLife.Security.ZerosPaddingTransform.#ctor(System.Security.Cryptography.ICryptoTransform,System.Boolean)">
  12224. <summary>实例化</summary>
  12225. <param name="transform"></param>
  12226. <param name="encryptMode"></param>
  12227. </member>
  12228. <member name="M:NewLife.Security.ZerosPaddingTransform.Dispose">
  12229. <summary>销毁</summary>
  12230. </member>
  12231. <member name="M:NewLife.Security.ZerosPaddingTransform.TransformBlock(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)">
  12232. <summary>转换输入字节数组的指定区域,并将所得到的转换复制到输出字节数组的指定区域。</summary>
  12233. <param name="inputBuffer"></param>
  12234. <param name="inputOffset"></param>
  12235. <param name="inputCount"></param>
  12236. <param name="outputBuffer"></param>
  12237. <param name="outputOffset"></param>
  12238. <returns></returns>
  12239. </member>
  12240. <member name="M:NewLife.Security.ZerosPaddingTransform.TransformFinalBlock(System.Byte[],System.Int32,System.Int32)">
  12241. <summary>转换指定字节数组的指定区域。</summary>
  12242. <param name="inputBuffer"></param>
  12243. <param name="inputOffset"></param>
  12244. <param name="inputCount"></param>
  12245. <returns></returns>
  12246. </member>
  12247. <member name="T:NewLife.SecurityHelper">
  12248. <summary>安全算法</summary>
  12249. <remarks>
  12250. 文档 https://newlifex.com/core/security_helper
  12251. </remarks>
  12252. </member>
  12253. <member name="M:NewLife.SecurityHelper.MD5(System.Byte[])">
  12254. <summary>MD5散列</summary>
  12255. <param name="data"></param>
  12256. <returns></returns>
  12257. </member>
  12258. <member name="M:NewLife.SecurityHelper.MD5(System.String,System.Text.Encoding)">
  12259. <summary>MD5散列</summary>
  12260. <param name="data"></param>
  12261. <param name="encoding">字符串编码,默认Default</param>
  12262. <returns></returns>
  12263. </member>
  12264. <member name="M:NewLife.SecurityHelper.MD5_16(System.String,System.Text.Encoding)">
  12265. <summary>MD5散列</summary>
  12266. <param name="data"></param>
  12267. <param name="encoding">字符串编码,默认Default</param>
  12268. <returns></returns>
  12269. </member>
  12270. <member name="M:NewLife.SecurityHelper.MD5(System.IO.FileInfo)">
  12271. <summary>计算文件的MD5散列</summary>
  12272. <param name="file"></param>
  12273. <returns></returns>
  12274. </member>
  12275. <member name="M:NewLife.SecurityHelper.Crc(System.Byte[])">
  12276. <summary>Crc散列</summary>
  12277. <param name="data"></param>
  12278. <returns></returns>
  12279. </member>
  12280. <member name="M:NewLife.SecurityHelper.Crc16(System.Byte[])">
  12281. <summary>Crc16散列</summary>
  12282. <param name="data"></param>
  12283. <returns></returns>
  12284. </member>
  12285. <member name="M:NewLife.SecurityHelper.SHA1(System.Byte[],System.Byte[])">
  12286. <summary>SHA128</summary>
  12287. <param name="data"></param>
  12288. <param name="key"></param>
  12289. <returns></returns>
  12290. </member>
  12291. <member name="M:NewLife.SecurityHelper.SHA256(System.Byte[],System.Byte[])">
  12292. <summary>SHA256</summary>
  12293. <param name="data"></param>
  12294. <param name="key"></param>
  12295. <returns></returns>
  12296. </member>
  12297. <member name="M:NewLife.SecurityHelper.SHA384(System.Byte[],System.Byte[])">
  12298. <summary>SHA384</summary>
  12299. <param name="data"></param>
  12300. <param name="key"></param>
  12301. <returns></returns>
  12302. </member>
  12303. <member name="M:NewLife.SecurityHelper.SHA512(System.Byte[],System.Byte[])">
  12304. <summary>SHA512</summary>
  12305. <param name="data"></param>
  12306. <param name="key"></param>
  12307. <returns></returns>
  12308. </member>
  12309. <member name="M:NewLife.SecurityHelper.Murmur128(System.Byte[],System.UInt32)">
  12310. <summary>Murmur128哈希</summary>
  12311. <param name="data"></param>
  12312. <param name="seed"></param>
  12313. <returns></returns>
  12314. </member>
  12315. <member name="M:NewLife.SecurityHelper.Encrypt(System.Security.Cryptography.SymmetricAlgorithm,System.IO.Stream,System.IO.Stream)">
  12316. <summary>对称加密算法扩展</summary>
  12317. <remarks>注意:CryptoStream会把 outstream 数据流关闭</remarks>
  12318. <param name="sa"></param>
  12319. <param name="instream"></param>
  12320. <param name="outstream"></param>
  12321. <returns></returns>
  12322. </member>
  12323. <member name="M:NewLife.SecurityHelper.Encrypt(System.Security.Cryptography.SymmetricAlgorithm,System.Byte[],System.Byte[],System.Security.Cryptography.CipherMode,System.Security.Cryptography.PaddingMode)">
  12324. <summary>对称加密算法扩展</summary>
  12325. <remarks>CBC填充依赖IV,要求加解密的IV一致,而ECB填充则不需要</remarks>
  12326. <param name="sa">算法</param>
  12327. <param name="data">数据</param>
  12328. <param name="pass">密码</param>
  12329. <param name="mode">模式。.Net默认CBC,Java默认ECB</param>
  12330. <param name="padding">填充算法。默认PKCS7,等同Java的PKCS5</param>
  12331. <returns></returns>
  12332. </member>
  12333. <member name="M:NewLife.SecurityHelper.Decrypt(System.Security.Cryptography.SymmetricAlgorithm,System.IO.Stream,System.IO.Stream)">
  12334. <summary>对称解密算法扩展
  12335. <para>注意:CryptoStream会把 instream 数据流关闭</para>
  12336. </summary>
  12337. <param name="sa"></param>
  12338. <param name="instream"></param>
  12339. <param name="outstream"></param>
  12340. <returns></returns>
  12341. </member>
  12342. <member name="M:NewLife.SecurityHelper.Decrypt(System.Security.Cryptography.SymmetricAlgorithm,System.Byte[],System.Byte[],System.Security.Cryptography.CipherMode,System.Security.Cryptography.PaddingMode)">
  12343. <summary>对称解密算法扩展</summary>
  12344. <remarks>CBC填充依赖IV,要求加解密的IV一致,而ECB填充则不需要</remarks>
  12345. <param name="sa">算法</param>
  12346. <param name="data">数据</param>
  12347. <param name="pass">密码</param>
  12348. <param name="mode">模式。.Net默认CBC,Java默认ECB</param>
  12349. <param name="padding">填充算法。默认PKCS7,等同Java的PKCS5</param>
  12350. <returns></returns>
  12351. </member>
  12352. <member name="M:NewLife.SecurityHelper.Transform(System.Security.Cryptography.ICryptoTransform,System.Byte[])">
  12353. <summary>转换数据(内部加解密)</summary>
  12354. <param name="transform"></param>
  12355. <param name="data"></param>
  12356. <returns></returns>
  12357. </member>
  12358. <member name="M:NewLife.SecurityHelper.RC4(System.Byte[],System.Byte[])">
  12359. <summary>RC4对称加密算法</summary>
  12360. <param name="data"></param>
  12361. <param name="pass"></param>
  12362. <returns></returns>
  12363. </member>
  12364. <member name="T:NewLife.Serialization.Binary">
  12365. <summary>二进制序列化</summary>
  12366. </member>
  12367. <member name="P:NewLife.Serialization.Binary.EncodeInt">
  12368. <summary>使用7位编码整数。默认false不使用</summary>
  12369. </member>
  12370. <member name="P:NewLife.Serialization.Binary.IsLittleEndian">
  12371. <summary>小端字节序。默认false大端</summary>
  12372. </member>
  12373. <member name="P:NewLife.Serialization.Binary.UseFieldSize">
  12374. <summary>使用指定大小的FieldSizeAttribute特性,默认false</summary>
  12375. </member>
  12376. <member name="P:NewLife.Serialization.Binary.UseRef">
  12377. <summary>使用对象引用,默认false</summary>
  12378. </member>
  12379. <member name="P:NewLife.Serialization.Binary.SizeWidth">
  12380. <summary>大小宽度。可选0/1/2/4,默认0表示压缩编码整数</summary>
  12381. </member>
  12382. <member name="P:NewLife.Serialization.Binary.TrimZero">
  12383. <summary>解析字符串时,是否清空两头的0字节,默认false</summary>
  12384. </member>
  12385. <member name="P:NewLife.Serialization.Binary.Version">
  12386. <summary>协议版本。用于支持多版本协议序列化,配合FieldSize特性使用。例如JT/T808的2011/2019</summary>
  12387. </member>
  12388. <member name="P:NewLife.Serialization.Binary.IgnoreMembers">
  12389. <summary>要忽略的成员</summary>
  12390. </member>
  12391. <member name="P:NewLife.Serialization.Binary.Handlers">
  12392. <summary>处理器列表</summary>
  12393. </member>
  12394. <member name="M:NewLife.Serialization.Binary.#ctor">
  12395. <summary>实例化</summary>
  12396. </member>
  12397. <member name="M:NewLife.Serialization.Binary.AddHandler(NewLife.Serialization.IBinaryHandler)">
  12398. <summary>添加处理器</summary>
  12399. <param name="handler"></param>
  12400. <returns></returns>
  12401. </member>
  12402. <member name="M:NewLife.Serialization.Binary.AddHandler``1(System.Int32)">
  12403. <summary>添加处理器</summary>
  12404. <typeparam name="THandler"></typeparam>
  12405. <param name="priority"></param>
  12406. <returns></returns>
  12407. </member>
  12408. <member name="M:NewLife.Serialization.Binary.GetHandler``1">
  12409. <summary>获取处理器</summary>
  12410. <typeparam name="T"></typeparam>
  12411. <returns></returns>
  12412. </member>
  12413. <member name="M:NewLife.Serialization.Binary.Write(System.Object,System.Type)">
  12414. <summary>写入一个对象</summary>
  12415. <param name="value">目标对象</param>
  12416. <param name="type">类型</param>
  12417. <returns></returns>
  12418. </member>
  12419. <member name="M:NewLife.Serialization.Binary.Write(System.Byte)">
  12420. <summary>写入字节</summary>
  12421. <param name="value"></param>
  12422. </member>
  12423. <member name="M:NewLife.Serialization.Binary.Write(System.Byte[],System.Int32,System.Int32)">
  12424. <summary>将字节数组部分写入当前流,不写入数组长度。</summary>
  12425. <param name="buffer">包含要写入的数据的字节数组。</param>
  12426. <param name="offset">buffer 中开始写入的起始点。</param>
  12427. <param name="count">要写入的字节数。</param>
  12428. </member>
  12429. <member name="M:NewLife.Serialization.Binary.WriteSize(System.Int32)">
  12430. <summary>写入大小,如果有FieldSize则返回,否则写入编码的大小并返回-1</summary>
  12431. <param name="size"></param>
  12432. <returns></returns>
  12433. </member>
  12434. <member name="M:NewLife.Serialization.Binary.Read(System.Type)">
  12435. <summary>读取指定类型对象</summary>
  12436. <param name="type"></param>
  12437. <returns></returns>
  12438. </member>
  12439. <member name="M:NewLife.Serialization.Binary.Read``1">
  12440. <summary>读取指定类型对象</summary>
  12441. <typeparam name="T"></typeparam>
  12442. <returns></returns>
  12443. </member>
  12444. <member name="M:NewLife.Serialization.Binary.TryRead(System.Type,System.Object@)">
  12445. <summary>尝试读取指定类型对象</summary>
  12446. <param name="type"></param>
  12447. <param name="value"></param>
  12448. <returns></returns>
  12449. </member>
  12450. <member name="M:NewLife.Serialization.Binary.ReadByte">
  12451. <summary>读取字节</summary>
  12452. <returns></returns>
  12453. </member>
  12454. <member name="M:NewLife.Serialization.Binary.ReadBytes(System.Int32)">
  12455. <summary>从当前流中将 count 个字节读入字节数组</summary>
  12456. <param name="count">要读取的字节数。</param>
  12457. <returns></returns>
  12458. </member>
  12459. <member name="M:NewLife.Serialization.Binary.ReadSize">
  12460. <summary>读取大小</summary>
  12461. <returns></returns>
  12462. </member>
  12463. <member name="M:NewLife.Serialization.Binary.WriteEncoded(System.Int32)">
  12464. <summary>写7位压缩编码整数</summary>
  12465. <remarks>
  12466. 以7位压缩格式写入32位整数,小于7位用1个字节,小于14位用2个字节。
  12467. 由每次写入的一个字节的第一位标记后面的字节是否还是当前数据,所以每个字节实际可利用存储空间只有后7位。
  12468. </remarks>
  12469. <param name="value">数值</param>
  12470. <returns>实际写入字节数</returns>
  12471. </member>
  12472. <member name="M:NewLife.Serialization.Binary.ReadEncodedInt16">
  12473. <summary>以压缩格式读取16位整数</summary>
  12474. <returns></returns>
  12475. </member>
  12476. <member name="M:NewLife.Serialization.Binary.ReadEncodedInt32">
  12477. <summary>以压缩格式读取32位整数</summary>
  12478. <returns></returns>
  12479. </member>
  12480. <member name="M:NewLife.Serialization.Binary.ReadEncodedInt64">
  12481. <summary>以压缩格式读取64位整数</summary>
  12482. <returns></returns>
  12483. </member>
  12484. <member name="M:NewLife.Serialization.Binary.ReadUInt16">
  12485. <summary>读取无符号短整数</summary>
  12486. <returns></returns>
  12487. </member>
  12488. <member name="M:NewLife.Serialization.Binary.ReadInt16">
  12489. <summary>读取短整数</summary>
  12490. <returns></returns>
  12491. </member>
  12492. <member name="M:NewLife.Serialization.Binary.ReadUInt32">
  12493. <summary>读取无符号整数</summary>
  12494. <returns></returns>
  12495. </member>
  12496. <member name="M:NewLife.Serialization.Binary.ReadInt32">
  12497. <summary>读取整数</summary>
  12498. <returns></returns>
  12499. </member>
  12500. <member name="M:NewLife.Serialization.Binary.WriteByte(System.Byte)">
  12501. <summary>写入字节</summary>
  12502. <param name="value"></param>
  12503. </member>
  12504. <member name="M:NewLife.Serialization.Binary.WriteUInt16(System.UInt16)">
  12505. <summary>写入无符号短整数</summary>
  12506. <param name="value"></param>
  12507. </member>
  12508. <member name="M:NewLife.Serialization.Binary.WriteInt16(System.Int16)">
  12509. <summary>写入短整数</summary>
  12510. <param name="value"></param>
  12511. </member>
  12512. <member name="M:NewLife.Serialization.Binary.WriteUInt32(System.UInt32)">
  12513. <summary>写入无符号整数</summary>
  12514. <param name="value"></param>
  12515. </member>
  12516. <member name="M:NewLife.Serialization.Binary.WriteInt32(System.Int32)">
  12517. <summary>写入整数</summary>
  12518. <param name="value"></param>
  12519. </member>
  12520. <member name="M:NewLife.Serialization.Binary.FromBCD(System.Byte)">
  12521. <summary>BCD字节转十进制数字</summary>
  12522. <param name="b"></param>
  12523. <returns></returns>
  12524. </member>
  12525. <member name="M:NewLife.Serialization.Binary.ToBCD(System.Int32)">
  12526. <summary>十进制数字转BCD字节</summary>
  12527. <param name="n"></param>
  12528. <returns></returns>
  12529. </member>
  12530. <member name="M:NewLife.Serialization.Binary.ReadBCD(System.Int32)">
  12531. <summary>读取指定长度的BCD字符串。BCD每个字节存放两个数字</summary>
  12532. <param name="len"></param>
  12533. <returns></returns>
  12534. </member>
  12535. <member name="M:NewLife.Serialization.Binary.WriteBCD(System.String,System.Int32)">
  12536. <summary>写入指定长度的BCD字符串。BCD每个字节存放两个数字</summary>
  12537. <param name="value"></param>
  12538. <param name="max"></param>
  12539. </member>
  12540. <member name="M:NewLife.Serialization.Binary.WriteFixedString(System.String,System.Int32)">
  12541. <summary>写入定长字符串。多余截取,少则补零</summary>
  12542. <param name="value"></param>
  12543. <param name="max"></param>
  12544. </member>
  12545. <member name="M:NewLife.Serialization.Binary.ReadFixedString(System.Int32)">
  12546. <summary>读取定长字符串。多余截取,少则补零</summary>
  12547. <param name="len"></param>
  12548. <returns></returns>
  12549. </member>
  12550. <member name="M:NewLife.Serialization.Binary.EndOfStream">
  12551. <summary>是否已达到末尾</summary>
  12552. <returns></returns>
  12553. </member>
  12554. <member name="M:NewLife.Serialization.Binary.CheckRemain(System.Int32)">
  12555. <summary>检查剩余量是否足够</summary>
  12556. <param name="size"></param>
  12557. <returns></returns>
  12558. </member>
  12559. <member name="M:NewLife.Serialization.Binary.FastRead``1(System.IO.Stream,System.Boolean)">
  12560. <summary>快速读取</summary>
  12561. <typeparam name="T"></typeparam>
  12562. <param name="stream">数据流</param>
  12563. <param name="encodeInt">使用7位编码整数</param>
  12564. <returns></returns>
  12565. </member>
  12566. <member name="M:NewLife.Serialization.Binary.FastWrite(System.Object,System.Boolean)">
  12567. <summary>快速写入</summary>
  12568. <param name="value">对象</param>
  12569. <param name="encodeInt">使用7位编码整数</param>
  12570. <returns></returns>
  12571. </member>
  12572. <member name="M:NewLife.Serialization.Binary.FastWrite(System.Object,System.IO.Stream,System.Boolean)">
  12573. <summary>快速写入</summary>
  12574. <param name="value">对象</param>
  12575. <param name="stream">目标数据流</param>
  12576. <param name="encodeInt">使用7位编码整数</param>
  12577. <returns></returns>
  12578. </member>
  12579. <member name="T:NewLife.Serialization.BinaryColor">
  12580. <summary>颜色处理器。</summary>
  12581. </member>
  12582. <member name="M:NewLife.Serialization.BinaryColor.#ctor">
  12583. <summary>实例化</summary>
  12584. </member>
  12585. <member name="M:NewLife.Serialization.BinaryColor.Write(System.Object,System.Type)">
  12586. <summary>写入对象</summary>
  12587. <param name="value">目标对象</param>
  12588. <param name="type">类型</param>
  12589. <returns></returns>
  12590. </member>
  12591. <member name="M:NewLife.Serialization.BinaryColor.TryRead(System.Type,System.Object@)">
  12592. <summary>尝试读取指定类型对象</summary>
  12593. <param name="type"></param>
  12594. <param name="value"></param>
  12595. <returns></returns>
  12596. </member>
  12597. <member name="T:NewLife.Serialization.BinaryComposite">
  12598. <summary>复合对象处理器</summary>
  12599. </member>
  12600. <member name="M:NewLife.Serialization.BinaryComposite.#ctor">
  12601. <summary>实例化</summary>
  12602. </member>
  12603. <member name="M:NewLife.Serialization.BinaryComposite.Write(System.Object,System.Type)">
  12604. <summary>写入对象</summary>
  12605. <param name="value">目标对象</param>
  12606. <param name="type">类型</param>
  12607. <returns></returns>
  12608. </member>
  12609. <member name="M:NewLife.Serialization.BinaryComposite.TryRead(System.Type,System.Object@)">
  12610. <summary>尝试读取指定类型对象</summary>
  12611. <param name="type"></param>
  12612. <param name="value"></param>
  12613. <returns></returns>
  12614. </member>
  12615. <member name="M:NewLife.Serialization.BinaryComposite.GetMembers(System.Type,System.Boolean)">
  12616. <summary>获取成员</summary>
  12617. <param name="type"></param>
  12618. <param name="baseFirst"></param>
  12619. <returns></returns>
  12620. </member>
  12621. <member name="T:NewLife.Serialization.BinaryDictionary">
  12622. <summary>字典数据编码</summary>
  12623. </member>
  12624. <member name="M:NewLife.Serialization.BinaryDictionary.#ctor">
  12625. <summary>初始化</summary>
  12626. </member>
  12627. <member name="M:NewLife.Serialization.BinaryDictionary.Write(System.Object,System.Type)">
  12628. <summary>写入一个对象</summary>
  12629. <param name="value">目标对象</param>
  12630. <param name="type">类型</param>
  12631. <returns></returns>
  12632. </member>
  12633. <member name="M:NewLife.Serialization.BinaryDictionary.TryRead(System.Type,System.Object@)">
  12634. <summary>尝试读取指定类型对象</summary>
  12635. <param name="type"></param>
  12636. <param name="value"></param>
  12637. <returns></returns>
  12638. </member>
  12639. <member name="T:NewLife.Serialization.BinaryFont">
  12640. <summary>字体处理器。</summary>
  12641. </member>
  12642. <member name="M:NewLife.Serialization.BinaryFont.#ctor">
  12643. <summary>实例化</summary>
  12644. </member>
  12645. <member name="M:NewLife.Serialization.BinaryFont.Write(System.Object,System.Type)">
  12646. <summary>写入对象</summary>
  12647. <param name="value">目标对象</param>
  12648. <param name="type">类型</param>
  12649. <returns></returns>
  12650. </member>
  12651. <member name="M:NewLife.Serialization.BinaryFont.TryRead(System.Type,System.Object@)">
  12652. <summary>尝试读取指定类型对象</summary>
  12653. <param name="type"></param>
  12654. <param name="value"></param>
  12655. <returns></returns>
  12656. </member>
  12657. <member name="T:NewLife.Serialization.BinaryGeneral">
  12658. <summary>二进制基础类型处理器</summary>
  12659. </member>
  12660. <member name="M:NewLife.Serialization.BinaryGeneral.#ctor">
  12661. <summary>实例化</summary>
  12662. </member>
  12663. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Object,System.Type)">
  12664. <summary>写入一个对象</summary>
  12665. <param name="value">目标对象</param>
  12666. <param name="type">类型</param>
  12667. <returns>是否处理成功</returns>
  12668. </member>
  12669. <member name="M:NewLife.Serialization.BinaryGeneral.TryRead(System.Type,System.Object@)">
  12670. <summary>尝试读取指定类型对象</summary>
  12671. <param name="type"></param>
  12672. <param name="value"></param>
  12673. <returns></returns>
  12674. </member>
  12675. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Byte)">
  12676. <summary>将一个无符号字节写入</summary>
  12677. <param name="value">要写入的无符号字节。</param>
  12678. </member>
  12679. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Byte[])">
  12680. <summary>将字节数组写入,如果设置了UseSize,则先写入数组长度。</summary>
  12681. <param name="buffer">包含要写入的数据的字节数组。</param>
  12682. </member>
  12683. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Byte[],System.Int32,System.Int32)">
  12684. <summary>将字节数组部分写入当前流,不写入数组长度。</summary>
  12685. <param name="buffer">包含要写入的数据的字节数组。</param>
  12686. <param name="offset">buffer 中开始写入的起始点。</param>
  12687. <param name="count">要写入的字节数。</param>
  12688. </member>
  12689. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Byte[],System.Int32)">
  12690. <summary>写入字节数组,自动计算长度</summary>
  12691. <param name="buffer">缓冲区</param>
  12692. <param name="count">数量</param>
  12693. </member>
  12694. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Int16)">
  12695. <summary>将 2 字节有符号整数写入当前流,并将流的位置提升 2 个字节。</summary>
  12696. <param name="value">要写入的 2 字节有符号整数。</param>
  12697. </member>
  12698. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Int32)">
  12699. <summary>将 4 字节有符号整数写入当前流,并将流的位置提升 4 个字节。</summary>
  12700. <param name="value">要写入的 4 字节有符号整数。</param>
  12701. </member>
  12702. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Int64)">
  12703. <summary>将 8 字节有符号整数写入当前流,并将流的位置提升 8 个字节。</summary>
  12704. <param name="value">要写入的 8 字节有符号整数。</param>
  12705. </member>
  12706. <member name="M:NewLife.Serialization.BinaryGeneral.WriteIntBytes(System.Byte[])">
  12707. <summary>判断字节顺序</summary>
  12708. <param name="buffer">缓冲区</param>
  12709. </member>
  12710. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.UInt16)">
  12711. <summary>将 2 字节无符号整数写入当前流,并将流的位置提升 2 个字节。</summary>
  12712. <param name="value">要写入的 2 字节无符号整数。</param>
  12713. </member>
  12714. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.UInt32)">
  12715. <summary>将 4 字节无符号整数写入当前流,并将流的位置提升 4 个字节。</summary>
  12716. <param name="value">要写入的 4 字节无符号整数。</param>
  12717. </member>
  12718. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.UInt64)">
  12719. <summary>将 8 字节无符号整数写入当前流,并将流的位置提升 8 个字节。</summary>
  12720. <param name="value">要写入的 8 字节无符号整数。</param>
  12721. </member>
  12722. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Single)">
  12723. <summary>将 4 字节浮点值写入当前流,并将流的位置提升 4 个字节。</summary>
  12724. <param name="value">要写入的 4 字节浮点值。</param>
  12725. </member>
  12726. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Double)">
  12727. <summary>将 8 字节浮点值写入当前流,并将流的位置提升 8 个字节。</summary>
  12728. <param name="value">要写入的 8 字节浮点值。</param>
  12729. </member>
  12730. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Decimal)">
  12731. <summary>将一个十进制值写入当前流,并将流位置提升十六个字节。</summary>
  12732. <param name="value">要写入的十进制值。</param>
  12733. </member>
  12734. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Char)">
  12735. <summary>将 Unicode 字符写入当前流,并根据所使用的 Encoding 和向流中写入的特定字符,提升流的当前位置。</summary>
  12736. <param name="ch">要写入的非代理项 Unicode 字符。</param>
  12737. </member>
  12738. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.Char[],System.Int32,System.Int32)">
  12739. <summary>将字符数组部分写入当前流,并根据所使用的 Encoding(可能还根据向流中写入的特定字符),提升流的当前位置。</summary>
  12740. <param name="chars">包含要写入的数据的字符数组。</param>
  12741. <param name="index">chars 中开始写入的起始点。</param>
  12742. <param name="count">要写入的字符数。</param>
  12743. </member>
  12744. <member name="M:NewLife.Serialization.BinaryGeneral.Write(System.String)">
  12745. <summary>写入字符串</summary>
  12746. <param name="value">要写入的值。</param>
  12747. </member>
  12748. <member name="M:NewLife.Serialization.BinaryGeneral.ReadByte">
  12749. <summary>从当前流中读取下一个字节,并使流的当前位置提升 1 个字节。</summary>
  12750. <returns></returns>
  12751. </member>
  12752. <member name="M:NewLife.Serialization.BinaryGeneral.ReadBytes(System.Int32)">
  12753. <summary>从当前流中将 count 个字节读入字节数组,如果count小于0,则先读取字节数组长度。</summary>
  12754. <param name="count">要读取的字节数。</param>
  12755. <returns></returns>
  12756. </member>
  12757. <member name="M:NewLife.Serialization.BinaryGeneral.ReadIntBytes(System.Int32)">
  12758. <summary>读取整数的字节数组,某些写入器(如二进制写入器)可能需要改变字节顺序</summary>
  12759. <param name="count">数量</param>
  12760. <returns></returns>
  12761. </member>
  12762. <member name="M:NewLife.Serialization.BinaryGeneral.ReadInt16">
  12763. <summary>从当前流中读取 2 字节有符号整数,并使流的当前位置提升 2 个字节。</summary>
  12764. <returns></returns>
  12765. </member>
  12766. <member name="M:NewLife.Serialization.BinaryGeneral.ReadInt32">
  12767. <summary>从当前流中读取 4 字节有符号整数,并使流的当前位置提升 4 个字节。</summary>
  12768. <returns></returns>
  12769. </member>
  12770. <member name="M:NewLife.Serialization.BinaryGeneral.ReadInt64">
  12771. <summary>从当前流中读取 8 字节有符号整数,并使流的当前位置向前移动 8 个字节。</summary>
  12772. <returns></returns>
  12773. </member>
  12774. <member name="M:NewLife.Serialization.BinaryGeneral.ReadUInt16">
  12775. <summary>使用 Little-Endian 编码从当前流中读取 2 字节无符号整数,并将流的位置提升 2 个字节。</summary>
  12776. <returns></returns>
  12777. </member>
  12778. <member name="M:NewLife.Serialization.BinaryGeneral.ReadUInt32">
  12779. <summary>从当前流中读取 4 字节无符号整数并使流的当前位置提升 4 个字节。</summary>
  12780. <returns></returns>
  12781. </member>
  12782. <member name="M:NewLife.Serialization.BinaryGeneral.ReadUInt64">
  12783. <summary>从当前流中读取 8 字节无符号整数并使流的当前位置提升 8 个字节。</summary>
  12784. <returns></returns>
  12785. </member>
  12786. <member name="M:NewLife.Serialization.BinaryGeneral.ReadSingle">
  12787. <summary>从当前流中读取 4 字节浮点值,并使流的当前位置提升 4 个字节。</summary>
  12788. <returns></returns>
  12789. </member>
  12790. <member name="M:NewLife.Serialization.BinaryGeneral.ReadDouble">
  12791. <summary>从当前流中读取 8 字节浮点值,并使流的当前位置提升 8 个字节。</summary>
  12792. <returns></returns>
  12793. </member>
  12794. <member name="M:NewLife.Serialization.BinaryGeneral.ReadChar">
  12795. <summary>从当前流中读取下一个字符,并根据所使用的 Encoding 和从流中读取的特定字符,提升流的当前位置。</summary>
  12796. <returns></returns>
  12797. </member>
  12798. <member name="M:NewLife.Serialization.BinaryGeneral.ReadString">
  12799. <summary>从当前流中读取一个字符串。字符串有长度前缀,一次 7 位地被编码为整数。</summary>
  12800. <returns></returns>
  12801. </member>
  12802. <member name="M:NewLife.Serialization.BinaryGeneral.ReadDecimal">
  12803. <summary>从当前流中读取十进制数值,并将该流的当前位置提升十六个字节。</summary>
  12804. <returns></returns>
  12805. </member>
  12806. <member name="M:NewLife.Serialization.BinaryGeneral.ReadEncodedInt16">
  12807. <summary>以压缩格式读取16位整数</summary>
  12808. <returns></returns>
  12809. </member>
  12810. <member name="M:NewLife.Serialization.BinaryGeneral.ReadEncodedInt32">
  12811. <summary>以压缩格式读取32位整数</summary>
  12812. <returns></returns>
  12813. </member>
  12814. <member name="M:NewLife.Serialization.BinaryGeneral.ReadEncodedInt64">
  12815. <summary>以压缩格式读取64位整数</summary>
  12816. <returns></returns>
  12817. </member>
  12818. <member name="M:NewLife.Serialization.BinaryGeneral.WriteEncoded(System.Int16)">
  12819. <summary>
  12820. 以7位压缩格式写入16位整数,小于7位用1个字节,小于14位用2个字节。
  12821. 由每次写入的一个字节的第一位标记后面的字节是否还是当前数据,所以每个字节实际可利用存储空间只有后7位。
  12822. </summary>
  12823. <param name="value">数值</param>
  12824. <returns>实际写入字节数</returns>
  12825. </member>
  12826. <member name="M:NewLife.Serialization.BinaryGeneral.WriteEncoded(System.Int32)">
  12827. <summary>
  12828. 以7位压缩格式写入32位整数,小于7位用1个字节,小于14位用2个字节。
  12829. 由每次写入的一个字节的第一位标记后面的字节是否还是当前数据,所以每个字节实际可利用存储空间只有后7位。
  12830. </summary>
  12831. <param name="value">数值</param>
  12832. <returns>实际写入字节数</returns>
  12833. </member>
  12834. <member name="M:NewLife.Serialization.BinaryGeneral.WriteEncoded(System.Int64)">
  12835. <summary>
  12836. 以7位压缩格式写入64位整数,小于7位用1个字节,小于14位用2个字节。
  12837. 由每次写入的一个字节的第一位标记后面的字节是否还是当前数据,所以每个字节实际可利用存储空间只有后7位。
  12838. </summary>
  12839. <param name="value">数值</param>
  12840. <returns>实际写入字节数</returns>
  12841. </member>
  12842. <member name="T:NewLife.Serialization.BinaryList">
  12843. <summary>列表数据编码</summary>
  12844. </member>
  12845. <member name="M:NewLife.Serialization.BinaryList.#ctor">
  12846. <summary>初始化</summary>
  12847. </member>
  12848. <member name="M:NewLife.Serialization.BinaryList.Write(System.Object,System.Type)">
  12849. <summary>写入</summary>
  12850. <param name="value"></param>
  12851. <param name="type"></param>
  12852. <returns></returns>
  12853. </member>
  12854. <member name="M:NewLife.Serialization.BinaryList.TryRead(System.Type,System.Object@)">
  12855. <summary>读取</summary>
  12856. <param name="type"></param>
  12857. <param name="value"></param>
  12858. <returns></returns>
  12859. </member>
  12860. <member name="T:NewLife.Serialization.BinaryNormal">
  12861. <summary>常用类型编码</summary>
  12862. </member>
  12863. <member name="M:NewLife.Serialization.BinaryNormal.#ctor">
  12864. <summary>初始化</summary>
  12865. </member>
  12866. <member name="M:NewLife.Serialization.BinaryNormal.Write(System.Object,System.Type)">
  12867. <summary>写入</summary>
  12868. <param name="value"></param>
  12869. <param name="type"></param>
  12870. <returns></returns>
  12871. </member>
  12872. <member name="M:NewLife.Serialization.BinaryNormal.Write(System.Byte[],System.Int32)">
  12873. <summary>写入字节数组,自动计算长度</summary>
  12874. <param name="buffer">缓冲区</param>
  12875. <param name="count">数量</param>
  12876. </member>
  12877. <member name="M:NewLife.Serialization.BinaryNormal.TryRead(System.Type,System.Object@)">
  12878. <summary>读取</summary>
  12879. <param name="type"></param>
  12880. <param name="value"></param>
  12881. <returns></returns>
  12882. </member>
  12883. <member name="M:NewLife.Serialization.BinaryNormal.ReadBytes(System.Int32)">
  12884. <summary>从当前流中将 count 个字节读入字节数组,如果count小于0,则先读取字节数组长度。</summary>
  12885. <param name="count">要读取的字节数。</param>
  12886. <returns></returns>
  12887. </member>
  12888. <member name="M:NewLife.Serialization.BinaryNormal.ReadChars(System.Int32)">
  12889. <summary>从当前流中读取 count 个字符,以字符数组的形式返回数据,并根据所使用的 Encoding 和从流中读取的特定字符,提升当前位置。</summary>
  12890. <param name="count">要读取的字符数。</param>
  12891. <returns></returns>
  12892. </member>
  12893. <member name="T:NewLife.Serialization.FieldSizeAttribute">
  12894. <summary>字段大小特性。</summary>
  12895. <remarks>
  12896. 可以通过Size指定字符串或数组的固有大小,为0表示自动计算;
  12897. 也可以通过指定参考字段ReferenceName,然后从其中获取大小。
  12898. 支持_Header._Questions形式的多层次引用字段。
  12899. 支持针对单个成员使用多个FieldSize特性,各自指定不同Version版本,以支持不同版本协议的序列化。
  12900. 例如JT/T808协议,2011/2019版的相同字段使用不同长度。
  12901. </remarks>
  12902. </member>
  12903. <member name="P:NewLife.Serialization.FieldSizeAttribute.Size">
  12904. <summary>大小。使用<see cref="P:NewLife.Serialization.FieldSizeAttribute.ReferenceName"/>时,作为偏移量;0表示自动计算大小</summary>
  12905. </member>
  12906. <member name="P:NewLife.Serialization.FieldSizeAttribute.SizeWidth">
  12907. <summary>大小宽度。特定个数的字节表示长度,自动计算时(Size=0)使用,可选0/1/2/4</summary>
  12908. </member>
  12909. <member name="P:NewLife.Serialization.FieldSizeAttribute.ReferenceName">
  12910. <summary>参考大小字段名,其中存储了实际大小,使用时获取</summary>
  12911. </member>
  12912. <member name="P:NewLife.Serialization.FieldSizeAttribute.Version">
  12913. <summary>协议版本。用于支持多版本协议序列化。例如JT/T808的2011/2019</summary>
  12914. </member>
  12915. <member name="M:NewLife.Serialization.FieldSizeAttribute.#ctor(System.Int32)">
  12916. <summary>通过Size指定字符串或数组的固有大小,为0表示自动计算</summary>
  12917. <param name="size"></param>
  12918. </member>
  12919. <member name="M:NewLife.Serialization.FieldSizeAttribute.#ctor(System.String)">
  12920. <summary>指定参考字段ReferenceName,然后从其中获取大小</summary>
  12921. <param name="referenceName"></param>
  12922. </member>
  12923. <member name="M:NewLife.Serialization.FieldSizeAttribute.#ctor(System.String,System.Int32)">
  12924. <summary>指定参考字段ReferenceName,然后从其中获取大小</summary>
  12925. <param name="referenceName"></param>
  12926. <param name="size">在参考字段值基础上的增量,可以是正数负数</param>
  12927. </member>
  12928. <member name="M:NewLife.Serialization.FieldSizeAttribute.#ctor(System.Int32,System.String)">
  12929. <summary>指定大小,指定协议版本,用于支持多版本协议序列化</summary>
  12930. <param name="size"></param>
  12931. <param name="version"></param>
  12932. </member>
  12933. <member name="M:NewLife.Serialization.FieldSizeAttribute.FindReference(System.Object,System.Reflection.MemberInfo,System.Object@)">
  12934. <summary>找到所引用的参考字段</summary>
  12935. <param name="target">目标对象</param>
  12936. <param name="member">目标对象的成员</param>
  12937. <param name="value">数值</param>
  12938. <returns></returns>
  12939. </member>
  12940. <member name="M:NewLife.Serialization.FieldSizeAttribute.SetReferenceSize(System.Object,System.Reflection.MemberInfo,System.Text.Encoding)">
  12941. <summary>设置目标对象的引用大小值</summary>
  12942. <param name="target">目标对象</param>
  12943. <param name="member"></param>
  12944. <param name="encoding"></param>
  12945. </member>
  12946. <member name="M:NewLife.Serialization.FieldSizeAttribute.TryGetReferenceSize(System.Object,System.Reflection.MemberInfo,System.Int32@)">
  12947. <summary>获取目标对象的引用大小值</summary>
  12948. <param name="target">目标对象</param>
  12949. <param name="member"></param>
  12950. <param name="size"></param>
  12951. <returns></returns>
  12952. </member>
  12953. <member name="T:NewLife.Serialization.IBinary">
  12954. <summary>二进制序列化接口</summary>
  12955. </member>
  12956. <member name="P:NewLife.Serialization.IBinary.EncodeInt">
  12957. <summary>编码整数</summary>
  12958. </member>
  12959. <member name="P:NewLife.Serialization.IBinary.IsLittleEndian">
  12960. <summary>小端字节序。默认false大端</summary>
  12961. </member>
  12962. <member name="P:NewLife.Serialization.IBinary.IgnoreMembers">
  12963. <summary>要忽略的成员</summary>
  12964. </member>
  12965. <member name="P:NewLife.Serialization.IBinary.Handlers">
  12966. <summary>处理器列表</summary>
  12967. </member>
  12968. <member name="M:NewLife.Serialization.IBinary.Write(System.Byte)">
  12969. <summary>写入字节</summary>
  12970. <param name="value"></param>
  12971. </member>
  12972. <member name="M:NewLife.Serialization.IBinary.Write(System.Byte[],System.Int32,System.Int32)">
  12973. <summary>将字节数组部分写入当前流,不写入数组长度。</summary>
  12974. <param name="buffer">包含要写入的数据的字节数组。</param>
  12975. <param name="offset">buffer 中开始写入的起始点。</param>
  12976. <param name="count">要写入的字节数。</param>
  12977. </member>
  12978. <member name="M:NewLife.Serialization.IBinary.WriteSize(System.Int32)">
  12979. <summary>写入大小</summary>
  12980. <param name="size">要写入的大小值</param>
  12981. <returns>返回特性指定的固定长度,如果没有则返回-1</returns>
  12982. </member>
  12983. <member name="M:NewLife.Serialization.IBinary.ReadByte">
  12984. <summary>读取字节</summary>
  12985. <returns></returns>
  12986. </member>
  12987. <member name="M:NewLife.Serialization.IBinary.ReadBytes(System.Int32)">
  12988. <summary>从当前流中将 count 个字节读入字节数组</summary>
  12989. <param name="count">要读取的字节数。</param>
  12990. <returns></returns>
  12991. </member>
  12992. <member name="M:NewLife.Serialization.IBinary.ReadSize">
  12993. <summary>读取大小</summary>
  12994. <returns></returns>
  12995. </member>
  12996. <member name="T:NewLife.Serialization.IBinaryHandler">
  12997. <summary>二进制读写处理器接口</summary>
  12998. </member>
  12999. <member name="T:NewLife.Serialization.BinaryHandlerBase">
  13000. <summary>二进制读写处理器基类</summary>
  13001. </member>
  13002. <member name="T:NewLife.Serialization.AccessorAttribute">
  13003. <summary>成员访问特性。使用自定义逻辑序列化成员</summary>
  13004. </member>
  13005. <member name="M:NewLife.Serialization.AccessorAttribute.Read(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13006. <summary>从数据流中读取消息</summary>
  13007. <param name="formatter">序列化</param>
  13008. <param name="context">上下文</param>
  13009. <returns>是否成功</returns>
  13010. </member>
  13011. <member name="M:NewLife.Serialization.AccessorAttribute.Write(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13012. <summary>把消息写入到数据流中</summary>
  13013. <param name="formatter">序列化</param>
  13014. <param name="context">上下文</param>
  13015. </member>
  13016. <member name="T:NewLife.Serialization.AccessorContext">
  13017. <summary>序列化访问上下文</summary>
  13018. </member>
  13019. <member name="P:NewLife.Serialization.AccessorContext.Host">
  13020. <summary>宿主</summary>
  13021. </member>
  13022. <member name="P:NewLife.Serialization.AccessorContext.Type">
  13023. <summary>对象类型</summary>
  13024. </member>
  13025. <member name="P:NewLife.Serialization.AccessorContext.Value">
  13026. <summary>目标对象</summary>
  13027. </member>
  13028. <member name="P:NewLife.Serialization.AccessorContext.Member">
  13029. <summary>成员</summary>
  13030. </member>
  13031. <member name="P:NewLife.Serialization.AccessorContext.UserState">
  13032. <summary>用户对象。存放序列化过程中使用的用户自定义对象</summary>
  13033. </member>
  13034. <member name="T:NewLife.Serialization.FixedStringAttribute">
  13035. <summary>定长字符串序列化特性</summary>
  13036. </member>
  13037. <member name="P:NewLife.Serialization.FixedStringAttribute.Length">
  13038. <summary>长度</summary>
  13039. </member>
  13040. <member name="M:NewLife.Serialization.FixedStringAttribute.#ctor(System.Int32)">
  13041. <summary>定长字符串序列化</summary>
  13042. <param name="length"></param>
  13043. </member>
  13044. <member name="M:NewLife.Serialization.FixedStringAttribute.Read(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13045. <summary>从数据流中读取消息</summary>
  13046. <param name="formatter">序列化</param>
  13047. <param name="context">上下文</param>
  13048. <returns>是否成功</returns>
  13049. </member>
  13050. <member name="M:NewLife.Serialization.FixedStringAttribute.Write(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13051. <summary>把消息写入到数据流中</summary>
  13052. <param name="formatter">序列化</param>
  13053. <param name="context">上下文</param>
  13054. </member>
  13055. <member name="T:NewLife.Serialization.FullStringAttribute">
  13056. <summary>完全字符串序列化特性。指示数据流剩下部分全部作为字符串读写</summary>
  13057. </member>
  13058. <member name="M:NewLife.Serialization.FullStringAttribute.Read(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13059. <summary>从数据流中读取消息</summary>
  13060. <param name="formatter">序列化</param>
  13061. <param name="context">上下文</param>
  13062. <returns>是否成功</returns>
  13063. </member>
  13064. <member name="M:NewLife.Serialization.FullStringAttribute.Write(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13065. <summary>把消息写入到数据流中</summary>
  13066. <param name="formatter">序列化</param>
  13067. <param name="context">上下文</param>
  13068. </member>
  13069. <member name="T:NewLife.Serialization.IAccessor">
  13070. <summary>数据流序列化访问器。接口实现者可以在这里完全自定义序列化行为</summary>
  13071. </member>
  13072. <member name="M:NewLife.Serialization.IAccessor.Read(System.IO.Stream,System.Object)">
  13073. <summary>从数据流中读取消息</summary>
  13074. <param name="stream">数据流</param>
  13075. <param name="context">上下文</param>
  13076. <returns>是否成功</returns>
  13077. </member>
  13078. <member name="M:NewLife.Serialization.IAccessor.Write(System.IO.Stream,System.Object)">
  13079. <summary>把消息写入到数据流中</summary>
  13080. <param name="stream">数据流</param>
  13081. <param name="context">上下文</param>
  13082. <returns>是否成功</returns>
  13083. </member>
  13084. <member name="T:NewLife.Serialization.IAccessor`1">
  13085. <summary>自定义数据序列化访问器。数据T支持Span/Memory等,接口实现者可以在这里完全自定义序列化行为</summary>
  13086. </member>
  13087. <member name="M:NewLife.Serialization.IAccessor`1.Read(`0,System.Object)">
  13088. <summary>从数据中读取消息</summary>
  13089. <param name="data">数据</param>
  13090. <param name="context">上下文</param>
  13091. <returns>是否成功</returns>
  13092. </member>
  13093. <member name="M:NewLife.Serialization.IAccessor`1.Write(`0,System.Object)">
  13094. <summary>把消息写入到数据中</summary>
  13095. <param name="data">数据</param>
  13096. <param name="context">上下文</param>
  13097. <returns>是否成功</returns>
  13098. </member>
  13099. <member name="T:NewLife.Serialization.AccessorHelper">
  13100. <summary>访问器助手</summary>
  13101. </member>
  13102. <member name="M:NewLife.Serialization.AccessorHelper.ToPacket(NewLife.Serialization.IAccessor,System.Object)">
  13103. <summary>支持访问器的对象转数据包</summary>
  13104. <param name="accessor">访问器</param>
  13105. <param name="context">上下文</param>
  13106. <returns></returns>
  13107. </member>
  13108. <member name="M:NewLife.Serialization.AccessorHelper.AccessorRead(System.Type,NewLife.Data.Packet,System.Object)">
  13109. <summary>通过访问器读取</summary>
  13110. <param name="type"></param>
  13111. <param name="pk"></param>
  13112. <param name="context">上下文</param>
  13113. <returns></returns>
  13114. </member>
  13115. <member name="M:NewLife.Serialization.AccessorHelper.ToEntity``1(NewLife.Data.Packet,System.Object)">
  13116. <summary>通过访问器转换数据包为实体对象</summary>
  13117. <typeparam name="T"></typeparam>
  13118. <param name="pk"></param>
  13119. <param name="context"></param>
  13120. <returns></returns>
  13121. </member>
  13122. <member name="T:NewLife.Serialization.IFormatterX">
  13123. <summary>序列化接口</summary>
  13124. </member>
  13125. <member name="P:NewLife.Serialization.IFormatterX.Stream">
  13126. <summary>数据流</summary>
  13127. </member>
  13128. <member name="P:NewLife.Serialization.IFormatterX.Hosts">
  13129. <summary>主对象</summary>
  13130. </member>
  13131. <member name="P:NewLife.Serialization.IFormatterX.Member">
  13132. <summary>成员</summary>
  13133. </member>
  13134. <member name="P:NewLife.Serialization.IFormatterX.Encoding">
  13135. <summary>字符串编码,默认utf-8</summary>
  13136. </member>
  13137. <member name="P:NewLife.Serialization.IFormatterX.UseProperty">
  13138. <summary>序列化属性而不是字段。默认true</summary>
  13139. </member>
  13140. <member name="P:NewLife.Serialization.IFormatterX.UserState">
  13141. <summary>用户对象。存放序列化过程中使用的用户自定义对象</summary>
  13142. </member>
  13143. <member name="M:NewLife.Serialization.IFormatterX.Write(System.Object,System.Type)">
  13144. <summary>写入一个对象</summary>
  13145. <param name="value">目标对象</param>
  13146. <param name="type">类型</param>
  13147. <returns></returns>
  13148. </member>
  13149. <member name="M:NewLife.Serialization.IFormatterX.Read(System.Type)">
  13150. <summary>读取指定类型对象</summary>
  13151. <param name="type"></param>
  13152. <returns></returns>
  13153. </member>
  13154. <member name="M:NewLife.Serialization.IFormatterX.Read``1">
  13155. <summary>读取指定类型对象</summary>
  13156. <typeparam name="T"></typeparam>
  13157. <returns></returns>
  13158. </member>
  13159. <member name="M:NewLife.Serialization.IFormatterX.TryRead(System.Type,System.Object@)">
  13160. <summary>尝试读取指定类型对象</summary>
  13161. <param name="type"></param>
  13162. <param name="value"></param>
  13163. <returns></returns>
  13164. </member>
  13165. <member name="P:NewLife.Serialization.IFormatterX.Log">
  13166. <summary>日志提供者</summary>
  13167. </member>
  13168. <member name="T:NewLife.Serialization.IHandler`1">
  13169. <summary>序列化处理器接口</summary>
  13170. <typeparam name="THost"></typeparam>
  13171. </member>
  13172. <member name="P:NewLife.Serialization.IHandler`1.Host">
  13173. <summary>宿主读写器</summary>
  13174. </member>
  13175. <member name="P:NewLife.Serialization.IHandler`1.Priority">
  13176. <summary>优先级</summary>
  13177. </member>
  13178. <member name="M:NewLife.Serialization.IHandler`1.Write(System.Object,System.Type)">
  13179. <summary>写入一个对象</summary>
  13180. <param name="value">目标对象</param>
  13181. <param name="type">类型</param>
  13182. <returns></returns>
  13183. </member>
  13184. <member name="M:NewLife.Serialization.IHandler`1.TryRead(System.Type,System.Object@)">
  13185. <summary>尝试读取指定类型对象</summary>
  13186. <param name="type"></param>
  13187. <param name="value"></param>
  13188. <returns></returns>
  13189. </member>
  13190. <member name="T:NewLife.Serialization.FormatterBase">
  13191. <summary>序列化接口</summary>
  13192. </member>
  13193. <member name="P:NewLife.Serialization.FormatterBase.Stream">
  13194. <summary>数据流。默认实例化一个内存数据流</summary>
  13195. </member>
  13196. <member name="P:NewLife.Serialization.FormatterBase.Hosts">
  13197. <summary>主对象</summary>
  13198. </member>
  13199. <member name="P:NewLife.Serialization.FormatterBase.Member">
  13200. <summary>成员</summary>
  13201. </member>
  13202. <member name="P:NewLife.Serialization.FormatterBase.Encoding">
  13203. <summary>字符串编码,默认utf-8</summary>
  13204. </member>
  13205. <member name="P:NewLife.Serialization.FormatterBase.UseProperty">
  13206. <summary>序列化属性而不是字段。默认true</summary>
  13207. </member>
  13208. <member name="P:NewLife.Serialization.FormatterBase.UserState">
  13209. <summary>用户对象。存放序列化过程中使用的用户自定义对象</summary>
  13210. </member>
  13211. <member name="M:NewLife.Serialization.FormatterBase.GetBytes">
  13212. <summary>获取流里面的数据</summary>
  13213. <returns></returns>
  13214. </member>
  13215. <member name="M:NewLife.Serialization.FormatterBase.GetPacket">
  13216. <summary>获取流里面的数据包</summary>
  13217. <returns></returns>
  13218. </member>
  13219. <member name="P:NewLife.Serialization.FormatterBase.Log">
  13220. <summary>日志提供者</summary>
  13221. </member>
  13222. <member name="M:NewLife.Serialization.FormatterBase.WriteLog(System.String,System.Object[])">
  13223. <summary>输出日志</summary>
  13224. <param name="format"></param>
  13225. <param name="args"></param>
  13226. </member>
  13227. <member name="T:NewLife.Serialization.HandlerBase`2">
  13228. <summary>读写处理器基类</summary>
  13229. </member>
  13230. <member name="P:NewLife.Serialization.HandlerBase`2.Host">
  13231. <summary>宿主读写器</summary>
  13232. </member>
  13233. <member name="P:NewLife.Serialization.HandlerBase`2.Priority">
  13234. <summary>优先级</summary>
  13235. </member>
  13236. <member name="M:NewLife.Serialization.HandlerBase`2.Write(System.Object,System.Type)">
  13237. <summary>写入一个对象</summary>
  13238. <param name="value">目标对象</param>
  13239. <param name="type">类型</param>
  13240. <returns></returns>
  13241. </member>
  13242. <member name="M:NewLife.Serialization.HandlerBase`2.TryRead(System.Type,System.Object@)">
  13243. <summary>尝试读取指定类型对象</summary>
  13244. <param name="type"></param>
  13245. <param name="value"></param>
  13246. <returns></returns>
  13247. </member>
  13248. <member name="M:NewLife.Serialization.HandlerBase`2.WriteLog(System.String,System.Object[])">
  13249. <summary>输出日志</summary>
  13250. <param name="format"></param>
  13251. <param name="args"></param>
  13252. </member>
  13253. <member name="T:NewLife.Serialization.Interface.IMemberAccessor">
  13254. <summary>成员序列化访问器。接口实现者可以在这里完全自定义序列化行为</summary>
  13255. </member>
  13256. <member name="M:NewLife.Serialization.Interface.IMemberAccessor.Read(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13257. <summary>从数据流中读取消息</summary>
  13258. <param name="formatter">序列化</param>
  13259. <param name="context">上下文</param>
  13260. <returns>是否成功</returns>
  13261. </member>
  13262. <member name="M:NewLife.Serialization.Interface.IMemberAccessor.Write(NewLife.Serialization.IFormatterX,NewLife.Serialization.AccessorContext)">
  13263. <summary>把消息写入到数据流中</summary>
  13264. <param name="formatter">序列化</param>
  13265. <param name="context">上下文</param>
  13266. </member>
  13267. <member name="T:NewLife.Serialization.IJson">
  13268. <summary>IJson序列化接口</summary>
  13269. </member>
  13270. <member name="P:NewLife.Serialization.IJson.Indented">
  13271. <summary>是否缩进</summary>
  13272. </member>
  13273. <member name="P:NewLife.Serialization.IJson.Handlers">
  13274. <summary>处理器列表</summary>
  13275. </member>
  13276. <member name="M:NewLife.Serialization.IJson.Write(System.String)">
  13277. <summary>写入字符串</summary>
  13278. <param name="value"></param>
  13279. </member>
  13280. <member name="M:NewLife.Serialization.IJson.Write(System.Text.StringBuilder,System.Object)">
  13281. <summary>写入</summary>
  13282. <param name="sb"></param>
  13283. <param name="value"></param>
  13284. </member>
  13285. <member name="M:NewLife.Serialization.IJson.Read(System.String)">
  13286. <summary>读取</summary>
  13287. <param name="value"></param>
  13288. <returns></returns>
  13289. </member>
  13290. <member name="M:NewLife.Serialization.IJson.ReadByte">
  13291. <summary>读取字节</summary>
  13292. <returns></returns>
  13293. </member>
  13294. <member name="T:NewLife.Serialization.IJsonHandler">
  13295. <summary>IJson读写处理器接口</summary>
  13296. </member>
  13297. <member name="M:NewLife.Serialization.IJsonHandler.GetString(System.Object)">
  13298. <summary>获取对象的Json字符串表示形式。</summary>
  13299. <param name="value"></param>
  13300. <returns>返回null表示不支持</returns>
  13301. </member>
  13302. <member name="T:NewLife.Serialization.JsonHandlerBase">
  13303. <summary>IJson读写处理器基类</summary>
  13304. </member>
  13305. <member name="M:NewLife.Serialization.JsonHandlerBase.GetString(System.Object)">
  13306. <summary>获取对象的Json字符串表示形式。</summary>
  13307. <param name="value"></param>
  13308. <returns>返回null表示不支持</returns>
  13309. </member>
  13310. <member name="M:NewLife.Serialization.JsonHandlerBase.Write(System.Object,System.Type)">
  13311. <summary>写入一个对象</summary>
  13312. <param name="value">目标对象</param>
  13313. <param name="type">类型</param>
  13314. <returns>是否处理成功</returns>
  13315. </member>
  13316. <member name="T:NewLife.Serialization.IJsonHost">
  13317. <summary>Json序列化接口</summary>
  13318. <remarks>
  13319. 文档 https://newlifex.com/core/json
  13320. </remarks>
  13321. </member>
  13322. <member name="M:NewLife.Serialization.IJsonHost.Write(System.Object,System.Boolean,System.Boolean,System.Boolean)">
  13323. <summary>写入对象,得到Json字符串</summary>
  13324. <param name="value"></param>
  13325. <param name="indented">是否缩进。默认false</param>
  13326. <param name="nullValue">是否写空值。默认true</param>
  13327. <param name="camelCase">是否驼峰命名。默认false</param>
  13328. <returns></returns>
  13329. </member>
  13330. <member name="M:NewLife.Serialization.IJsonHost.Write(System.Object,NewLife.Serialization.JsonOptions)">
  13331. <summary>写入对象,得到Json字符串</summary>
  13332. <param name="value"></param>
  13333. <param name="jsonOptions">序列化选项</param>
  13334. <returns></returns>
  13335. </member>
  13336. <member name="M:NewLife.Serialization.IJsonHost.Read(System.String,System.Type)">
  13337. <summary>从Json字符串中读取对象</summary>
  13338. <param name="json"></param>
  13339. <param name="type"></param>
  13340. <returns></returns>
  13341. </member>
  13342. <member name="M:NewLife.Serialization.IJsonHost.Convert(System.Object,System.Type)">
  13343. <summary>类型转换</summary>
  13344. <param name="obj"></param>
  13345. <param name="targetType"></param>
  13346. <returns></returns>
  13347. </member>
  13348. <member name="M:NewLife.Serialization.IJsonHost.Decode(System.String)">
  13349. <summary>分析Json字符串得到字典</summary>
  13350. <param name="json"></param>
  13351. <returns></returns>
  13352. </member>
  13353. <member name="T:NewLife.Serialization.JsonHelper">
  13354. <summary>Json助手</summary>
  13355. <remarks>
  13356. 文档 https://newlifex.com/core/json
  13357. </remarks>
  13358. </member>
  13359. <member name="P:NewLife.Serialization.JsonHelper.Default">
  13360. <summary>默认实现</summary>
  13361. </member>
  13362. <member name="M:NewLife.Serialization.JsonHelper.ToJson(System.Object,System.Boolean)">
  13363. <summary>写入对象,得到Json字符串</summary>
  13364. <param name="value"></param>
  13365. <param name="indented">是否缩进</param>
  13366. <returns></returns>
  13367. </member>
  13368. <member name="M:NewLife.Serialization.JsonHelper.ToJson(System.Object,System.Boolean,System.Boolean,System.Boolean)">
  13369. <summary>写入对象,得到Json字符串</summary>
  13370. <param name="value"></param>
  13371. <param name="indented">是否换行缩进。默认false</param>
  13372. <param name="nullValue">是否写空值。默认true</param>
  13373. <param name="camelCase">是否驼峰命名。默认false</param>
  13374. <returns></returns>
  13375. </member>
  13376. <member name="M:NewLife.Serialization.JsonHelper.ToJson(System.Object,NewLife.Serialization.JsonOptions)">
  13377. <summary>写入对象,得到Json字符串</summary>
  13378. <param name="value"></param>
  13379. <param name="jsonOptions">序列化选项</param>
  13380. <returns></returns>
  13381. </member>
  13382. <member name="M:NewLife.Serialization.JsonHelper.ToJsonEntity(System.String,System.Type)">
  13383. <summary>从Json字符串中读取对象</summary>
  13384. <param name="json"></param>
  13385. <param name="type"></param>
  13386. <returns></returns>
  13387. </member>
  13388. <member name="M:NewLife.Serialization.JsonHelper.ToJsonEntity``1(System.String)">
  13389. <summary>从Json字符串中读取对象</summary>
  13390. <typeparam name="T"></typeparam>
  13391. <param name="json"></param>
  13392. <returns></returns>
  13393. </member>
  13394. <member name="M:NewLife.Serialization.JsonHelper.Format(System.String)">
  13395. <summary>格式化Json文本</summary>
  13396. <param name="json"></param>
  13397. <returns></returns>
  13398. </member>
  13399. <member name="M:NewLife.Serialization.JsonHelper.Convert``1(System.Object)">
  13400. <summary>Json类型对象转换实体类</summary>
  13401. <typeparam name="T"></typeparam>
  13402. <returns></returns>
  13403. </member>
  13404. <member name="M:NewLife.Serialization.JsonHelper.DecodeJson(System.String)">
  13405. <summary>分析Json字符串得到字典</summary>
  13406. <param name="json"></param>
  13407. <returns></returns>
  13408. </member>
  13409. <member name="T:NewLife.Serialization.FastJson">
  13410. <summary>轻量级FastJson序列化</summary>
  13411. </member>
  13412. <member name="M:NewLife.Serialization.FastJson.Write(System.Object,System.Boolean,System.Boolean,System.Boolean)">
  13413. <summary>写入对象,得到Json字符串</summary>
  13414. <param name="value"></param>
  13415. <param name="indented">是否缩进。默认false</param>
  13416. <param name="nullValue">是否写空值。默认true</param>
  13417. <param name="camelCase">是否驼峰命名。默认false</param>
  13418. <returns></returns>
  13419. </member>
  13420. <member name="M:NewLife.Serialization.FastJson.Write(System.Object,NewLife.Serialization.JsonOptions)">
  13421. <summary>写入对象,得到Json字符串</summary>
  13422. <param name="value"></param>
  13423. <param name="jsonOptions">序列化选项</param>
  13424. <returns></returns>
  13425. </member>
  13426. <member name="M:NewLife.Serialization.FastJson.Read(System.String,System.Type)">
  13427. <summary>从Json字符串中读取对象</summary>
  13428. <param name="json"></param>
  13429. <param name="type"></param>
  13430. <returns></returns>
  13431. </member>
  13432. <member name="M:NewLife.Serialization.FastJson.Convert(System.Object,System.Type)">
  13433. <summary>类型转换</summary>
  13434. <param name="obj"></param>
  13435. <param name="targetType"></param>
  13436. <returns></returns>
  13437. </member>
  13438. <member name="M:NewLife.Serialization.FastJson.Decode(System.String)">
  13439. <summary>分析Json字符串得到字典</summary>
  13440. <param name="json"></param>
  13441. <returns></returns>
  13442. </member>
  13443. <member name="T:NewLife.Serialization.Json">
  13444. <summary>Json序列化</summary>
  13445. <remarks>
  13446. 文档 https://newlifex.com/core/json
  13447. </remarks>
  13448. </member>
  13449. <member name="P:NewLife.Serialization.Json.Indented">
  13450. <summary>是否缩进</summary>
  13451. </member>
  13452. <member name="P:NewLife.Serialization.Json.Handlers">
  13453. <summary>处理器列表</summary>
  13454. </member>
  13455. <member name="M:NewLife.Serialization.Json.#ctor">
  13456. <summary>实例化</summary>
  13457. </member>
  13458. <member name="M:NewLife.Serialization.Json.AddHandler(NewLife.Serialization.IJsonHandler)">
  13459. <summary>添加处理器</summary>
  13460. <param name="handler"></param>
  13461. <returns></returns>
  13462. </member>
  13463. <member name="M:NewLife.Serialization.Json.AddHandler``1(System.Int32)">
  13464. <summary>添加处理器</summary>
  13465. <typeparam name="THandler"></typeparam>
  13466. <param name="priority"></param>
  13467. <returns></returns>
  13468. </member>
  13469. <member name="M:NewLife.Serialization.Json.GetHandler``1">
  13470. <summary>获取处理器</summary>
  13471. <typeparam name="T"></typeparam>
  13472. <returns></returns>
  13473. </member>
  13474. <member name="M:NewLife.Serialization.Json.Write(System.Object,System.Type)">
  13475. <summary>写入一个对象</summary>
  13476. <param name="value">目标对象</param>
  13477. <param name="type">类型</param>
  13478. <returns></returns>
  13479. </member>
  13480. <member name="M:NewLife.Serialization.Json.Write(System.String)">
  13481. <summary>写入字符串</summary>
  13482. <param name="value"></param>
  13483. </member>
  13484. <member name="M:NewLife.Serialization.Json.Write(System.Text.StringBuilder,System.Object)">
  13485. <summary>写入</summary>
  13486. <param name="sb"></param>
  13487. <param name="value"></param>
  13488. </member>
  13489. <member name="M:NewLife.Serialization.Json.Read(System.Type)">
  13490. <summary>读取指定类型对象</summary>
  13491. <param name="type"></param>
  13492. <returns></returns>
  13493. </member>
  13494. <member name="M:NewLife.Serialization.Json.Read``1">
  13495. <summary>读取指定类型对象</summary>
  13496. <typeparam name="T"></typeparam>
  13497. <returns></returns>
  13498. </member>
  13499. <member name="M:NewLife.Serialization.Json.TryRead(System.Type,System.Object@)">
  13500. <summary>尝试读取指定类型对象</summary>
  13501. <param name="type"></param>
  13502. <param name="value"></param>
  13503. <returns></returns>
  13504. </member>
  13505. <member name="M:NewLife.Serialization.Json.Read(System.String)">
  13506. <summary>读取</summary>
  13507. <param name="value"></param>
  13508. <returns></returns>
  13509. </member>
  13510. <member name="M:NewLife.Serialization.Json.ReadByte">
  13511. <summary>读取字节</summary>
  13512. <returns></returns>
  13513. </member>
  13514. <member name="T:NewLife.Serialization.JsonArray">
  13515. <summary>列表数据编码</summary>
  13516. </member>
  13517. <member name="M:NewLife.Serialization.JsonArray.#ctor">
  13518. <summary>初始化</summary>
  13519. </member>
  13520. <member name="M:NewLife.Serialization.JsonArray.Write(System.Object,System.Type)">
  13521. <summary>写入</summary>
  13522. <param name="value"></param>
  13523. <param name="type"></param>
  13524. <returns></returns>
  13525. </member>
  13526. <member name="M:NewLife.Serialization.JsonArray.TryRead(System.Type,System.Object@)">
  13527. <summary>读取</summary>
  13528. <param name="type"></param>
  13529. <param name="value"></param>
  13530. <returns></returns>
  13531. </member>
  13532. <member name="T:NewLife.Serialization.JsonComposite">
  13533. <summary>复合对象处理器</summary>
  13534. </member>
  13535. <member name="P:NewLife.Serialization.JsonComposite.IgnoreMembers">
  13536. <summary>要忽略的成员</summary>
  13537. </member>
  13538. <member name="M:NewLife.Serialization.JsonComposite.#ctor">
  13539. <summary>实例化</summary>
  13540. </member>
  13541. <member name="M:NewLife.Serialization.JsonComposite.GetString(System.Object)">
  13542. <summary>获取对象的Json字符串表示形式。</summary>
  13543. <param name="value"></param>
  13544. <returns>返回null表示不支持</returns>
  13545. </member>
  13546. <member name="M:NewLife.Serialization.JsonComposite.Write(System.Object,System.Type)">
  13547. <summary>写入对象</summary>
  13548. <param name="value">目标对象</param>
  13549. <param name="type">类型</param>
  13550. <returns></returns>
  13551. </member>
  13552. <member name="M:NewLife.Serialization.JsonComposite.TryRead(System.Type,System.Object@)">
  13553. <summary>尝试读取指定类型对象</summary>
  13554. <param name="type"></param>
  13555. <param name="value"></param>
  13556. <returns></returns>
  13557. </member>
  13558. <member name="M:NewLife.Serialization.JsonComposite.GetMembers(System.Type,System.Boolean)">
  13559. <summary>获取成员</summary>
  13560. <param name="type"></param>
  13561. <param name="baseFirst"></param>
  13562. <returns></returns>
  13563. </member>
  13564. <member name="T:NewLife.Serialization.JsonDictionary">
  13565. <summary>Json序列化字典</summary>
  13566. </member>
  13567. <member name="M:NewLife.Serialization.JsonDictionary.#ctor">
  13568. <summary>初始化</summary>
  13569. </member>
  13570. <member name="M:NewLife.Serialization.JsonDictionary.Write(System.Object,System.Type)">
  13571. <summary>写入</summary>
  13572. <param name="value"></param>
  13573. <param name="type"></param>
  13574. <returns></returns>
  13575. </member>
  13576. <member name="M:NewLife.Serialization.JsonDictionary.TryRead(System.Type,System.Object@)">
  13577. <summary>读取</summary>
  13578. <param name="type"></param>
  13579. <param name="value"></param>
  13580. <returns></returns>
  13581. </member>
  13582. <member name="T:NewLife.Serialization.JsonGeneral">
  13583. <summary>Json基础类型处理器</summary>
  13584. </member>
  13585. <member name="M:NewLife.Serialization.JsonGeneral.#ctor">
  13586. <summary>实例化</summary>
  13587. </member>
  13588. <member name="M:NewLife.Serialization.JsonGeneral.GetString(System.Object)">
  13589. <summary>获取对象的Json字符串表示形式。</summary>
  13590. <param name="value"></param>
  13591. <returns>返回null表示不支持</returns>
  13592. </member>
  13593. <member name="M:NewLife.Serialization.JsonGeneral.TryRead(System.Type,System.Object@)">
  13594. <summary>尝试读取指定类型对象</summary>
  13595. <param name="type"></param>
  13596. <param name="value"></param>
  13597. <returns></returns>
  13598. </member>
  13599. <member name="T:NewLife.Serialization.JsonOptions">
  13600. <summary>Json序列化选项</summary>
  13601. </member>
  13602. <member name="P:NewLife.Serialization.JsonOptions.CamelCase">
  13603. <summary>使用驼峰命名。默认false</summary>
  13604. </member>
  13605. <member name="P:NewLife.Serialization.JsonOptions.IgnoreNullValues">
  13606. <summary>忽略空值。默认false</summary>
  13607. </member>
  13608. <member name="P:NewLife.Serialization.JsonOptions.IgnoreCycles">
  13609. <summary>忽略循环引用。遇到循环引用时写{},默认false</summary>
  13610. </member>
  13611. <member name="P:NewLife.Serialization.JsonOptions.WriteIndented">
  13612. <summary>缩进。默认false</summary>
  13613. </member>
  13614. <member name="T:NewLife.Serialization.JsonParser">
  13615. <summary>Json分析器</summary>
  13616. <remarks>
  13617. 文档 https://newlifex.com/core/json
  13618. </remarks>
  13619. </member>
  13620. <member name="T:NewLife.Serialization.JsonParser.Token">
  13621. <summary>标识符</summary>
  13622. </member>
  13623. <member name="F:NewLife.Serialization.JsonParser.Token.Curly_Open">
  13624. <summary>左大括号</summary>
  13625. </member>
  13626. <member name="F:NewLife.Serialization.JsonParser.Token.Curly_Close">
  13627. <summary>右大括号</summary>
  13628. </member>
  13629. <member name="F:NewLife.Serialization.JsonParser.Token.Squared_Open">
  13630. <summary>左方括号</summary>
  13631. </member>
  13632. <member name="F:NewLife.Serialization.JsonParser.Token.Squared_Close">
  13633. <summary>右方括号</summary>
  13634. </member>
  13635. <member name="F:NewLife.Serialization.JsonParser.Token.Colon">
  13636. <summary>冒号</summary>
  13637. </member>
  13638. <member name="F:NewLife.Serialization.JsonParser.Token.Comma">
  13639. <summary>逗号</summary>
  13640. </member>
  13641. <member name="F:NewLife.Serialization.JsonParser.Token.String">
  13642. <summary>字符串</summary>
  13643. </member>
  13644. <member name="F:NewLife.Serialization.JsonParser.Token.Number">
  13645. <summary>数字</summary>
  13646. </member>
  13647. <member name="F:NewLife.Serialization.JsonParser.Token.True">
  13648. <summary>布尔真</summary>
  13649. </member>
  13650. <member name="F:NewLife.Serialization.JsonParser.Token.False">
  13651. <summary>布尔真</summary>
  13652. </member>
  13653. <member name="F:NewLife.Serialization.JsonParser.Token.Comment">
  13654. <summary>单行注释</summary>
  13655. </member>
  13656. <member name="F:NewLife.Serialization.JsonParser.Token.Comment_Open">
  13657. <summary>多行注释开始</summary>
  13658. </member>
  13659. <member name="F:NewLife.Serialization.JsonParser.Token.Comment_Close">
  13660. <summary>多行注释结束</summary>
  13661. </member>
  13662. <member name="F:NewLife.Serialization.JsonParser.Token.Null">
  13663. <summary>空值</summary>
  13664. </member>
  13665. <member name="M:NewLife.Serialization.JsonParser.#ctor(System.String)">
  13666. <summary>实例化</summary>
  13667. <param name="json"></param>
  13668. </member>
  13669. <member name="M:NewLife.Serialization.JsonParser.Decode(System.String)">
  13670. <summary>解码</summary>
  13671. <param name="json"></param>
  13672. <returns></returns>
  13673. </member>
  13674. <member name="M:NewLife.Serialization.JsonParser.Decode">
  13675. <summary>解码</summary>
  13676. <returns></returns>
  13677. </member>
  13678. <member name="M:NewLife.Serialization.JsonParser.SkipToken">
  13679. <summary>读取一个Token</summary>
  13680. </member>
  13681. <member name="T:NewLife.Serialization.JsonReader">
  13682. <summary>Json读取器</summary>
  13683. <remarks>
  13684. 文档 https://newlifex.com/core/json
  13685. </remarks>
  13686. </member>
  13687. <member name="P:NewLife.Serialization.JsonReader.UseUTCDateTime">
  13688. <summary>是否使用UTC时间</summary>
  13689. </member>
  13690. <member name="P:NewLife.Serialization.JsonReader.Provider">
  13691. <summary>服务提供者</summary>
  13692. </member>
  13693. <member name="M:NewLife.Serialization.JsonReader.Read``1(System.String)">
  13694. <summary>读取Json到指定类型</summary>
  13695. <typeparam name="T"></typeparam>
  13696. <param name="json"></param>
  13697. <returns></returns>
  13698. </member>
  13699. <member name="M:NewLife.Serialization.JsonReader.Read(System.String,System.Type)">
  13700. <summary>读取Json到指定类型</summary>
  13701. <param name="json"></param>
  13702. <param name="type"></param>
  13703. <returns></returns>
  13704. </member>
  13705. <member name="M:NewLife.Serialization.JsonReader.ToObject(System.Object,System.Type,System.Object)">
  13706. <summary>Json字典或列表转为具体类型对象</summary>
  13707. <param name="jobj">Json对象</param>
  13708. <param name="type">模板类型</param>
  13709. <param name="target">目标对象</param>
  13710. <returns></returns>
  13711. </member>
  13712. <member name="M:NewLife.Serialization.JsonReader.ParseList(System.Collections.Generic.IList{System.Object},System.Type,System.Object)">
  13713. <summary>转为泛型列表</summary>
  13714. <param name="vlist"></param>
  13715. <param name="type"></param>
  13716. <param name="target">目标对象</param>
  13717. <returns></returns>
  13718. </member>
  13719. <member name="M:NewLife.Serialization.JsonReader.ParseArray(System.Collections.Generic.IList{System.Object},System.Type,System.Object)">
  13720. <summary>转为数组</summary>
  13721. <param name="list"></param>
  13722. <param name="type"></param>
  13723. <param name="target">目标对象</param>
  13724. <returns></returns>
  13725. </member>
  13726. <member name="M:NewLife.Serialization.JsonReader.ParseDictionary(System.Collections.Generic.IDictionary{System.String,System.Object},System.Type,System.Collections.IDictionary)">
  13727. <summary>转为泛型字典</summary>
  13728. <param name="dic"></param>
  13729. <param name="type"></param>
  13730. <param name="target">目标对象</param>
  13731. <returns></returns>
  13732. </member>
  13733. <member name="M:NewLife.Serialization.JsonReader.ParseObject(System.Collections.Generic.IDictionary{System.String,System.Object},System.Type,System.Object)">
  13734. <summary>字典转复杂对象,反射属性赋值</summary>
  13735. <param name="dic"></param>
  13736. <param name="type"></param>
  13737. <param name="target">目标对象</param>
  13738. <returns></returns>
  13739. </member>
  13740. <member name="M:NewLife.Serialization.JsonReader.CreateDateTime(System.Object)">
  13741. <summary>创建时间</summary>
  13742. <param name="value"></param>
  13743. <returns></returns>
  13744. </member>
  13745. <member name="T:NewLife.Serialization.JsonWriter">
  13746. <summary>Json写入器</summary>
  13747. <remarks>
  13748. 文档 https://newlifex.com/core/json
  13749. </remarks>
  13750. </member>
  13751. <member name="P:NewLife.Serialization.JsonWriter.UseUTCDateTime">
  13752. <summary>使用UTC时间。默认false</summary>
  13753. </member>
  13754. <member name="P:NewLife.Serialization.JsonWriter.LowerCase">
  13755. <summary>使用小写名称</summary>
  13756. </member>
  13757. <member name="P:NewLife.Serialization.JsonWriter.CamelCase">
  13758. <summary>使用驼峰命名</summary>
  13759. </member>
  13760. <member name="P:NewLife.Serialization.JsonWriter.IgnoreNullValues">
  13761. <summary>忽略空值。默认false</summary>
  13762. </member>
  13763. <member name="P:NewLife.Serialization.JsonWriter.IgnoreReadOnlyProperties">
  13764. <summary>忽略只读属性。默认false</summary>
  13765. </member>
  13766. <member name="P:NewLife.Serialization.JsonWriter.IgnoreComment">
  13767. <summary>忽略注释。默认true</summary>
  13768. </member>
  13769. <member name="P:NewLife.Serialization.JsonWriter.IgnoreCycles">
  13770. <summary>忽略循环引用。遇到循环引用时写{},默认false</summary>
  13771. </member>
  13772. <member name="P:NewLife.Serialization.JsonWriter.EnumString">
  13773. <summary>枚举使用字符串。默认false使用数字</summary>
  13774. </member>
  13775. <member name="P:NewLife.Serialization.JsonWriter.Indented">
  13776. <summary>缩进。默认false</summary>
  13777. </member>
  13778. <member name="P:NewLife.Serialization.JsonWriter.Int64AsString">
  13779. <summary>长整型作为字符串序列化。避免长整型传输给前端时精度丢失,只有值真的超过前端接受范围时才会进行转换,默认false</summary>
  13780. </member>
  13781. <member name="P:NewLife.Serialization.JsonWriter.ByteArrayAsHex">
  13782. <summary>字节数组序列化为HEX。默认false,使用base64</summary>
  13783. </member>
  13784. <member name="P:NewLife.Serialization.JsonWriter.IndentedLength">
  13785. <summary>缩进字符数。默认2</summary>
  13786. </member>
  13787. <member name="P:NewLife.Serialization.JsonWriter.MaxDepth">
  13788. <summary>最大序列化深度。超过时不再序列化,而不是抛出异常,默认5</summary>
  13789. </member>
  13790. <member name="M:NewLife.Serialization.JsonWriter.#ctor">
  13791. <summary>实例化</summary>
  13792. </member>
  13793. <member name="M:NewLife.Serialization.JsonWriter.ToJson(System.Object,System.Boolean,System.Boolean,System.Boolean)">
  13794. <summary>对象序列化为Json字符串</summary>
  13795. <param name="obj"></param>
  13796. <param name="indented">是否缩进。默认false</param>
  13797. <param name="nullValue">是否写控制。默认true</param>
  13798. <param name="camelCase">是否驼峰命名。默认false</param>
  13799. <returns></returns>
  13800. </member>
  13801. <member name="M:NewLife.Serialization.JsonWriter.ToJson(System.Object,NewLife.Serialization.JsonOptions)">
  13802. <summary>对象序列化为Json字符串</summary>
  13803. <param name="obj"></param>
  13804. <param name="jsonOptions">序列化选项</param>
  13805. <returns></returns>
  13806. </member>
  13807. <member name="M:NewLife.Serialization.JsonWriter.Write(System.Object)">
  13808. <summary>写入对象</summary>
  13809. <param name="value"></param>
  13810. </member>
  13811. <member name="M:NewLife.Serialization.JsonWriter.GetString">
  13812. <summary>获取结果</summary>
  13813. <returns></returns>
  13814. </member>
  13815. <member name="M:NewLife.Serialization.JsonWriter.FormatName(System.String)">
  13816. <summary>根据小写和驼峰格式化名称</summary>
  13817. <param name="name"></param>
  13818. <returns></returns>
  13819. </member>
  13820. <member name="F:NewLife.Serialization.JsonWriter._level">
  13821. <summary>当前缩进层级</summary>
  13822. </member>
  13823. <member name="T:NewLife.Serialization.SerialHelper">
  13824. <summary>序列化助手</summary>
  13825. </member>
  13826. <member name="M:NewLife.Serialization.SerialHelper.GetName(System.Reflection.PropertyInfo)">
  13827. <summary>获取序列化名称</summary>
  13828. <param name="pi"></param>
  13829. <returns></returns>
  13830. </member>
  13831. <member name="M:NewLife.Serialization.SerialHelper.BuildModelClass(System.Collections.Generic.IDictionary{System.String,System.Object},System.String)">
  13832. <summary>依据 Json/Xml 字典生成实体模型类</summary>
  13833. <param name="dic"></param>
  13834. <param name="className"></param>
  13835. <returns></returns>
  13836. </member>
  13837. <member name="T:NewLife.Serialization.IXml">
  13838. <summary>二进制序列化接口</summary>
  13839. </member>
  13840. <member name="P:NewLife.Serialization.IXml.Handlers">
  13841. <summary>处理器列表</summary>
  13842. </member>
  13843. <member name="P:NewLife.Serialization.IXml.UseComment">
  13844. <summary>使用注释</summary>
  13845. </member>
  13846. <member name="M:NewLife.Serialization.IXml.Write(System.Object,System.String,System.Type)">
  13847. <summary>写入一个对象</summary>
  13848. <param name="value">目标对象</param>
  13849. <param name="name">名称</param>
  13850. <param name="type">类型</param>
  13851. <returns></returns>
  13852. </member>
  13853. <member name="M:NewLife.Serialization.IXml.GetWriter">
  13854. <summary>获取Xml写入器</summary>
  13855. <returns></returns>
  13856. </member>
  13857. <member name="M:NewLife.Serialization.IXml.GetReader">
  13858. <summary>获取Xml读取器</summary>
  13859. <returns></returns>
  13860. </member>
  13861. <member name="T:NewLife.Serialization.IXmlHandler">
  13862. <summary>二进制读写处理器接口</summary>
  13863. </member>
  13864. <member name="T:NewLife.Serialization.XmlHandlerBase">
  13865. <summary>Xml读写处理器基类</summary>
  13866. </member>
  13867. <member name="T:NewLife.Serialization.Xml">
  13868. <summary>Xml序列化</summary>
  13869. </member>
  13870. <member name="P:NewLife.Serialization.Xml.Depth">
  13871. <summary>深度</summary>
  13872. </member>
  13873. <member name="P:NewLife.Serialization.Xml.Handlers">
  13874. <summary>处理器列表</summary>
  13875. </member>
  13876. <member name="P:NewLife.Serialization.Xml.UseAttribute">
  13877. <summary>使用特性</summary>
  13878. </member>
  13879. <member name="P:NewLife.Serialization.Xml.UseComment">
  13880. <summary>使用注释</summary>
  13881. </member>
  13882. <member name="P:NewLife.Serialization.Xml.EnumString">
  13883. <summary>枚举使用字符串。false时使用数字,默认true</summary>
  13884. </member>
  13885. <member name="P:NewLife.Serialization.Xml.Setting">
  13886. <summary>XML写入设置</summary>
  13887. </member>
  13888. <member name="P:NewLife.Serialization.Xml.CurrentName">
  13889. <summary>当前名称</summary>
  13890. </member>
  13891. <member name="M:NewLife.Serialization.Xml.#ctor">
  13892. <summary>实例化</summary>
  13893. </member>
  13894. <member name="M:NewLife.Serialization.Xml.AddHandler(NewLife.Serialization.IXmlHandler)">
  13895. <summary>添加处理器</summary>
  13896. <param name="handler"></param>
  13897. <returns></returns>
  13898. </member>
  13899. <member name="M:NewLife.Serialization.Xml.AddHandler``1(System.Int32)">
  13900. <summary>添加处理器</summary>
  13901. <typeparam name="THandler"></typeparam>
  13902. <param name="priority"></param>
  13903. <returns></returns>
  13904. </member>
  13905. <member name="M:NewLife.Serialization.Xml.Write(System.Object,System.String,System.Type)">
  13906. <summary>写入一个对象</summary>
  13907. <param name="value">目标对象</param>
  13908. <param name="name">名称</param>
  13909. <param name="type">类型</param>
  13910. <returns></returns>
  13911. </member>
  13912. <member name="M:NewLife.Serialization.Xml.WriteStart(System.Type)">
  13913. <summary>写入开头</summary>
  13914. <param name="type"></param>
  13915. </member>
  13916. <member name="M:NewLife.Serialization.Xml.WriteEnd">
  13917. <summary>写入结尾</summary>
  13918. </member>
  13919. <member name="M:NewLife.Serialization.Xml.GetWriter">
  13920. <summary>获取Xml写入器</summary>
  13921. <returns></returns>
  13922. </member>
  13923. <member name="M:NewLife.Serialization.Xml.Read(System.Type)">
  13924. <summary>读取指定类型对象</summary>
  13925. <param name="type"></param>
  13926. <returns></returns>
  13927. </member>
  13928. <member name="M:NewLife.Serialization.Xml.Read``1">
  13929. <summary>读取指定类型对象</summary>
  13930. <typeparam name="T"></typeparam>
  13931. <returns></returns>
  13932. </member>
  13933. <member name="M:NewLife.Serialization.Xml.TryRead(System.Type,System.Object@)">
  13934. <summary>尝试读取指定类型对象</summary>
  13935. <param name="type"></param>
  13936. <param name="value"></param>
  13937. <returns></returns>
  13938. </member>
  13939. <member name="M:NewLife.Serialization.Xml.ReadStart(System.Type)">
  13940. <summary>读取开始</summary>
  13941. <param name="type"></param>
  13942. </member>
  13943. <member name="M:NewLife.Serialization.Xml.ReadEnd">
  13944. <summary>读取结束</summary>
  13945. </member>
  13946. <member name="M:NewLife.Serialization.Xml.GetReader">
  13947. <summary>获取Xml读取器</summary>
  13948. <returns></returns>
  13949. </member>
  13950. <member name="M:NewLife.Serialization.Xml.GetString">
  13951. <summary>获取字符串</summary>
  13952. <returns></returns>
  13953. </member>
  13954. <member name="T:NewLife.Serialization.XmlComposite">
  13955. <summary>Xml复合对象处理器</summary>
  13956. </member>
  13957. <member name="M:NewLife.Serialization.XmlComposite.#ctor">
  13958. <summary>实例化</summary>
  13959. </member>
  13960. <member name="M:NewLife.Serialization.XmlComposite.Write(System.Object,System.Type)">
  13961. <summary>写入对象</summary>
  13962. <param name="value">目标对象</param>
  13963. <param name="type">类型</param>
  13964. <returns></returns>
  13965. </member>
  13966. <member name="M:NewLife.Serialization.XmlComposite.TryRead(System.Type,System.Object@)">
  13967. <summary>尝试读取</summary>
  13968. <param name="type"></param>
  13969. <param name="value"></param>
  13970. <returns></returns>
  13971. </member>
  13972. <member name="M:NewLife.Serialization.XmlComposite.GetMembers(System.Type)">
  13973. <summary>获取成员</summary>
  13974. <param name="type"></param>
  13975. <returns></returns>
  13976. </member>
  13977. <member name="T:NewLife.Serialization.XmlGeneral">
  13978. <summary>Xml基础类型处理器</summary>
  13979. </member>
  13980. <member name="M:NewLife.Serialization.XmlGeneral.#ctor">
  13981. <summary>实例化</summary>
  13982. </member>
  13983. <member name="M:NewLife.Serialization.XmlGeneral.Write(System.Object,System.Type)">
  13984. <summary>写入一个对象</summary>
  13985. <param name="value">目标对象</param>
  13986. <param name="type">类型</param>
  13987. <returns>是否处理成功</returns>
  13988. </member>
  13989. <member name="M:NewLife.Serialization.XmlGeneral.TryRead(System.Type,System.Object@)">
  13990. <summary>尝试读取</summary>
  13991. <param name="type"></param>
  13992. <param name="value"></param>
  13993. <returns></returns>
  13994. </member>
  13995. <member name="T:NewLife.Serialization.XmlList">
  13996. <summary>列表数据编码</summary>
  13997. </member>
  13998. <member name="M:NewLife.Serialization.XmlList.#ctor">
  13999. <summary>初始化</summary>
  14000. </member>
  14001. <member name="M:NewLife.Serialization.XmlList.Write(System.Object,System.Type)">
  14002. <summary>写入</summary>
  14003. <param name="value"></param>
  14004. <param name="type"></param>
  14005. <returns></returns>
  14006. </member>
  14007. <member name="M:NewLife.Serialization.XmlList.TryRead(System.Type,System.Object@)">
  14008. <summary>读取</summary>
  14009. <param name="type"></param>
  14010. <param name="value"></param>
  14011. <returns></returns>
  14012. </member>
  14013. <member name="T:NewLife.Serialization.XmlParser">
  14014. <summary>Xml解析器,得到字典和数组</summary>
  14015. </member>
  14016. <member name="M:NewLife.Serialization.XmlParser.#ctor(System.String)">
  14017. <summary>实例化</summary>
  14018. <param name="xml"></param>
  14019. </member>
  14020. <member name="M:NewLife.Serialization.XmlParser.Decode(System.String)">
  14021. <summary>解码</summary>
  14022. <returns></returns>
  14023. </member>
  14024. <member name="T:NewLife.Setting">
  14025. <summary>核心设置</summary>
  14026. <remarks>
  14027. 文档 https://newlifex.com/core/setting
  14028. </remarks>
  14029. </member>
  14030. <member name="P:NewLife.Setting.Debug">
  14031. <summary>是否启用全局调试。默认启用</summary>
  14032. </member>
  14033. <member name="P:NewLife.Setting.LogLevel">
  14034. <summary>日志等级,只输出大于等于该级别的日志,All/Debug/Info/Warn/Error/Fatal,默认Info</summary>
  14035. </member>
  14036. <member name="P:NewLife.Setting.LogPath">
  14037. <summary>文件日志目录。默认Log子目录</summary>
  14038. </member>
  14039. <member name="P:NewLife.Setting.LogFileMaxBytes">
  14040. <summary>日志文件上限。超过上限后拆分新日志文件,默认10MB,0表示不限制大小</summary>
  14041. </member>
  14042. <member name="P:NewLife.Setting.LogFileBackups">
  14043. <summary>日志文件备份。超过备份数后,最旧的文件将被删除,网络安全法要求至少保存6个月日志,默认200,0表示不限制个数</summary>
  14044. </member>
  14045. <member name="P:NewLife.Setting.LogFileFormat">
  14046. <summary>日志文件格式。默认{0:yyyy_MM_dd}.log,支持日志等级如 {1}_{0:yyyy_MM_dd}.log</summary>
  14047. </member>
  14048. <member name="P:NewLife.Setting.NetworkLog">
  14049. <summary>网络日志。本地子网日志广播udp://255.255.255.255:514,或者http://xxx:80/log</summary>
  14050. </member>
  14051. <member name="P:NewLife.Setting.UtcIntervalHours">
  14052. <summary>日志记录时间UTC校正,单位:小时。默认0表示使用的是本地时间,使用UTC时间的系统转换成本地时间则相差8小时</summary>
  14053. </member>
  14054. <member name="P:NewLife.Setting.DataPath">
  14055. <summary>数据目录。本地数据库目录,默认Data子目录</summary>
  14056. </member>
  14057. <member name="P:NewLife.Setting.BackupPath">
  14058. <summary>备份目录。备份数据库时存放的目录,默认Backup子目录</summary>
  14059. </member>
  14060. <member name="P:NewLife.Setting.PluginPath">
  14061. <summary>插件目录</summary>
  14062. </member>
  14063. <member name="P:NewLife.Setting.PluginServer">
  14064. <summary>插件服务器。将从该网页上根据关键字分析链接并下载插件</summary>
  14065. </member>
  14066. <member name="P:NewLife.Setting.AssemblyResolve">
  14067. <summary>辅助解析程序集。程序集加载过程中,被依赖程序集未能解析时,是否协助解析,默认false</summary>
  14068. </member>
  14069. <member name="P:NewLife.Setting.ServiceAddress">
  14070. <summary>服务地址。用户访问的外网地址,反向代理之外,用于内部构造其它Url(如SSO),或者向注册中心登记,多地址逗号隔开</summary>
  14071. </member>
  14072. <member name="M:NewLife.Setting.OnLoaded">
  14073. <summary>加载完成后</summary>
  14074. </member>
  14075. <member name="M:NewLife.Setting.GetPluginPath">
  14076. <summary>获取插件目录</summary>
  14077. <returns></returns>
  14078. </member>
  14079. <member name="T:NewLife.Threading.Cron">
  14080. <summary>轻量级Cron表达式</summary>
  14081. <remarks>
  14082. 基本构成:秒+分+时+天+月+星期+年
  14083. 每段构成:
  14084. * 所有可能的值,该类型片段全部可选
  14085. , 列出枚举值
  14086. - 范围,横杠表示的一个区间可选
  14087. / 指定数值的增量,在上述可选数字内,间隔多少选一个
  14088. ? 不指定值,仅日期和星期域支持该字符
  14089. # 确定每个月第几个星期几,L表示倒数,仅星期域支持该字符
  14090. 数字,具体某个数值可选
  14091. 逗号多选,逗号分隔的多个数字或区间可选
  14092. </remarks>
  14093. <example>
  14094. */2 每两秒一次
  14095. 0,1,2 * * * * 每分钟的0秒1秒2秒各一次
  14096. 5/20 * * * * 每分钟的5秒25秒45秒各一次
  14097. * 1-10,13,25/3 * * * 每小时的1分4分7分10分13分25分,每一秒各一次
  14098. 0 0 0 1 * * 每个月1日的0点整
  14099. 0 0 2 * * 1-5 每个工作日的凌晨2点
  14100. 0 0 0 ? ? 1-7#1 每月第一周的任意一天(周一~周日)的0点整
  14101. 0 0 0 ? ? 3-5#L2 每个月倒数第二个星期三到星期五的0点整
  14102. 星期部分采用Linux和.NET风格,0表示周日,1表示周一。
  14103. 可设置Sunday为1,1表示周日,2表示周一。
  14104. 文档 https://newlifex.com/core/cron
  14105. 参考文档 https://help.aliyun.com/document_detail/64769.html
  14106. </example>
  14107. </member>
  14108. <member name="P:NewLife.Threading.Cron.Seconds">
  14109. <summary>秒数集合</summary>
  14110. </member>
  14111. <member name="P:NewLife.Threading.Cron.Minutes">
  14112. <summary>分钟集合</summary>
  14113. </member>
  14114. <member name="P:NewLife.Threading.Cron.Hours">
  14115. <summary>小时集合</summary>
  14116. </member>
  14117. <member name="P:NewLife.Threading.Cron.DaysOfMonth">
  14118. <summary>日期集合</summary>
  14119. </member>
  14120. <member name="P:NewLife.Threading.Cron.Months">
  14121. <summary>月份集合</summary>
  14122. </member>
  14123. <member name="P:NewLife.Threading.Cron.DaysOfWeek">
  14124. <summary>星期集合。key是星期数,value是第几个,负数表示倒数</summary>
  14125. </member>
  14126. <member name="P:NewLife.Threading.Cron.Sunday">
  14127. <summary>星期天偏移量。周日对应的数字,默认0。1表示周日时,2表示周一</summary>
  14128. </member>
  14129. <member name="M:NewLife.Threading.Cron.#ctor">
  14130. <summary>实例化Cron表达式</summary>
  14131. </member>
  14132. <member name="M:NewLife.Threading.Cron.#ctor(System.String)">
  14133. <summary>实例化Cron表达式</summary>
  14134. <param name="expression"></param>
  14135. </member>
  14136. <member name="M:NewLife.Threading.Cron.ToString">
  14137. <summary>已重载。</summary>
  14138. <returns></returns>
  14139. </member>
  14140. <member name="M:NewLife.Threading.Cron.IsTime(System.DateTime)">
  14141. <summary>指定时间是否位于表达式之内</summary>
  14142. <param name="time"></param>
  14143. <returns></returns>
  14144. </member>
  14145. <member name="M:NewLife.Threading.Cron.Parse(System.String)">
  14146. <summary>分析表达式</summary>
  14147. <param name="expression"></param>
  14148. <returns></returns>
  14149. </member>
  14150. <member name="M:NewLife.Threading.Cron.GetNext(System.DateTime)">
  14151. <summary>获得指定时间之后的下一次执行时间,不含指定时间</summary>
  14152. <remarks>
  14153. 如果指定时间带有毫秒,则向前对齐。如09:14.123的"15 * * *"下一次是10:15而不是09:15
  14154. </remarks>
  14155. <param name="time">从该时间秒的下一秒算起的下一个执行时间</param>
  14156. <returns>下一次执行时间(秒级),如果没有匹配则返回最小时间</returns>
  14157. </member>
  14158. <member name="M:NewLife.Threading.Cron.GetPrevious(System.DateTime)">
  14159. <summary>获得与指定时间时间符合表达式的最远时间(秒级)</summary>
  14160. <param name="time"></param>
  14161. </member>
  14162. <member name="T:NewLife.Threading.ThreadPoolX">
  14163. <summary>线程池助手</summary>
  14164. </member>
  14165. <member name="M:NewLife.Threading.ThreadPoolX.Init">
  14166. <summary>初始化线程池
  14167. </summary>
  14168. </member>
  14169. <member name="M:NewLife.Threading.ThreadPoolX.QueueUserWorkItem(System.Action)">
  14170. <summary>带异常处理的线程池任务调度,不允许异常抛出,以免造成应用程序退出,同时不会捕获上下文</summary>
  14171. <param name="callback"></param>
  14172. </member>
  14173. <member name="M:NewLife.Threading.ThreadPoolX.QueueUserWorkItem``1(System.Action{``0},``0)">
  14174. <summary>带异常处理的线程池任务调度,不允许异常抛出,以免造成应用程序退出,同时不会捕获上下文</summary>
  14175. <param name="callback"></param>
  14176. <param name="state"></param>
  14177. </member>
  14178. <member name="T:NewLife.Threading.TimerScheduler">
  14179. <summary>定时器调度器</summary>
  14180. </member>
  14181. <member name="M:NewLife.Threading.TimerScheduler.Create(System.String)">
  14182. <summary>创建指定名称的调度器</summary>
  14183. <param name="name"></param>
  14184. <returns></returns>
  14185. </member>
  14186. <member name="P:NewLife.Threading.TimerScheduler.Default">
  14187. <summary>默认调度器</summary>
  14188. </member>
  14189. <member name="P:NewLife.Threading.TimerScheduler.Current">
  14190. <summary>当前调度器</summary>
  14191. </member>
  14192. <member name="P:NewLife.Threading.TimerScheduler.Name">
  14193. <summary>名称</summary>
  14194. </member>
  14195. <member name="P:NewLife.Threading.TimerScheduler.Count">
  14196. <summary>定时器个数</summary>
  14197. </member>
  14198. <member name="P:NewLife.Threading.TimerScheduler.MaxCost">
  14199. <summary>最大耗时。超过时报警告日志,默认500ms</summary>
  14200. </member>
  14201. <member name="M:NewLife.Threading.TimerScheduler.Add(NewLife.Threading.TimerX)">
  14202. <summary>把定时器加入队列</summary>
  14203. <param name="timer"></param>
  14204. </member>
  14205. <member name="M:NewLife.Threading.TimerScheduler.Remove(NewLife.Threading.TimerX,System.String)">
  14206. <summary>从队列删除定时器</summary>
  14207. <param name="timer"></param>
  14208. <param name="reason"></param>
  14209. </member>
  14210. <member name="M:NewLife.Threading.TimerScheduler.Wake">
  14211. <summary>唤醒处理</summary>
  14212. </member>
  14213. <member name="M:NewLife.Threading.TimerScheduler.Process(System.Object)">
  14214. <summary>调度主程序</summary>
  14215. <param name="state"></param>
  14216. </member>
  14217. <member name="M:NewLife.Threading.TimerScheduler.CheckTime(NewLife.Threading.TimerX,System.Int64)">
  14218. <summary>检查定时器是否到期</summary>
  14219. <param name="timer"></param>
  14220. <param name="now"></param>
  14221. <returns></returns>
  14222. </member>
  14223. <member name="M:NewLife.Threading.TimerScheduler.Execute(System.Object)">
  14224. <summary>处理每一个定时器</summary>
  14225. <param name="state"></param>
  14226. </member>
  14227. <member name="M:NewLife.Threading.TimerScheduler.ExecuteAsync(System.Object)">
  14228. <summary>处理每一个定时器</summary>
  14229. <param name="state"></param>
  14230. </member>
  14231. <member name="M:NewLife.Threading.TimerScheduler.ToString">
  14232. <summary>已重载。</summary>
  14233. <returns></returns>
  14234. </member>
  14235. <member name="P:NewLife.Threading.TimerScheduler.Log">
  14236. <summary>日志</summary>
  14237. </member>
  14238. <member name="T:NewLife.Threading.TimerX">
  14239. <summary>不可重入的定时器,支持Cron</summary>
  14240. <remarks>
  14241. 文档 https://newlifex.com/core/timerx
  14242. 为了避免系统的Timer可重入的问题,差别在于本地调用完成后才开始计算时间间隔。这实际上也是经常用到的。
  14243. 因为挂载在静态列表上,必须从外部主动调用<see cref="M:System.IDisposable.Dispose"/>才能销毁定时器。
  14244. 但是要注意GC回收定时器实例。
  14245. 该定时器不能放入太多任务,否则适得其反!
  14246. TimerX必须维持对象,否则Scheduler也没有维持对象时,大家很容易一起被GC回收。
  14247. </remarks>
  14248. </member>
  14249. <member name="P:NewLife.Threading.TimerX.Id">
  14250. <summary>编号</summary>
  14251. </member>
  14252. <member name="P:NewLife.Threading.TimerX.Scheduler">
  14253. <summary>所属调度器</summary>
  14254. </member>
  14255. <member name="F:NewLife.Threading.TimerX.Target">
  14256. <summary>目标对象。弱引用,使得调用方对象可以被GC回收</summary>
  14257. </member>
  14258. <member name="F:NewLife.Threading.TimerX.Method">
  14259. <summary>委托方法</summary>
  14260. </member>
  14261. <member name="P:NewLife.Threading.TimerX.State">
  14262. <summary>获取/设置 用户数据</summary>
  14263. </member>
  14264. <member name="F:NewLife.Threading.TimerX._baseTime">
  14265. <summary>基准时间。开机时间</summary>
  14266. </member>
  14267. <member name="P:NewLife.Threading.TimerX.NextTick">
  14268. <summary>下一次执行时间。开机以来嘀嗒数,无惧时间回拨问题</summary>
  14269. </member>
  14270. <member name="P:NewLife.Threading.TimerX.NextTime">
  14271. <summary>获取/设置 下一次调用时间</summary>
  14272. </member>
  14273. <member name="P:NewLife.Threading.TimerX.Timers">
  14274. <summary>获取/设置 调用次数</summary>
  14275. </member>
  14276. <member name="P:NewLife.Threading.TimerX.Period">
  14277. <summary>获取/设置 间隔周期。毫秒,设为0或-1则只调用一次</summary>
  14278. </member>
  14279. <member name="P:NewLife.Threading.TimerX.Async">
  14280. <summary>获取/设置 异步执行任务。默认false</summary>
  14281. </member>
  14282. <member name="P:NewLife.Threading.TimerX.Absolutely">
  14283. <summary>获取/设置 绝对精确时间执行。默认false</summary>
  14284. </member>
  14285. <member name="P:NewLife.Threading.TimerX.Calling">
  14286. <summary>调用中</summary>
  14287. </member>
  14288. <member name="P:NewLife.Threading.TimerX.Cost">
  14289. <summary>平均耗时。毫秒</summary>
  14290. </member>
  14291. <member name="P:NewLife.Threading.TimerX.CanExecute">
  14292. <summary>判断任务是否执行的委托。一般跟异步配合使用,避免频繁从线程池借出线程</summary>
  14293. </member>
  14294. <member name="P:NewLife.Threading.TimerX.Crons">
  14295. <summary>Cron表达式,实现复杂的定时逻辑</summary>
  14296. </member>
  14297. <member name="P:NewLife.Threading.TimerX.Cron">
  14298. <summary>Cron表达式,实现复杂的定时逻辑</summary>
  14299. </member>
  14300. <member name="P:NewLife.Threading.TimerX.Tracer">
  14301. <summary>链路追踪。追踪每一次定时事件</summary>
  14302. </member>
  14303. <member name="P:NewLife.Threading.TimerX.TracerName">
  14304. <summary>链路追踪名称。默认使用方法名</summary>
  14305. </member>
  14306. <member name="P:NewLife.Threading.TimerX.Current">
  14307. <summary>当前定时器</summary>
  14308. </member>
  14309. <member name="M:NewLife.Threading.TimerX.#ctor(System.Threading.TimerCallback,System.Object,System.Int32,System.Int32,System.String)">
  14310. <summary>实例化一个不可重入的定时器</summary>
  14311. <param name="callback">委托</param>
  14312. <param name="state">用户数据</param>
  14313. <param name="dueTime">多久之后开始。毫秒</param>
  14314. <param name="period">间隔周期。毫秒</param>
  14315. <param name="scheduler">调度器</param>
  14316. </member>
  14317. <member name="M:NewLife.Threading.TimerX.#ctor(System.Func{System.Object,System.Threading.Tasks.Task},System.Object,System.Int32,System.Int32,System.String)">
  14318. <summary>实例化一个不可重入的定时器</summary>
  14319. <param name="callback">委托</param>
  14320. <param name="state">用户数据</param>
  14321. <param name="dueTime">多久之后开始。毫秒</param>
  14322. <param name="period">间隔周期。毫秒</param>
  14323. <param name="scheduler">调度器</param>
  14324. </member>
  14325. <member name="M:NewLife.Threading.TimerX.#ctor(System.Threading.TimerCallback,System.Object,System.DateTime,System.Int32,System.String)">
  14326. <summary>实例化一个绝对定时器,指定时刻执行,跟当前时间和SetNext无关</summary>
  14327. <param name="callback">委托</param>
  14328. <param name="state">用户数据</param>
  14329. <param name="startTime">绝对开始时间</param>
  14330. <param name="period">间隔周期。毫秒</param>
  14331. <param name="scheduler">调度器</param>
  14332. </member>
  14333. <member name="M:NewLife.Threading.TimerX.#ctor(System.Func{System.Object,System.Threading.Tasks.Task},System.Object,System.DateTime,System.Int32,System.String)">
  14334. <summary>实例化一个绝对定时器,指定时刻执行,跟当前时间和SetNext无关</summary>
  14335. <param name="callback">委托</param>
  14336. <param name="state">用户数据</param>
  14337. <param name="startTime">绝对开始时间</param>
  14338. <param name="period">间隔周期。毫秒</param>
  14339. <param name="scheduler">调度器</param>
  14340. </member>
  14341. <member name="M:NewLife.Threading.TimerX.#ctor(System.Threading.TimerCallback,System.Object,System.String,System.String)">
  14342. <summary>实例化一个Cron定时器</summary>
  14343. <param name="callback">委托</param>
  14344. <param name="state">用户数据</param>
  14345. <param name="cronExpression">Cron表达式。支持多个表达式,分号分隔</param>
  14346. <param name="scheduler">调度器</param>
  14347. </member>
  14348. <member name="M:NewLife.Threading.TimerX.#ctor(System.Func{System.Object,System.Threading.Tasks.Task},System.Object,System.String,System.String)">
  14349. <summary>实例化一个Cron定时器</summary>
  14350. <param name="callback">委托</param>
  14351. <param name="state">用户数据</param>
  14352. <param name="cronExpression">Cron表达式。支持多个表达式,分号分隔</param>
  14353. <param name="scheduler">调度器</param>
  14354. </member>
  14355. <member name="M:NewLife.Threading.TimerX.Dispose">
  14356. <summary>销毁定时器</summary>
  14357. </member>
  14358. <member name="M:NewLife.Threading.TimerX.Dispose(System.Boolean)">
  14359. <summary>销毁</summary>
  14360. <param name="disposing"></param>
  14361. </member>
  14362. <member name="F:NewLife.Threading.TimerX.hasSetNext">
  14363. <summary>是否已设置下一次时间</summary>
  14364. </member>
  14365. <member name="M:NewLife.Threading.TimerX.SetNext(System.Int32)">
  14366. <summary>设置下一次运行时间</summary>
  14367. <param name="ms">小于等于0表示马上调度</param>
  14368. </member>
  14369. <member name="M:NewLife.Threading.TimerX.SetAndGetNextTime">
  14370. <summary>设置下一次执行时间,并获取间隔</summary>
  14371. <returns>返回下一次执行的间隔时间,不能小于等于0,否则定时器被销毁</returns>
  14372. </member>
  14373. <member name="M:NewLife.Threading.TimerX.Delay(System.Threading.TimerCallback,System.Int32)">
  14374. <summary>延迟执行一个委托。特别要小心,很可能委托还没被执行,对象就被gc回收了</summary>
  14375. <param name="callback"></param>
  14376. <param name="ms"></param>
  14377. <returns></returns>
  14378. </member>
  14379. <member name="P:NewLife.Threading.TimerX.Now">
  14380. <summary>当前时间。定时读取系统时间,避免频繁读取系统时间造成性能瓶颈</summary>
  14381. </member>
  14382. <member name="M:NewLife.Threading.TimerX.ToString">
  14383. <summary>已重载</summary>
  14384. <returns></returns>
  14385. </member>
  14386. <member name="T:NewLife.Web.JwtEncodeDelegate">
  14387. <summary>Jwt编码委托</summary>
  14388. <param name="data"></param>
  14389. <param name="secrect"></param>
  14390. <returns></returns>
  14391. </member>
  14392. <member name="T:NewLife.Web.JwtDecodeDelegate">
  14393. <summary>Jwt解码委托</summary>
  14394. <param name="data"></param>
  14395. <param name="secrect"></param>
  14396. <param name="signature"></param>
  14397. <returns></returns>
  14398. </member>
  14399. <member name="T:NewLife.Web.JwtBuilder">
  14400. <summary>JSON Web Token</summary>
  14401. <remarks>
  14402. 主要问题:
  14403. 1,JWT默认不加密,但可以加密。生成原始令牌后,可以使用该令牌再次对其进行加密。
  14404. 2,当JWT未加密时,私密数据无法通过JWT传输。
  14405. 3,JWT不仅可用于认证,还可用于信息交换。善用JWT有助于减少服务器请求数据库的次数。
  14406. 4,JWT的最大缺点是服务器不保存会话状态,所以在使用期间不可能取消令牌或更改令牌的权限。也就是说,一旦JWT签发,在有效期内将会一直有效。
  14407. 5,JWT本身包含认证信息,因此一旦信息泄露,任何人都可以获得令牌的所有权限。为了减少盗用,JWT的有效期不宜设置太长。对于某些重要操作,用户在使用时应该每次都进行进行身份验证。
  14408. 6,为了减少盗用和窃取,JWT不建议使用HTTP协议来传输代码,而是使用加密的HTTPS协议进行传输。
  14409. </remarks>
  14410. </member>
  14411. <member name="P:NewLife.Web.JwtBuilder.Issuer">
  14412. <summary>颁发者</summary>
  14413. </member>
  14414. <member name="P:NewLife.Web.JwtBuilder.Subject">
  14415. <summary>主体所有人。可以存放userid/roleid等,作为用户唯一标识</summary>
  14416. </member>
  14417. <member name="P:NewLife.Web.JwtBuilder.Audience">
  14418. <summary>受众</summary>
  14419. </member>
  14420. <member name="P:NewLife.Web.JwtBuilder.Expire">
  14421. <summary>有效期。默认2小时</summary>
  14422. </member>
  14423. <member name="P:NewLife.Web.JwtBuilder.NotBefore">
  14424. <summary>生效时间,在此之前是无效的</summary>
  14425. </member>
  14426. <member name="P:NewLife.Web.JwtBuilder.IssuedAt">
  14427. <summary>颁发时间</summary>
  14428. </member>
  14429. <member name="P:NewLife.Web.JwtBuilder.Id">
  14430. <summary>标识</summary>
  14431. </member>
  14432. <member name="P:NewLife.Web.JwtBuilder.Algorithm">
  14433. <summary>算法。默认HS256</summary>
  14434. </member>
  14435. <member name="P:NewLife.Web.JwtBuilder.Type">
  14436. <summary>令牌类型。默认JWT</summary>
  14437. </member>
  14438. <member name="P:NewLife.Web.JwtBuilder.Secret">
  14439. <summary>密钥</summary>
  14440. </member>
  14441. <member name="P:NewLife.Web.JwtBuilder.Items">
  14442. <summary>数据项</summary>
  14443. </member>
  14444. <member name="P:NewLife.Web.JwtBuilder.Item(System.String)">
  14445. <summary>设置 或 获取 数据项</summary>
  14446. <param name="key"></param>
  14447. <returns></returns>
  14448. </member>
  14449. <member name="M:NewLife.Web.JwtBuilder.Encode(System.Object)">
  14450. <summary>编码目标对象,生成令牌</summary>
  14451. <param name="payload"></param>
  14452. <returns></returns>
  14453. </member>
  14454. <member name="M:NewLife.Web.JwtBuilder.Parse(System.String)">
  14455. <summary>分析令牌</summary>
  14456. <param name="token"></param>
  14457. <returns></returns>
  14458. </member>
  14459. <member name="M:NewLife.Web.JwtBuilder.TryDecode(System.String,System.String@)">
  14460. <summary>解码令牌,得到目标对象</summary>
  14461. <param name="token"></param>
  14462. <param name="message"></param>
  14463. <returns></returns>
  14464. </member>
  14465. <member name="M:NewLife.Web.JwtBuilder.RegisterAlgorithm(System.String,NewLife.Web.JwtEncodeDelegate,NewLife.Web.JwtDecodeDelegate)">
  14466. <summary>注册算法的编解码实现</summary>
  14467. <param name="algorithm"></param>
  14468. <param name="encode"></param>
  14469. <param name="decode"></param>
  14470. </member>
  14471. <member name="T:NewLife.Web.Link">
  14472. <summary>超链接</summary>
  14473. </member>
  14474. <member name="P:NewLife.Web.Link.Name">
  14475. <summary>名称</summary>
  14476. </member>
  14477. <member name="P:NewLife.Web.Link.FullName">
  14478. <summary>全名</summary>
  14479. </member>
  14480. <member name="P:NewLife.Web.Link.Url">
  14481. <summary>超链接</summary>
  14482. </member>
  14483. <member name="P:NewLife.Web.Link.RawUrl">
  14484. <summary>原始超链接</summary>
  14485. </member>
  14486. <member name="P:NewLife.Web.Link.Title">
  14487. <summary>标题</summary>
  14488. </member>
  14489. <member name="P:NewLife.Web.Link.Version">
  14490. <summary>版本</summary>
  14491. </member>
  14492. <member name="P:NewLife.Web.Link.Time">
  14493. <summary>时间</summary>
  14494. </member>
  14495. <member name="P:NewLife.Web.Link.Html">
  14496. <summary>原始Html</summary>
  14497. </member>
  14498. <member name="M:NewLife.Web.Link.Parse(System.String,System.String,System.Func{NewLife.Web.Link,System.Boolean})">
  14499. <summary>分析HTML中的链接</summary>
  14500. <param name="html">Html文本</param>
  14501. <param name="baseUrl">基础Url,用于生成超链接的完整Url</param>
  14502. <param name="filter">用于基础过滤的过滤器</param>
  14503. <returns></returns>
  14504. </member>
  14505. <member name="M:NewLife.Web.Link.Parse(System.String)">
  14506. <summary>分解文件</summary>
  14507. <param name="file"></param>
  14508. <returns></returns>
  14509. </member>
  14510. <member name="M:NewLife.Web.Link.ToString">
  14511. <summary>已重载。</summary>
  14512. <returns></returns>
  14513. </member>
  14514. <member name="T:NewLife.Web.PluginHelper">
  14515. <summary>插件助手</summary>
  14516. </member>
  14517. <member name="M:NewLife.Web.PluginHelper.LoadPlugin(System.String,System.String,System.String,System.String,System.String)">
  14518. <summary>加载插件</summary>
  14519. <param name="typeName"></param>
  14520. <param name="disname"></param>
  14521. <param name="dll"></param>
  14522. <param name="linkName"></param>
  14523. <param name="urls">提供下载地址的多个目标页面</param>
  14524. <returns></returns>
  14525. </member>
  14526. <member name="T:NewLife.Web.TokenModel">
  14527. <summary>访问令牌模型</summary>
  14528. </member>
  14529. <member name="P:NewLife.Web.TokenModel.AccessToken">
  14530. <summary>访问令牌</summary>
  14531. </member>
  14532. <member name="P:NewLife.Web.TokenModel.TokenType">
  14533. <summary>令牌类型</summary>
  14534. </member>
  14535. <member name="P:NewLife.Web.TokenModel.ExpireIn">
  14536. <summary>过期时间。秒</summary>
  14537. </member>
  14538. <member name="P:NewLife.Web.TokenModel.RefreshToken">
  14539. <summary>刷新令牌</summary>
  14540. </member>
  14541. <member name="T:NewLife.Web.TokenProvider">
  14542. <summary>令牌提供者</summary>
  14543. <remarks>
  14544. 文档 https://newlifex.com/core/token_provider
  14545. </remarks>
  14546. </member>
  14547. <member name="P:NewLife.Web.TokenProvider.Key">
  14548. <summary>密钥。签发方用私钥,验证方用公钥</summary>
  14549. </member>
  14550. <member name="M:NewLife.Web.TokenProvider.ReadKey(System.String,System.Boolean)">
  14551. <summary>读取密钥</summary>
  14552. <param name="file">文件</param>
  14553. <param name="generate">是否生成</param>
  14554. <returns></returns>
  14555. </member>
  14556. <member name="M:NewLife.Web.TokenProvider.Encode(System.String,System.DateTime)">
  14557. <summary>编码用户和有效期得到令牌</summary>
  14558. <param name="user">用户</param>
  14559. <param name="expire">有效期</param>
  14560. <returns></returns>
  14561. </member>
  14562. <member name="M:NewLife.Web.TokenProvider.Decode(System.String,System.DateTime@)">
  14563. <summary>令牌解码得到用户和有效期</summary>
  14564. <param name="token">令牌</param>
  14565. <param name="expire">有效期</param>
  14566. <returns></returns>
  14567. </member>
  14568. <member name="M:NewLife.Web.TokenProvider.TryDecode(System.String,System.String@,System.DateTime@)">
  14569. <summary>尝试解码令牌,即使失败,也会返回用户信息和有效时间</summary>
  14570. <param name="token">令牌</param>
  14571. <param name="user">用户信息</param>
  14572. <param name="expire">有效时间</param>
  14573. <returns>解码结果,成功或失败</returns>
  14574. </member>
  14575. <member name="T:NewLife.Web.UriInfo">
  14576. <summary>资源定位。无限制解析Url地址</summary>
  14577. </member>
  14578. <member name="P:NewLife.Web.UriInfo.Scheme">
  14579. <summary>协议</summary>
  14580. </member>
  14581. <member name="P:NewLife.Web.UriInfo.Host">
  14582. <summary>协议</summary>
  14583. </member>
  14584. <member name="P:NewLife.Web.UriInfo.Port">
  14585. <summary>协议</summary>
  14586. </member>
  14587. <member name="P:NewLife.Web.UriInfo.PathAndQuery">
  14588. <summary>协议</summary>
  14589. </member>
  14590. <member name="M:NewLife.Web.UriInfo.#ctor(System.String)">
  14591. <summary>实例化</summary>
  14592. <param name="value"></param>
  14593. </member>
  14594. <member name="P:NewLife.Web.UriInfo.Authority">
  14595. <summary>主机与端口。省略默认端口</summary>
  14596. </member>
  14597. <member name="M:NewLife.Web.UriInfo.Parse(System.String)">
  14598. <summary>解析Url字符串</summary>
  14599. <param name="value"></param>
  14600. </member>
  14601. <member name="M:NewLife.Web.UriInfo.ToString">
  14602. <summary>已重载。</summary>
  14603. <returns></returns>
  14604. </member>
  14605. <member name="T:NewLife.Web.WebClientX">
  14606. <summary>扩展的Web客户端</summary>
  14607. </member>
  14608. <member name="P:NewLife.Web.WebClientX.Timeout">
  14609. <summary>超时,默认15000毫秒</summary>
  14610. </member>
  14611. <member name="P:NewLife.Web.WebClientX.LastLink">
  14612. <summary>最后使用的连接名</summary>
  14613. </member>
  14614. <member name="M:NewLife.Web.WebClientX.#ctor">
  14615. <summary>实例化</summary>
  14616. </member>
  14617. <member name="M:NewLife.Web.WebClientX.Dispose(System.Boolean)">
  14618. <summary>销毁</summary>
  14619. <param name="disposing"></param>
  14620. </member>
  14621. <member name="M:NewLife.Web.WebClientX.EnsureCreate">
  14622. <summary>创建客户端会话</summary>
  14623. <returns></returns>
  14624. </member>
  14625. <member name="M:NewLife.Web.WebClientX.SendAsync(System.String,System.Net.Http.HttpContent)">
  14626. <summary>发送请求,获取响应</summary>
  14627. <param name="address"></param>
  14628. <param name="content"></param>
  14629. <returns></returns>
  14630. </member>
  14631. <member name="M:NewLife.Web.WebClientX.DownloadStringAsync(System.String)">
  14632. <summary>下载字符串</summary>
  14633. <param name="address"></param>
  14634. <returns></returns>
  14635. </member>
  14636. <member name="M:NewLife.Web.WebClientX.DownloadFileAsync(System.String,System.String)">
  14637. <summary>下载文件</summary>
  14638. <param name="address"></param>
  14639. <param name="fileName"></param>
  14640. </member>
  14641. <member name="M:NewLife.Web.WebClientX.GetHtml(System.String)">
  14642. <summary>获取指定地址的Html,自动处理文本编码</summary>
  14643. <param name="url"></param>
  14644. <returns></returns>
  14645. </member>
  14646. <member name="M:NewLife.Web.WebClientX.GetLinks(System.String)">
  14647. <summary>获取指定地址的Html,分析所有超链接</summary>
  14648. <param name="url"></param>
  14649. <returns></returns>
  14650. </member>
  14651. <member name="M:NewLife.Web.WebClientX.DownloadLink(System.String,System.String,System.String)">
  14652. <summary>分析指定页面指定名称的链接,并下载到目标目录,返回目标文件</summary>
  14653. <remarks>
  14654. 根据版本或时间降序排序选择
  14655. </remarks>
  14656. <param name="urls">指定页面</param>
  14657. <param name="name">页面上指定名称的链接</param>
  14658. <param name="destdir">要下载到的目标目录</param>
  14659. <returns>返回已下载的文件,无效时返回空</returns>
  14660. </member>
  14661. <member name="M:NewLife.Web.WebClientX.DownloadLinkAndExtract(System.String,System.String,System.String,System.Boolean)">
  14662. <summary>分析指定页面指定名称的链接,并下载到目标目录,解压Zip后返回目标文件</summary>
  14663. <param name="urls">提供下载地址的多个目标页面</param>
  14664. <param name="name">页面上指定名称的链接</param>
  14665. <param name="destdir">要下载到的目标目录</param>
  14666. <param name="overwrite">是否覆盖目标同名文件</param>
  14667. <returns></returns>
  14668. </member>
  14669. <member name="P:NewLife.Web.WebClientX.Log">
  14670. <summary>日志</summary>
  14671. </member>
  14672. <member name="T:NewLife.Windows.ConsoleHelper">
  14673. <summary>
  14674. 控制台帮助类,用于控制控制台的快速编辑、关闭按钮。
  14675. </summary>
  14676. </member>
  14677. <member name="M:NewLife.Windows.ConsoleHelper.DisableQuickEditMode">
  14678. <summary>
  14679. 退出编辑模式
  14680. </summary>
  14681. </member>
  14682. <member name="M:NewLife.Windows.ConsoleHelper.DisableCloseButton(System.String)">
  14683. <summary>
  14684. 禁用关闭按钮
  14685. </summary>
  14686. <param name="cmdTitle">控制台标题,程序名称</param>
  14687. </member>
  14688. <member name="M:NewLife.Windows.ConsoleHelper.DisableCloseButton(System.IntPtr)">
  14689. <summary>
  14690. 禁用关闭按钮
  14691. </summary>
  14692. <param name="windowHandle">窗口句柄</param>
  14693. </member>
  14694. <member name="M:NewLife.Windows.ConsoleHelper.CloseConsole(System.Object,System.ConsoleCancelEventArgs)">
  14695. <summary>
  14696. 关闭控制台
  14697. </summary>
  14698. <param name="sender"></param>
  14699. <param name="e"></param>
  14700. </member>
  14701. <member name="T:NewLife.Windows.PowerLineStatus">
  14702. <summary>系统电源状态</summary>
  14703. </member>
  14704. <member name="F:NewLife.Windows.PowerLineStatus.Offline">
  14705. <summary>脱机状态</summary>
  14706. </member>
  14707. <member name="F:NewLife.Windows.PowerLineStatus.Online">
  14708. <summary>联机状态</summary>
  14709. </member>
  14710. <member name="F:NewLife.Windows.PowerLineStatus.Unknown">
  14711. <summary>电源状态未知</summary>
  14712. </member>
  14713. <member name="T:NewLife.Windows.BatteryChargeStatus">
  14714. <summary>充电状态信息</summary>
  14715. </member>
  14716. <member name="F:NewLife.Windows.BatteryChargeStatus.High">
  14717. <summary>指示电池能量级别较高</summary>
  14718. </member>
  14719. <member name="F:NewLife.Windows.BatteryChargeStatus.Low">
  14720. <summary>指示电池能量级别较低</summary>
  14721. </member>
  14722. <member name="F:NewLife.Windows.BatteryChargeStatus.Critical">
  14723. <summary>指示电池能量严重不足</summary>
  14724. </member>
  14725. <member name="F:NewLife.Windows.BatteryChargeStatus.Charging">
  14726. <summary>指示电池正在充电</summary>
  14727. </member>
  14728. <member name="F:NewLife.Windows.BatteryChargeStatus.NoSystemBattery">
  14729. <summary>指示没有电池存在</summary>
  14730. </member>
  14731. <member name="F:NewLife.Windows.BatteryChargeStatus.Unknown">
  14732. <summary>指示未知电池状态</summary>
  14733. </member>
  14734. <member name="T:NewLife.Windows.PowerStatus">
  14735. <summary>电源状态</summary>
  14736. </member>
  14737. <member name="P:NewLife.Windows.PowerStatus.PowerLineStatus">
  14738. <summary>当前的系统电源状态</summary>
  14739. </member>
  14740. <member name="P:NewLife.Windows.PowerStatus.BatteryChargeStatus">
  14741. <summary>当前的电池电量状态</summary>
  14742. </member>
  14743. <member name="P:NewLife.Windows.PowerStatus.BatteryFullLifetime">
  14744. <summary>报告的主电池电源的完全充电寿命(以秒为单位)</summary>
  14745. </member>
  14746. <member name="P:NewLife.Windows.PowerStatus.BatteryLifePercent">
  14747. <summary>电池剩余电量的近似量</summary>
  14748. </member>
  14749. <member name="P:NewLife.Windows.PowerStatus.BatteryLifeRemaining">
  14750. <summary>电池的剩余使用时间的近似秒数</summary>
  14751. </member>
  14752. <member name="T:NewLife.Xml.XmlConfig`1">
  14753. <summary>Xml配置文件基类</summary>
  14754. <remarks>
  14755. 标准用法:TConfig.Current
  14756. 配置实体类通过<see cref="T:NewLife.Xml.XmlConfigFileAttribute"/>特性指定配置文件路径以及自动更新时间。
  14757. Current将加载配置文件,如果文件不存在或者加载失败,将实例化一个对象返回。
  14758. 考虑到自动刷新,不提供LoadFile和SaveFile等方法,可通过扩展方法ToXmlFileEntity和ToXmlFile实现。
  14759. 用户也可以通过配置实体类的静态构造函数修改基类的<see cref="P:NewLife.Xml.XmlConfig`1._.ConfigFile"/>和<see cref="P:NewLife.Xml.XmlConfig`1._.ReloadTime"/>来动态配置加载信息。
  14760. </remarks>
  14761. <typeparam name="TConfig"></typeparam>
  14762. </member>
  14763. <member name="P:NewLife.Xml.XmlConfig`1.Current">
  14764. <summary>当前实例。通过置空可以使其重新加载。</summary>
  14765. </member>
  14766. <member name="T:NewLife.Xml.XmlConfig`1._">
  14767. <summary>一些设置。派生类可以在自己的静态构造函数中指定</summary>
  14768. </member>
  14769. <member name="P:NewLife.Xml.XmlConfig`1._.Debug">
  14770. <summary>是否调试</summary>
  14771. </member>
  14772. <member name="P:NewLife.Xml.XmlConfig`1._.ConfigFile">
  14773. <summary>配置文件路径</summary>
  14774. </member>
  14775. <member name="P:NewLife.Xml.XmlConfig`1._.ReloadTime">
  14776. <summary>重新加载时间。单位:毫秒</summary>
  14777. </member>
  14778. <member name="P:NewLife.Xml.XmlConfig`1._.SaveNew">
  14779. <summary>没有配置文件时是否保存新配置。默认true</summary>
  14780. </member>
  14781. <member name="P:NewLife.Xml.XmlConfig`1.ConfigFile">
  14782. <summary>配置文件</summary>
  14783. </member>
  14784. <member name="F:NewLife.Xml.XmlConfig`1.lastWrite">
  14785. <summary>最后写入时间</summary>
  14786. </member>
  14787. <member name="F:NewLife.Xml.XmlConfig`1.expire">
  14788. <summary>过期时间。如果在这个时间之后再次访问,将检查文件修改时间</summary>
  14789. </member>
  14790. <member name="P:NewLife.Xml.XmlConfig`1.IsUpdated">
  14791. <summary>是否已更新。通过文件写入时间判断</summary>
  14792. </member>
  14793. <member name="M:NewLife.Xml.XmlConfig`1.SetExpire">
  14794. <summary>设置过期重新加载配置的时间</summary>
  14795. </member>
  14796. <member name="P:NewLife.Xml.XmlConfig`1.IsNew">
  14797. <summary>是否新的配置文件</summary>
  14798. </member>
  14799. <member name="M:NewLife.Xml.XmlConfig`1.Dispose(System.Boolean)">
  14800. <summary>销毁</summary>
  14801. <param name="disposing"></param>
  14802. </member>
  14803. <member name="M:NewLife.Xml.XmlConfig`1.Load(System.String)">
  14804. <summary>加载指定配置文件</summary>
  14805. <param name="filename"></param>
  14806. <returns></returns>
  14807. </member>
  14808. <member name="M:NewLife.Xml.XmlConfig`1.OnLoaded">
  14809. <summary>从配置文件中读取完成后触发</summary>
  14810. </member>
  14811. <member name="M:NewLife.Xml.XmlConfig`1.Save(System.String)">
  14812. <summary>保存到配置文件中去</summary>
  14813. <param name="filename"></param>
  14814. </member>
  14815. <member name="M:NewLife.Xml.XmlConfig`1.OnSaving(System.String,System.String,System.String)">
  14816. <summary>
  14817. 在持久化配置文件时执行
  14818. 如果重写该方法 请注意调用父类 以免造成配置文件不能正常持久化。
  14819. </summary>
  14820. <param name="filename">配置文件全路径</param>
  14821. <param name="oldXml">老配置文件的内容</param>
  14822. <param name="newXml">新配置文件的内容</param>
  14823. </member>
  14824. <member name="M:NewLife.Xml.XmlConfig`1.Save">
  14825. <summary>保存到配置文件中去</summary>
  14826. </member>
  14827. <member name="M:NewLife.Xml.XmlConfig`1.SaveAsync">
  14828. <summary>异步保存</summary>
  14829. </member>
  14830. <member name="M:NewLife.Xml.XmlConfig`1.OnNew">
  14831. <summary>新创建配置文件时执行</summary>
  14832. </member>
  14833. <member name="T:NewLife.Xml.XmlConfigFileAttribute">
  14834. <summary>Xml配置文件特性</summary>
  14835. </member>
  14836. <member name="P:NewLife.Xml.XmlConfigFileAttribute.FileName">
  14837. <summary>配置文件名</summary>
  14838. </member>
  14839. <member name="P:NewLife.Xml.XmlConfigFileAttribute.ReloadTime">
  14840. <summary>重新加载时间。单位:毫秒</summary>
  14841. </member>
  14842. <member name="M:NewLife.Xml.XmlConfigFileAttribute.#ctor(System.String)">
  14843. <summary>指定配置文件名</summary>
  14844. <param name="fileName"></param>
  14845. </member>
  14846. <member name="M:NewLife.Xml.XmlConfigFileAttribute.#ctor(System.String,System.Int32)">
  14847. <summary>指定配置文件名和重新加载时间(毫秒)</summary>
  14848. <param name="fileName"></param>
  14849. <param name="reloadTime"></param>
  14850. </member>
  14851. <member name="T:NewLife.Xml.XmlHelper">
  14852. <summary>Xml辅助类</summary>
  14853. </member>
  14854. <member name="M:NewLife.Xml.XmlHelper.ToXml(System.Object,System.Text.Encoding,System.Boolean,System.Boolean)">
  14855. <summary>序列化为Xml字符串</summary>
  14856. <param name="obj">要序列化为Xml的对象</param>
  14857. <param name="encoding">编码</param>
  14858. <param name="attachComment">是否附加注释,附加成员的Description和DisplayName注释</param>
  14859. <param name="useAttribute">是否使用特性输出</param>
  14860. <returns>Xml字符串</returns>
  14861. </member>
  14862. <member name="M:NewLife.Xml.XmlHelper.ToXml(System.Object,System.Text.Encoding,System.Boolean,System.Boolean,System.Boolean)">
  14863. <summary>序列化为Xml字符串</summary>
  14864. <param name="obj">要序列化为Xml的对象</param>
  14865. <param name="encoding">编码</param>
  14866. <param name="attachComment">是否附加注释,附加成员的Description和DisplayName注释</param>
  14867. <param name="useAttribute">是否使用特性输出</param>
  14868. <param name="omitXmlDeclaration">忽略XML声明</param>
  14869. <returns>Xml字符串</returns>
  14870. </member>
  14871. <member name="M:NewLife.Xml.XmlHelper.ToXml(System.Object,System.IO.Stream,System.Text.Encoding,System.Boolean,System.Boolean)">
  14872. <summary>序列化为Xml数据流</summary>
  14873. <param name="obj">要序列化为Xml的对象</param>
  14874. <param name="stream">目标数据流</param>
  14875. <param name="encoding">编码</param>
  14876. <param name="attachComment">是否附加注释,附加成员的Description和DisplayName注释</param>
  14877. <param name="useAttribute">是否使用特性输出</param>
  14878. </member>
  14879. <member name="M:NewLife.Xml.XmlHelper.ToXmlFile(System.Object,System.String,System.Text.Encoding,System.Boolean)">
  14880. <summary>序列化为Xml文件</summary>
  14881. <param name="obj">要序列化为Xml的对象</param>
  14882. <param name="file">目标Xml文件</param>
  14883. <param name="encoding">编码</param>
  14884. <param name="attachComment">是否附加注释,附加成员的Description和DisplayName注释</param>
  14885. <returns>Xml字符串</returns>
  14886. </member>
  14887. <member name="M:NewLife.Xml.XmlHelper.ToXmlEntity``1(System.String)">
  14888. <summary>字符串转为Xml实体对象</summary>
  14889. <typeparam name="TEntity">实体类型</typeparam>
  14890. <param name="xml">Xml字符串</param>
  14891. <returns>Xml实体对象</returns>
  14892. </member>
  14893. <member name="M:NewLife.Xml.XmlHelper.ToXmlEntity(System.String,System.Type)">
  14894. <summary>字符串转为Xml实体对象</summary>
  14895. <param name="xml">Xml字符串</param>
  14896. <param name="type">实体类型</param>
  14897. <returns>Xml实体对象</returns>
  14898. </member>
  14899. <member name="M:NewLife.Xml.XmlHelper.ToXmlEntity``1(System.IO.Stream,System.Text.Encoding)">
  14900. <summary>数据流转为Xml实体对象</summary>
  14901. <typeparam name="TEntity">实体类型</typeparam>
  14902. <param name="stream">数据流</param>
  14903. <param name="encoding">编码</param>
  14904. <returns>Xml实体对象</returns>
  14905. </member>
  14906. <member name="M:NewLife.Xml.XmlHelper.ToXmlEntity(System.IO.Stream,System.Type,System.Text.Encoding)">
  14907. <summary>数据流转为Xml实体对象</summary>
  14908. <param name="stream">数据流</param>
  14909. <param name="type">实体类型</param>
  14910. <param name="encoding">编码</param>
  14911. <returns>Xml实体对象</returns>
  14912. </member>
  14913. <member name="M:NewLife.Xml.XmlHelper.ToXmlFileEntity``1(System.String,System.Text.Encoding)">
  14914. <summary>Xml文件转为Xml实体对象</summary>
  14915. <typeparam name="TEntity">实体类型</typeparam>
  14916. <param name="file">Xml文件</param>
  14917. <param name="encoding">编码</param>
  14918. <returns>Xml实体对象</returns>
  14919. </member>
  14920. <member name="M:NewLife.Xml.XmlHelper.ToXmlDictionary(System.String)">
  14921. <summary>简单Xml转为字符串字典</summary>
  14922. <param name="xml"></param>
  14923. <returns></returns>
  14924. </member>
  14925. <member name="M:NewLife.Xml.XmlHelper.ToXml(System.Collections.Generic.IDictionary{System.String,System.String},System.String)">
  14926. <summary>字符串字典转为Xml</summary>
  14927. <param name="dic"></param>
  14928. <param name="rootName"></param>
  14929. <returns></returns>
  14930. </member>
  14931. <member name="T:NewLife.Yun.OssClient">
  14932. <summary>阿里云文件存储</summary>
  14933. <remarks>
  14934. 文档 https://newlifex.com/core/oss
  14935. </remarks>
  14936. </member>
  14937. <member name="P:NewLife.Yun.OssClient.Server">
  14938. <summary>访问域名。Endpoint</summary>
  14939. </member>
  14940. <member name="P:NewLife.Yun.OssClient.AppId">
  14941. <summary>访问密钥。AccessKeyId</summary>
  14942. </member>
  14943. <member name="P:NewLife.Yun.OssClient.Secret">
  14944. <summary>访问密钥。AccessKeySecret</summary>
  14945. </member>
  14946. <member name="P:NewLife.Yun.OssClient.BucketName">
  14947. <summary>存储空间</summary>
  14948. </member>
  14949. <member name="P:NewLife.Yun.OssClient.CanGetUrl">
  14950. <summary>是否支持获取文件直接访问Url</summary>
  14951. </member>
  14952. <member name="P:NewLife.Yun.OssClient.CanDelete">
  14953. <summary>是否支持删除</summary>
  14954. </member>
  14955. <member name="P:NewLife.Yun.OssClient.CanSearch">
  14956. <summary>是否支持搜索</summary>
  14957. </member>
  14958. <member name="M:NewLife.Yun.OssClient.InvokeAsync``1(System.Net.Http.HttpMethod,System.String,System.Object)">
  14959. <summary>异步调用命令</summary>
  14960. <param name="method"></param>
  14961. <param name="action"></param>
  14962. <param name="args"></param>
  14963. <returns></returns>
  14964. </member>
  14965. <member name="M:NewLife.Yun.OssClient.ListBuckets">
  14966. <summary>列出所有存储空间名称</summary>
  14967. <returns></returns>
  14968. </member>
  14969. <member name="M:NewLife.Yun.OssClient.ListBuckets(System.String,System.String,System.Int32)">
  14970. <summary>列出所有存储空间明细,支持过滤</summary>
  14971. <param name="prefix"></param>
  14972. <param name="marker"></param>
  14973. <param name="maxKeys"></param>
  14974. <returns></returns>
  14975. </member>
  14976. <member name="M:NewLife.Yun.OssClient.ListObjects">
  14977. <summary>列出所有文件名称</summary>
  14978. <returns></returns>
  14979. </member>
  14980. <member name="M:NewLife.Yun.OssClient.ListObjects(System.String,System.String,System.Int32)">
  14981. <summary>列出所有文件明细,支持过滤</summary>
  14982. <param name="prefix"></param>
  14983. <param name="marker"></param>
  14984. <param name="maxKeys"></param>
  14985. <returns></returns>
  14986. </member>
  14987. <member name="M:NewLife.Yun.OssClient.Put(System.String,NewLife.Data.Packet)">
  14988. <summary>上传文件</summary>
  14989. <param name="objectName">对象文件名</param>
  14990. <param name="data">数据内容</param>
  14991. <returns></returns>
  14992. </member>
  14993. <member name="M:NewLife.Yun.OssClient.Get(System.String)">
  14994. <summary>获取文件</summary>
  14995. <param name="objectName"></param>
  14996. <returns></returns>
  14997. </member>
  14998. <member name="M:NewLife.Yun.OssClient.GetUrl(System.String)">
  14999. <summary>获取文件直接访问Url</summary>
  15000. <param name="id">对象文件名</param>
  15001. <returns></returns>
  15002. </member>
  15003. <member name="M:NewLife.Yun.OssClient.Delete(System.String)">
  15004. <summary>删除文件</summary>
  15005. <param name="objectName"></param>
  15006. <returns></returns>
  15007. </member>
  15008. <member name="M:NewLife.Yun.OssClient.Search(System.String,System.Int32,System.Int32)">
  15009. <summary>搜索文件</summary>
  15010. <param name="pattern">匹配模式。如/202304/*.jpg</param>
  15011. <param name="start">开始序号。0开始</param>
  15012. <param name="count">最大个数</param>
  15013. <returns></returns>
  15014. </member>
  15015. <member name="T:System.Collections.Generic.CollectionHelper">
  15016. <summary>集合扩展</summary>
  15017. </member>
  15018. <member name="M:System.Collections.Generic.CollectionHelper.ToArray``1(System.Collections.Generic.ICollection{``0})">
  15019. <summary>集合转为数组,加锁确保安全</summary>
  15020. <typeparam name="T"></typeparam>
  15021. <param name="collection"></param>
  15022. <returns></returns>
  15023. </member>
  15024. <member name="M:System.Collections.Generic.CollectionHelper.ToKeyArray``2(System.Collections.Generic.IDictionary{``0,``1},System.Int32)">
  15025. <summary>集合转为数组</summary>
  15026. <typeparam name="TKey"></typeparam>
  15027. <typeparam name="TValue"></typeparam>
  15028. <param name="collection"></param>
  15029. <param name="index"></param>
  15030. <returns></returns>
  15031. </member>
  15032. <member name="M:System.Collections.Generic.CollectionHelper.ToValueArray``2(System.Collections.Generic.IDictionary{``0,``1},System.Int32)">
  15033. <summary>集合转为数组</summary>
  15034. <typeparam name="TKey"></typeparam>
  15035. <typeparam name="TValue"></typeparam>
  15036. <param name="collection"></param>
  15037. <param name="index"></param>
  15038. <returns></returns>
  15039. </member>
  15040. <member name="M:System.Collections.Generic.CollectionHelper.ToDictionary(System.Object)">
  15041. <summary>目标匿名参数对象转为名值字典</summary>
  15042. <param name="source"></param>
  15043. <returns></returns>
  15044. </member>
  15045. <member name="M:System.Collections.Generic.CollectionHelper.Merge(System.Collections.Generic.IDictionary{System.String,System.Object},System.Object,System.Boolean,System.String[])">
  15046. <summary>合并字典参数</summary>
  15047. <param name="dic">字典</param>
  15048. <param name="target">目标对象</param>
  15049. <param name="overwrite">是否覆盖同名参数</param>
  15050. <param name="excludes">排除项</param>
  15051. <returns></returns>
  15052. </member>
  15053. <member name="M:System.Collections.Generic.CollectionHelper.ToNullable``2(System.Collections.Generic.IDictionary{``0,``1},System.Collections.Generic.IEqualityComparer{``0})">
  15054. <summary>转为可空字典</summary>
  15055. <typeparam name="TKey"></typeparam>
  15056. <typeparam name="TValue"></typeparam>
  15057. <param name="collection"></param>
  15058. <param name="comparer"></param>
  15059. <returns></returns>
  15060. </member>
  15061. <member name="M:System.Collections.Generic.CollectionHelper.Take``1(System.Collections.Generic.Queue{``0},System.Int32)">
  15062. <summary>从队列里面获取指定个数元素</summary>
  15063. <typeparam name="T"></typeparam>
  15064. <param name="collection">消费集合</param>
  15065. <param name="count">元素个数</param>
  15066. <returns></returns>
  15067. </member>
  15068. <member name="M:System.Collections.Generic.CollectionHelper.Take``1(System.Collections.Concurrent.IProducerConsumerCollection{``0},System.Int32)">
  15069. <summary>从消费集合里面获取指定个数元素</summary>
  15070. <typeparam name="T"></typeparam>
  15071. <param name="collection">消费集合</param>
  15072. <param name="count">元素个数</param>
  15073. <returns></returns>
  15074. </member>
  15075. <member name="T:System.Collections.Generic.ListExtension">
  15076. <summary>扩展List,支持遍历中修改元素</summary>
  15077. </member>
  15078. <member name="M:System.Collections.Generic.ListExtension.Find``1(System.Collections.Generic.IList{``0},System.Predicate{``0})">
  15079. <summary>线程安全,搜索并返回第一个,支持遍历中修改元素</summary>
  15080. <param name="list">实体列表</param>
  15081. <param name="match">条件</param>
  15082. <returns></returns>
  15083. </member>
  15084. <member name="M:System.Collections.Generic.ListExtension.FindAll``1(System.Collections.Generic.IList{``0},System.Predicate{``0})">
  15085. <summary>线程安全,搜索并返回第一个,支持遍历中修改元素</summary>
  15086. <param name="list">实体列表</param>
  15087. <param name="match">条件</param>
  15088. <returns></returns>
  15089. </member>
  15090. <member name="T:System.Index">
  15091. <summary></summary>
  15092. </member>
  15093. <member name="F:System.Index._value">
  15094. <summary></summary>
  15095. </member>
  15096. <member name="P:System.Index.Start">
  15097. <summary></summary>
  15098. </member>
  15099. <member name="P:System.Index.End">
  15100. <summary></summary>
  15101. </member>
  15102. <member name="P:System.Index.Value">
  15103. <summary></summary>
  15104. </member>
  15105. <member name="P:System.Index.IsFromEnd">
  15106. <summary></summary>
  15107. </member>
  15108. <member name="M:System.Index.#ctor(System.Int32,System.Boolean)">
  15109. <summary></summary>
  15110. <param name="value"></param>
  15111. <param name="fromEnd"></param>
  15112. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  15113. </member>
  15114. <member name="M:System.Index.FromStart(System.Int32)">
  15115. <summary></summary>
  15116. <param name="value"></param>
  15117. <returns></returns>
  15118. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  15119. </member>
  15120. <member name="M:System.Index.FromEnd(System.Int32)">
  15121. <summary></summary>
  15122. <param name="value"></param>
  15123. <returns></returns>
  15124. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  15125. </member>
  15126. <member name="M:System.Index.GetOffset(System.Int32)">
  15127. <summary></summary>
  15128. <param name="length"></param>
  15129. <returns></returns>
  15130. </member>
  15131. <member name="M:System.Index.Equals(System.Object)">
  15132. <summary></summary>
  15133. <param name="value"></param>
  15134. <returns></returns>
  15135. </member>
  15136. <member name="M:System.Index.Equals(System.Index)">
  15137. <summary></summary>
  15138. <param name="other"></param>
  15139. <returns></returns>
  15140. </member>
  15141. <member name="M:System.Index.GetHashCode">
  15142. <summary></summary>
  15143. <returns></returns>
  15144. </member>
  15145. <member name="M:System.Index.op_Implicit(System.Int32)~System.Index">
  15146. <summary></summary>
  15147. <param name="value"></param>
  15148. </member>
  15149. <member name="M:System.Index.ToString">
  15150. <summary></summary>
  15151. <returns></returns>
  15152. </member>
  15153. <member name="T:System.Range">
  15154. <summary></summary>
  15155. </member>
  15156. <member name="P:System.Range.Start">
  15157. <summary></summary>
  15158. </member>
  15159. <member name="P:System.Range.End">
  15160. <summary></summary>
  15161. </member>
  15162. <member name="P:System.Range.All">
  15163. <summary></summary>
  15164. </member>
  15165. <member name="M:System.Range.#ctor(System.Index,System.Index)">
  15166. <summary></summary>
  15167. <param name="start"></param>
  15168. <param name="end"></param>
  15169. </member>
  15170. <member name="M:System.Range.Equals(System.Object)">
  15171. <summary></summary>
  15172. <param name="value"></param>
  15173. <returns></returns>
  15174. </member>
  15175. <member name="M:System.Range.Equals(System.Range)">
  15176. <summary></summary>
  15177. <param name="other"></param>
  15178. <returns></returns>
  15179. </member>
  15180. <member name="M:System.Range.GetHashCode">
  15181. <summary></summary>
  15182. <returns></returns>
  15183. </member>
  15184. <member name="M:System.Range.ToString">
  15185. <summary></summary>
  15186. <returns></returns>
  15187. </member>
  15188. <member name="M:System.Range.StartAt(System.Index)">
  15189. <summary></summary>
  15190. <param name="start"></param>
  15191. <returns></returns>
  15192. </member>
  15193. <member name="M:System.Range.EndAt(System.Index)">
  15194. <summary></summary>
  15195. <param name="end"></param>
  15196. <returns></returns>
  15197. </member>
  15198. <member name="M:System.Range.GetOffsetAndLength(System.Int32)">
  15199. <summary></summary>
  15200. <param name="length"></param>
  15201. <returns></returns>
  15202. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  15203. </member>
  15204. <member name="T:System.Utility">
  15205. <summary>工具类</summary>
  15206. <remarks>
  15207. 文档 https://newlifex.com/core/utility
  15208. 采用静态架构,允许外部重载工具类的各种实现<seealso cref="T:System.DefaultConvert"/>。
  15209. 所有类型转换均支持默认值,默认值为该default(T),在转换失败时返回默认值。
  15210. </remarks>
  15211. </member>
  15212. <member name="P:System.Utility.Convert">
  15213. <summary>类型转换提供者</summary>
  15214. <remarks>重载默认提供者<seealso cref="T:System.DefaultConvert"/>并赋值给<see cref="P:System.Utility.Convert"/>可改变所有类型转换的行为</remarks>
  15215. </member>
  15216. <member name="M:System.Utility.ToInt(System.Object,System.Int32)">
  15217. <summary>转为整数,转换失败时返回默认值。支持字符串、全角、字节数组(小端)、时间(Unix秒不转UTC)</summary>
  15218. <remarks>Int16/UInt32/Int64等,可以先转为最常用的Int32后再二次处理</remarks>
  15219. <param name="value">待转换对象</param>
  15220. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15221. <returns></returns>
  15222. </member>
  15223. <member name="M:System.Utility.ToLong(System.Object,System.Int64)">
  15224. <summary>转为长整数,转换失败时返回默认值。支持字符串、全角、字节数组(小端)、时间(Unix毫秒不转UTC)</summary>
  15225. <remarks></remarks>
  15226. <param name="value">待转换对象</param>
  15227. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15228. <returns></returns>
  15229. </member>
  15230. <member name="M:System.Utility.ToDouble(System.Object,System.Double)">
  15231. <summary>转为浮点数,转换失败时返回默认值。支持字符串、全角、字节数组(小端)</summary>
  15232. <remarks>Single可以先转为最常用的Double后再二次处理</remarks>
  15233. <param name="value">待转换对象</param>
  15234. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15235. <returns></returns>
  15236. </member>
  15237. <member name="M:System.Utility.ToDecimal(System.Object,System.Decimal)">
  15238. <summary>转为高精度浮点数,转换失败时返回默认值。支持字符串、全角、字节数组(小端)</summary>
  15239. <remarks>Single可以先转为最常用的Double后再二次处理</remarks>
  15240. <param name="value">待转换对象</param>
  15241. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15242. <returns></returns>
  15243. </member>
  15244. <member name="M:System.Utility.ToBoolean(System.Object,System.Boolean)">
  15245. <summary>转为布尔型,转换失败时返回默认值。支持大小写True/False、0和非零</summary>
  15246. <param name="value">待转换对象</param>
  15247. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15248. <returns></returns>
  15249. </member>
  15250. <member name="M:System.Utility.ToDateTime(System.Object)">
  15251. <summary>转为时间日期,转换失败时返回最小时间。支持字符串、整数(Unix秒不考虑UTC转本地)</summary>
  15252. <remarks>
  15253. 整数转时间日期时,取1970-01-01加上指定秒数,不考虑UTC时间和本地时间。
  15254. 长整数转时间日期时,取1970-01-01加上指定毫秒数,不考虑UTC时间和本地时间。
  15255. 在网络中传输时间日期时,特别是物联网设备到云平台的通信,一般取客户端本地UTC时间,转为长整型传输,服务端再转为本地时间。
  15256. 因为设备和服务端可能不在同一时区,甚至多个设备也没有处于同一个时区。
  15257. </remarks>
  15258. <param name="value">待转换对象</param>
  15259. <returns></returns>
  15260. </member>
  15261. <member name="M:System.Utility.ToDateTime(System.Object,System.DateTime)">
  15262. <summary>转为时间日期,转换失败时返回默认值。支持字符串、整数(Unix秒不考虑UTC转本地)</summary>
  15263. <remarks>
  15264. 整数转时间日期时,取1970-01-01加上指定秒数,不考虑UTC时间和本地时间。
  15265. 长整数转时间日期时,取1970-01-01加上指定毫秒数,不考虑UTC时间和本地时间。
  15266. 在网络中传输时间日期时,特别是物联网设备到云平台的通信,一般取客户端本地UTC时间,转为长整型传输,服务端再转为本地时间。
  15267. 因为设备和服务端可能不在同一时区,甚至多个设备也没有处于同一个时区。
  15268. <see cref="F:System.DateTime.MinValue"/>不是常量无法做默认值。
  15269. </remarks>
  15270. <param name="value">待转换对象</param>
  15271. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15272. <returns></returns>
  15273. </member>
  15274. <member name="M:System.Utility.ToDateTimeOffset(System.Object)">
  15275. <summary>转为时间日期,转换失败时返回最小时间。支持字符串、整数(Unix秒)</summary>
  15276. <param name="value">待转换对象</param>
  15277. <returns></returns>
  15278. </member>
  15279. <member name="M:System.Utility.ToDateTimeOffset(System.Object,System.DateTimeOffset)">
  15280. <summary>转为时间日期,转换失败时返回默认值</summary>
  15281. <remarks><see cref="F:System.DateTimeOffset.MinValue"/>不是常量无法做默认值</remarks>
  15282. <param name="value">待转换对象</param>
  15283. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15284. <returns></returns>
  15285. </member>
  15286. <member name="M:System.Utility.Trim(System.DateTime,System.String)">
  15287. <summary>去掉时间日期秒后面部分,可指定毫秒ms、分m、小时h</summary>
  15288. <param name="value">时间日期</param>
  15289. <param name="format">格式字符串,默认s格式化到秒,ms格式化到毫秒</param>
  15290. <returns></returns>
  15291. </member>
  15292. <member name="M:System.Utility.Trim(System.DateTimeOffset,System.String)">
  15293. <summary>去掉时间日期秒后面部分,可指定毫秒</summary>
  15294. <param name="value">时间日期</param>
  15295. <param name="format">格式字符串,默认s格式化到秒,ms格式化到毫秒</param>
  15296. <returns></returns>
  15297. </member>
  15298. <member name="M:System.Utility.ToFullString(System.DateTime)">
  15299. <summary>时间日期转为yyyy-MM-dd HH:mm:ss完整字符串,对UTC时间加后缀</summary>
  15300. <remarks>最常用的时间日期格式,可以无视各平台以及系统自定义的时间格式</remarks>
  15301. <param name="value">待转换对象</param>
  15302. <returns></returns>
  15303. </member>
  15304. <member name="M:System.Utility.ToFullString(System.DateTime,System.String)">
  15305. <summary>时间日期转为yyyy-MM-dd HH:mm:ss完整字符串,支持指定最小时间的字符串</summary>
  15306. <remarks>最常用的时间日期格式,可以无视各平台以及系统自定义的时间格式</remarks>
  15307. <param name="value">待转换对象</param>
  15308. <param name="emptyValue">字符串空值时(DateTime.MinValue)显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15309. <returns></returns>
  15310. </member>
  15311. <member name="M:System.Utility.ToFullString(System.DateTime,System.Boolean,System.String)">
  15312. <summary>时间日期转为yyyy-MM-dd HH:mm:ss.fff完整字符串,支持指定最小时间的字符串</summary>
  15313. <remarks>最常用的时间日期格式,可以无视各平台以及系统自定义的时间格式</remarks>
  15314. <param name="value">待转换对象</param>
  15315. <param name="useMillisecond">是否使用毫秒</param>
  15316. <param name="emptyValue">字符串空值时(DateTime.MinValue)显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15317. <returns></returns>
  15318. </member>
  15319. <member name="M:System.Utility.ToFullString(System.DateTimeOffset,System.String)">
  15320. <summary>时间日期转为yyyy-MM-dd HH:mm:ss +08:00完整字符串,支持指定最小时间的字符串</summary>
  15321. <remarks>最常用的时间日期格式,可以无视各平台以及系统自定义的时间格式</remarks>
  15322. <param name="value">待转换对象</param>
  15323. <param name="emptyValue">字符串空值时(DateTimeOffset.MinValue)显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15324. <returns></returns>
  15325. </member>
  15326. <member name="M:System.Utility.ToFullString(System.DateTimeOffset,System.Boolean,System.String)">
  15327. <summary>时间日期转为yyyy-MM-dd HH:mm:ss.fff +08:00完整字符串,支持指定最小时间的字符串</summary>
  15328. <remarks>最常用的时间日期格式,可以无视各平台以及系统自定义的时间格式</remarks>
  15329. <param name="value">待转换对象</param>
  15330. <param name="useMillisecond">是否使用毫秒</param>
  15331. <param name="emptyValue">字符串空值时(DateTimeOffset.MinValue)显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15332. <returns></returns>
  15333. </member>
  15334. <member name="M:System.Utility.ToString(System.DateTime,System.String,System.String)">
  15335. <summary>时间日期转为指定格式字符串</summary>
  15336. <param name="value">待转换对象</param>
  15337. <param name="format">格式化字符串</param>
  15338. <param name="emptyValue">字符串空值时显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15339. <returns></returns>
  15340. </member>
  15341. <member name="M:System.Utility.ToGMK(System.UInt64,System.String)">
  15342. <summary>字节单位字符串</summary>
  15343. <param name="value">数值</param>
  15344. <param name="format">格式化字符串</param>
  15345. <returns></returns>
  15346. </member>
  15347. <member name="M:System.Utility.ToGMK(System.Int64,System.String)">
  15348. <summary>字节单位字符串</summary>
  15349. <param name="value">数值</param>
  15350. <param name="format">格式化字符串</param>
  15351. <returns></returns>
  15352. </member>
  15353. <member name="M:System.Utility.GetTrue(System.Exception)">
  15354. <summary>获取内部真实异常</summary>
  15355. <param name="ex"></param>
  15356. <returns></returns>
  15357. </member>
  15358. <member name="M:System.Utility.GetMessage(System.Exception)">
  15359. <summary>获取异常消息</summary>
  15360. <param name="ex">异常</param>
  15361. <returns></returns>
  15362. </member>
  15363. <member name="T:System.DefaultConvert">
  15364. <summary>默认转换</summary>
  15365. </member>
  15366. <member name="M:System.DefaultConvert.ToInt(System.Object,System.Int32)">
  15367. <summary>转为整数,转换失败时返回默认值。支持字符串、全角、字节数组(小端)、时间(Unix秒)</summary>
  15368. <param name="value">待转换对象</param>
  15369. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15370. <returns></returns>
  15371. </member>
  15372. <member name="M:System.DefaultConvert.ToLong(System.Object,System.Int64)">
  15373. <summary>转为长整数。支持字符串、全角、字节数组(小端)、时间(Unix毫秒)</summary>
  15374. <param name="value">待转换对象</param>
  15375. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15376. <returns></returns>
  15377. </member>
  15378. <member name="M:System.DefaultConvert.ToDouble(System.Object,System.Double)">
  15379. <summary>转为浮点数</summary>
  15380. <param name="value">待转换对象</param>
  15381. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15382. <returns></returns>
  15383. </member>
  15384. <member name="M:System.DefaultConvert.ToDecimal(System.Object,System.Decimal)">
  15385. <summary>转为高精度浮点数</summary>
  15386. <param name="value">待转换对象</param>
  15387. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15388. <returns></returns>
  15389. </member>
  15390. <member name="M:System.DefaultConvert.ToBoolean(System.Object,System.Boolean)">
  15391. <summary>转为布尔型。支持大小写True/False、0和非零</summary>
  15392. <param name="value">待转换对象</param>
  15393. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15394. <returns></returns>
  15395. </member>
  15396. <member name="M:System.DefaultConvert.ToDateTime(System.Object,System.DateTime)">
  15397. <summary>转为时间日期,转换失败时返回最小时间。支持字符串、整数(Unix秒)</summary>
  15398. <param name="value">待转换对象</param>
  15399. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15400. <returns></returns>
  15401. <remarks>
  15402. 整数(Unix秒)转换后不包含时区信息,需要调用.ToLocalTime()来转换为当前时区时间
  15403. </remarks>
  15404. </member>
  15405. <member name="M:System.DefaultConvert.ToDateTimeOffset(System.Object,System.DateTimeOffset)">
  15406. <summary>转为时间日期,转换失败时返回最小时间。支持字符串、整数(Unix秒)</summary>
  15407. <param name="value">待转换对象</param>
  15408. <param name="defaultValue">默认值。待转换对象无效时使用</param>
  15409. <returns></returns>
  15410. </member>
  15411. <member name="M:System.DefaultConvert.ToDBC(System.String)">
  15412. <summary>全角为半角</summary>
  15413. <remarks>全角半角的关系是相差0xFEE0</remarks>
  15414. <param name="str"></param>
  15415. <returns></returns>
  15416. </member>
  15417. <member name="M:System.DefaultConvert.Trim(System.DateTime,System.String)">
  15418. <summary>去掉时间日期秒后面部分,可指定毫秒ms、分m、小时h</summary>
  15419. <param name="value">时间日期</param>
  15420. <param name="format">格式字符串,默认s格式化到秒,ms格式化到毫秒</param>
  15421. <returns></returns>
  15422. </member>
  15423. <member name="M:System.DefaultConvert.ToFullString(System.DateTime,System.Boolean,System.String)">
  15424. <summary>时间日期转为yyyy-MM-dd HH:mm:ss完整字符串</summary>
  15425. <param name="value">待转换对象</param>
  15426. <param name="useMillisecond">是否使用毫秒</param>
  15427. <param name="emptyValue">字符串空值时显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15428. <returns></returns>
  15429. </member>
  15430. <member name="M:System.DefaultConvert.ToFullString(System.DateTimeOffset,System.Boolean,System.String)">
  15431. <summary>时间日期转为yyyy-MM-dd HH:mm:ss完整字符串</summary>
  15432. <param name="value">待转换对象</param>
  15433. <param name="useMillisecond">是否使用毫秒</param>
  15434. <param name="emptyValue">字符串空值时显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15435. <returns></returns>
  15436. </member>
  15437. <member name="M:System.DefaultConvert.ToString(System.DateTime,System.String,System.String)">
  15438. <summary>时间日期转为指定格式字符串</summary>
  15439. <param name="value">待转换对象</param>
  15440. <param name="format">格式化字符串</param>
  15441. <param name="emptyValue">字符串空值时显示的字符串,null表示原样显示最小时间,String.Empty表示不显示</param>
  15442. <returns></returns>
  15443. </member>
  15444. <member name="M:System.DefaultConvert.GetTrue(System.Exception)">
  15445. <summary>获取内部真实异常</summary>
  15446. <param name="ex"></param>
  15447. <returns></returns>
  15448. </member>
  15449. <member name="M:System.DefaultConvert.GetMessage(System.Exception)">
  15450. <summary>获取异常消息</summary>
  15451. <param name="ex">异常</param>
  15452. <returns></returns>
  15453. </member>
  15454. <member name="M:System.DefaultConvert.ToGMK(System.UInt64,System.String)">
  15455. <summary>字节单位字符串</summary>
  15456. <param name="value">数值</param>
  15457. <param name="format">格式化字符串</param>
  15458. <returns></returns>
  15459. </member>
  15460. <member name="T:System.ConcurrentDictionaryExtensions">
  15461. <summary>并发字典扩展</summary>
  15462. </member>
  15463. <member name="M:System.ConcurrentDictionaryExtensions.Remove``2(System.Collections.Concurrent.ConcurrentDictionary{``0,``1},``0)">
  15464. <summary>从并发字典中删除</summary>
  15465. <typeparam name="TKey"></typeparam>
  15466. <typeparam name="TValue"></typeparam>
  15467. <param name="dict"></param>
  15468. <param name="key"></param>
  15469. <returns></returns>
  15470. </member>
  15471. <member name="T:System.IO.PathHelper">
  15472. <summary>路径操作帮助</summary>
  15473. <remarks>
  15474. 文档 https://newlifex.com/core/path_helper
  15475. GetBasePath 依赖BasePath,支持参数和环境变量设置,主要用于存放X组件自身配置和日志等目录。
  15476. GetFullPath 依赖BaseDirectory,默认为应用程序域基础目录,支持参数和环境变量设置,此时跟GetBasePath保持一致。
  15477. GetFullPath更多用于表示当前工作目录,不可以轻易修改为Environment.CurrentDirectory。
  15478. 在vs运行应用时,Environment.CurrentDirectory是源码文件所在目录,而不是可执行文件目录。
  15479. 在StarAgent运行应用时,BasePath和Environment.CurrentDirectory都被修改为工作目录。
  15480. </remarks>
  15481. </member>
  15482. <member name="P:System.IO.PathHelper.BasePath">
  15483. <summary>基础目录。GetBasePath依赖于此,默认为当前应用程序域基础目录。用于X组件内部各目录,专门为函数计算而定制</summary>
  15484. <remarks>
  15485. 为了适应函数计算,该路径将支持从命令行参数和环境变量读取
  15486. </remarks>
  15487. </member>
  15488. <member name="P:System.IO.PathHelper.BaseDirectory">
  15489. <summary>基准目录。GetFullPath依赖于此,默认为当前应用程序域基础目录。支持BasePath参数修改</summary>
  15490. <remarks>
  15491. 为了适应函数计算,该路径将支持从命令行参数和环境变量读取
  15492. </remarks>
  15493. </member>
  15494. <member name="M:System.IO.PathHelper.GetFullPath(System.String)">
  15495. <summary>获取文件或目录基于应用程序域基目录的全路径,过滤相对目录</summary>
  15496. <remarks>不确保目录后面一定有分隔符,是否有分隔符由原始路径末尾决定</remarks>
  15497. <param name="path">文件或目录</param>
  15498. <returns></returns>
  15499. </member>
  15500. <member name="M:System.IO.PathHelper.GetBasePath(System.String)">
  15501. <summary>获取文件或目录的全路径,过滤相对目录。用于X组件内部各目录,专门为函数计算而定制</summary>
  15502. <remarks>不确保目录后面一定有分隔符,是否有分隔符由原始路径末尾决定</remarks>
  15503. <param name="path">文件或目录</param>
  15504. <returns></returns>
  15505. </member>
  15506. <member name="M:System.IO.PathHelper.GetCurrentPath(System.String)">
  15507. <summary>获取文件或目录基于当前目录的全路径,过滤相对目录</summary>
  15508. <remarks>不确保目录后面一定有分隔符,是否有分隔符由原始路径末尾决定</remarks>
  15509. <param name="path">文件或目录</param>
  15510. <returns></returns>
  15511. </member>
  15512. <member name="M:System.IO.PathHelper.EnsureDirectory(System.String,System.Boolean)">
  15513. <summary>确保目录存在,若不存在则创建</summary>
  15514. <remarks>
  15515. 斜杠结尾的路径一定是目录,无视第二参数;
  15516. 默认是文件,这样子只需要确保上一层目录存在即可,否则如果把文件当成了目录,目录的创建会导致文件无法创建。
  15517. </remarks>
  15518. <param name="path">文件路径或目录路径,斜杠结尾的路径一定是目录,无视第二参数</param>
  15519. <param name="isfile">该路径是否是否文件路径。文件路径需要取目录部分</param>
  15520. <returns></returns>
  15521. </member>
  15522. <member name="M:System.IO.PathHelper.CombinePath(System.String,System.String[])">
  15523. <summary>合并多段路径</summary>
  15524. <param name="path"></param>
  15525. <param name="ps"></param>
  15526. <returns></returns>
  15527. </member>
  15528. <member name="M:System.IO.PathHelper.AsFile(System.String)">
  15529. <summary>文件路径作为文件信息</summary>
  15530. <param name="file"></param>
  15531. <returns></returns>
  15532. </member>
  15533. <member name="M:System.IO.PathHelper.ReadBytes(System.IO.FileInfo,System.Int32,System.Int32)">
  15534. <summary>从文件中读取数据</summary>
  15535. <param name="file"></param>
  15536. <param name="offset"></param>
  15537. <param name="count"></param>
  15538. <returns></returns>
  15539. </member>
  15540. <member name="M:System.IO.PathHelper.WriteBytes(System.IO.FileInfo,System.Byte[],System.Int32)">
  15541. <summary>把数据写入文件指定位置</summary>
  15542. <param name="file"></param>
  15543. <param name="data"></param>
  15544. <param name="offset"></param>
  15545. <returns></returns>
  15546. </member>
  15547. <member name="M:System.IO.PathHelper.CopyToIfNewer(System.IO.FileInfo,System.String)">
  15548. <summary>复制到目标文件,目标文件必须已存在,且源文件较新</summary>
  15549. <param name="fi">源文件</param>
  15550. <param name="destFileName">目标文件</param>
  15551. <returns></returns>
  15552. </member>
  15553. <member name="M:System.IO.PathHelper.OpenRead(System.IO.FileInfo,System.Boolean,System.Action{System.IO.Stream})">
  15554. <summary>打开并读取</summary>
  15555. <param name="file">文件信息</param>
  15556. <param name="compressed">是否压缩</param>
  15557. <param name="func">要对文件流操作的委托</param>
  15558. <returns></returns>
  15559. </member>
  15560. <member name="M:System.IO.PathHelper.OpenWrite(System.IO.FileInfo,System.Boolean,System.Action{System.IO.Stream})">
  15561. <summary>打开并写入</summary>
  15562. <param name="file">文件信息</param>
  15563. <param name="compressed">是否压缩</param>
  15564. <param name="func">要对文件流操作的委托</param>
  15565. <returns></returns>
  15566. </member>
  15567. <member name="M:System.IO.PathHelper.Extract(System.IO.FileInfo,System.String,System.Boolean)">
  15568. <summary>解压缩</summary>
  15569. <param name="fi"></param>
  15570. <param name="destDir"></param>
  15571. <param name="overwrite">是否覆盖目标同名文件</param>
  15572. </member>
  15573. <member name="M:System.IO.PathHelper.Compress(System.IO.FileInfo,System.String)">
  15574. <summary>压缩文件</summary>
  15575. <param name="fi"></param>
  15576. <param name="destFile"></param>
  15577. </member>
  15578. <member name="M:System.IO.PathHelper.AsDirectory(System.String)">
  15579. <summary>路径作为目录信息</summary>
  15580. <param name="dir"></param>
  15581. <returns></returns>
  15582. </member>
  15583. <member name="M:System.IO.PathHelper.GetAllFiles(System.IO.DirectoryInfo,System.String,System.Boolean)">
  15584. <summary>获取目录内所有符合条件的文件,支持多文件扩展匹配</summary>
  15585. <param name="di">目录</param>
  15586. <param name="exts">文件扩展列表。比如*.exe;*.dll;*.config</param>
  15587. <param name="allSub">是否包含所有子孙目录文件</param>
  15588. <returns></returns>
  15589. </member>
  15590. <member name="M:System.IO.PathHelper.CopyTo(System.IO.DirectoryInfo,System.String,System.String,System.Boolean,System.Action{System.String})">
  15591. <summary>复制目录中的文件</summary>
  15592. <param name="di">源目录</param>
  15593. <param name="destDirName">目标目录</param>
  15594. <param name="exts">文件扩展列表。比如*.exe;*.dll;*.config</param>
  15595. <param name="allSub">是否包含所有子孙目录文件</param>
  15596. <param name="callback">复制每一个文件之前的回调</param>
  15597. <returns></returns>
  15598. </member>
  15599. <member name="M:System.IO.PathHelper.CopyToIfNewer(System.IO.DirectoryInfo,System.String,System.String,System.Boolean,System.Action{System.String})">
  15600. <summary>对比源目录和目标目录,复制双方都存在且源目录较新的文件</summary>
  15601. <param name="di">源目录</param>
  15602. <param name="destDirName">目标目录</param>
  15603. <param name="exts">文件扩展列表。比如*.exe;*.dll;*.config</param>
  15604. <param name="allSub">是否包含所有子孙目录文件</param>
  15605. <param name="callback">复制每一个文件之前的回调</param>
  15606. <returns></returns>
  15607. </member>
  15608. <member name="M:System.IO.PathHelper.CopyIfNewer(System.IO.DirectoryInfo,System.String[],System.String,System.Boolean)">
  15609. <summary>从多个目标目录复制较新文件到当前目录</summary>
  15610. <param name="di">当前目录</param>
  15611. <param name="source">多个目标目录</param>
  15612. <param name="exts">文件扩展列表。比如*.exe;*.dll;*.config</param>
  15613. <param name="allSub">是否包含所有子孙目录文件</param>
  15614. <returns></returns>
  15615. </member>
  15616. <member name="M:System.IO.PathHelper.Compress(System.IO.DirectoryInfo,System.String)">
  15617. <summary>压缩</summary>
  15618. <param name="di"></param>
  15619. <param name="destFile"></param>
  15620. </member>
  15621. <member name="T:System.Runtime.CompilerServices.IsExternalInit">
  15622. <summary>保留供编译器用于跟踪元数据。 开发人员不应在源代码中使用此类。</summary>
  15623. </member>
  15624. <member name="T:System.Diagnostics.CodeAnalysis.MaybeNullAttribute">
  15625. <summary>返回可能为空</summary>
  15626. </member>
  15627. <member name="T:System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute">
  15628. <summary>当返回指定值时可能为空</summary>
  15629. </member>
  15630. <member name="P:System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue">
  15631. <summary>返回值</summary>
  15632. </member>
  15633. <member name="M:System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.#ctor(System.Boolean)">
  15634. <summary>实例化</summary>
  15635. <param name="returnValue"></param>
  15636. </member>
  15637. <member name="T:System.Diagnostics.CodeAnalysis.MemberNotNullAttribute">
  15638. <summary>执行方法后指定成员不为空</summary>
  15639. </member>
  15640. <member name="P:System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.Members">
  15641. <summary>不为空的成员</summary>
  15642. </member>
  15643. <member name="M:System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.#ctor(System.String)">
  15644. <summary>成员不为空</summary>
  15645. <param name="member"></param>
  15646. </member>
  15647. <member name="M:System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.#ctor(System.String[])">
  15648. <summary>成员不为空</summary>
  15649. <param name="members"></param>
  15650. </member>
  15651. <member name="T:System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute">
  15652. <summary>执行方法后指定成员不为空(带条件)</summary>
  15653. </member>
  15654. <member name="P:System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.ReturnValue">
  15655. <summary>返回值</summary>
  15656. </member>
  15657. <member name="P:System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.Members">
  15658. <summary>不为空的成员</summary>
  15659. </member>
  15660. <member name="M:System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.#ctor(System.Boolean,System.String)">
  15661. <summary>成员不为空</summary>
  15662. <param name="returnValue"></param>
  15663. <param name="member"></param>
  15664. </member>
  15665. <member name="M:System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.#ctor(System.Boolean,System.String[])">
  15666. <summary>成员不为空</summary>
  15667. <param name="returnValue"></param>
  15668. <param name="members"></param>
  15669. </member>
  15670. <member name="T:System.Diagnostics.CodeAnalysis.NotNullAttribute">
  15671. <summary>不为空</summary>
  15672. </member>
  15673. <member name="T:System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute">
  15674. <summary>指定参数不为空时返回也不为空</summary>
  15675. </member>
  15676. <member name="P:System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.ParameterName">
  15677. <summary>指定参数</summary>
  15678. </member>
  15679. <member name="M:System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.#ctor(System.String)">
  15680. <summary>实例化</summary>
  15681. <param name="parameterName"></param>
  15682. </member>
  15683. <member name="T:System.Diagnostics.CodeAnalysis.NotNullWhenAttribute">
  15684. <summary>指定在方法返回 ReturnValue 时,即使相应的类型允许,参数也不会为 null。</summary>
  15685. </member>
  15686. <member name="P:System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue">
  15687. <summary>获取返回值条件。</summary>
  15688. </member>
  15689. <member name="M:System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.#ctor(System.Boolean)">
  15690. <summary>使用指定的返回值条件初始化属性。</summary>
  15691. <param name="returnValue"></param>
  15692. </member>
  15693. <member name="T:System.Web.Script.Serialization.ScriptIgnoreAttribute">
  15694. <summary>忽略Json序列化</summary>
  15695. </member>
  15696. <member name="T:System.Windows.Forms.ControlHelper">
  15697. <summary>控件助手</summary>
  15698. </member>
  15699. <member name="M:System.Windows.Forms.ControlHelper.Invoke(System.Windows.Forms.Control,System.Action)">
  15700. <summary>执行无参委托</summary>
  15701. <param name="control"></param>
  15702. <param name="method"></param>
  15703. <returns></returns>
  15704. </member>
  15705. <member name="M:System.Windows.Forms.ControlHelper.Invoke``1(System.Windows.Forms.Control,System.Action{``0},``0)">
  15706. <summary>执行单一参数无返回值的委托</summary>
  15707. <typeparam name="T"></typeparam>
  15708. <param name="control"></param>
  15709. <param name="method"></param>
  15710. <param name="arg"></param>
  15711. <returns></returns>
  15712. </member>
  15713. <member name="M:System.Windows.Forms.ControlHelper.Invoke``2(System.Windows.Forms.Control,System.Action{``0,``1},``0,``1)">
  15714. <summary>执行二参数无返回值的委托</summary>
  15715. <typeparam name="T"></typeparam>
  15716. <typeparam name="T2"></typeparam>
  15717. <param name="control"></param>
  15718. <param name="method"></param>
  15719. <param name="arg"></param>
  15720. <param name="arg2"></param>
  15721. </member>
  15722. <member name="M:System.Windows.Forms.ControlHelper.Append(System.Windows.Forms.TextBoxBase,System.String,System.Int32)">
  15723. <summary>附加文本到文本控件末尾。主要解决非UI线程以及滚动控件等问题</summary>
  15724. <param name="txt">控件</param>
  15725. <param name="msg">消息</param>
  15726. <param name="maxLines">最大行数。超过该行数讲清空控件</param>
  15727. <returns></returns>
  15728. </member>
  15729. <member name="M:System.Windows.Forms.ControlHelper.Scroll(System.Windows.Forms.TextBoxBase,System.Boolean)">
  15730. <summary>滚动控件的滚动条</summary>
  15731. <param name="txt">指定控件</param>
  15732. <param name="bottom">是否底端,或者顶端</param>
  15733. <returns></returns>
  15734. </member>
  15735. <member name="M:System.Windows.Forms.ControlHelper.ProcessReturn(System.Windows.Forms.TextBoxBase,System.String@)">
  15736. <summary>处理回车,移到行首</summary>
  15737. <param name="txt"></param>
  15738. <param name="m"></param>
  15739. </member>
  15740. <member name="M:System.Windows.Forms.ControlHelper.SetDefaultStyle(System.Windows.Forms.Control,System.Int32)">
  15741. <summary>设置默认样式,包括字体、前景色、背景色</summary>
  15742. <param name="control">控件</param>
  15743. <param name="size">字体大小</param>
  15744. <returns></returns>
  15745. </member>
  15746. <member name="M:System.Windows.Forms.ControlHelper.SetFontSize(System.Windows.Forms.Control,System.Int32)">
  15747. <summary>设置字体大小</summary>
  15748. <param name="control"></param>
  15749. <param name="size"></param>
  15750. <returns></returns>
  15751. </member>
  15752. <member name="M:System.Windows.Forms.ControlHelper.ColourDefault(System.Windows.Forms.RichTextBox,System.Int32)">
  15753. <summary>采用默认着色方案进行着色</summary>
  15754. <param name="rtb">文本控件</param>
  15755. <param name="start">开始位置</param>
  15756. </member>
  15757. <member name="M:System.Windows.Forms.ControlHelper.ChangeCppColor(System.Windows.Forms.RichTextBox,System.Int32)">
  15758. <summary>改变C++类名方法名颜色</summary>
  15759. </member>
  15760. <member name="M:System.Windows.Forms.ControlHelper.Colour(System.Windows.Forms.RichTextBox,System.Text.RegularExpressions.Regex,System.Int32,System.Drawing.Color[])">
  15761. <summary>着色文本控件的内容</summary>
  15762. <param name="rtb">文本控件</param>
  15763. <param name="reg">正则表达式</param>
  15764. <param name="start">开始位置</param>
  15765. <param name="colors">颜色数组</param>
  15766. <returns></returns>
  15767. </member>
  15768. <member name="M:System.Windows.Forms.ControlHelper.Colour(System.Windows.Forms.RichTextBox,System.String,System.Int32,System.Drawing.Color[])">
  15769. <summary>着色文本控件的内容</summary>
  15770. <param name="rtb">文本控件</param>
  15771. <param name="reg">正则表达式</param>
  15772. <param name="start">开始位置</param>
  15773. <param name="colors">颜色数组</param>
  15774. <returns></returns>
  15775. </member>
  15776. <member name="P:System.Windows.Forms.ControlHelper.Dpi">
  15777. <summary>当前Dpi</summary>
  15778. </member>
  15779. <member name="M:System.Windows.Forms.ControlHelper.FixDpi(System.Windows.Forms.ListView)">
  15780. <summary>修正ListView的Dpi</summary>
  15781. <param name="lv"></param>
  15782. </member>
  15783. <member name="M:System.Windows.Forms.ControlHelper.FixDpi(System.Windows.Forms.Form)">
  15784. <summary>修正窗体的Dpi</summary>
  15785. <param name="frm"></param>
  15786. </member>
  15787. <member name="T:SM4">
  15788. <summary>SM4(国密4)</summary>
  15789. </member>
  15790. <member name="M:SM4.Create">
  15791. <summary>实例化SM4</summary>
  15792. </member>
  15793. <member name="M:SM4.#ctor">
  15794. <summary>实例化SM4</summary>
  15795. </member>
  15796. <member name="M:SM4.GenerateIV">
  15797. <summary>生成IV</summary>
  15798. </member>
  15799. <member name="M:SM4.GenerateKey">
  15800. <summary>生成密钥</summary>
  15801. </member>
  15802. <member name="M:SM4.CreateEncryptor(System.Byte[],System.Byte[])">
  15803. <summary>生成加密器</summary>
  15804. <param name="key"></param>
  15805. <param name="iv"></param>
  15806. <returns></returns>
  15807. </member>
  15808. <member name="M:SM4.CreateDecryptor(System.Byte[],System.Byte[])">
  15809. <summary>生成解密器</summary>
  15810. <param name="key"></param>
  15811. <param name="iv"></param>
  15812. <returns></returns>
  15813. </member>
  15814. <member name="T:SM4Transform">
  15815. <summary>SM4无线局域网标准的分组数据算法。对称加密,密钥长度和分组长度均为128位。</summary>
  15816. <remarks>
  15817. 我国国家密码管理局在20012年公布了无线局域网产品使用的SM4密码算法——商用密码算法。
  15818. 它是分组算法当中的一种,算法特点是设计简沽,结构有特点,安全高效。
  15819. 数据分组长度为128比特,密钥长度为128 比特。加密算法与密钥扩展算法都采用32轮迭代结构。
  15820. SM4密码算法以字节(8位)和字(32位)作为单位进行数据处理。
  15821. SM4密码算法是对合运算,因此解密算法与加密算法的结构相同,只是轮密钥的使用顺序相反,解密轮密钥是加密轮密钥的逆序。
  15822. </remarks>
  15823. </member>
  15824. <member name="F:SM4Transform.rk">
  15825. <summary>roundKeys</summary>
  15826. </member>
  15827. <member name="P:SM4Transform.CanReuseTransform">
  15828. <summary>获取一个值,该值指示是否可重复使用当前转换。</summary>
  15829. </member>
  15830. <member name="P:SM4Transform.CanTransformMultipleBlocks">
  15831. <summary>获取一个值,该值指示是否可以转换多个块。</summary>
  15832. </member>
  15833. <member name="P:SM4Transform.InputBlockSize">
  15834. <summary>获取输入块大小。</summary>
  15835. </member>
  15836. <member name="P:SM4Transform.OutputBlockSize">
  15837. <summary>获取输出块大小。</summary>
  15838. </member>
  15839. <member name="M:SM4Transform.#ctor(System.Byte[],System.Byte[],System.Boolean)">
  15840. <summary>实例化转换器</summary>
  15841. <param name="key"></param>
  15842. <param name="iv"></param>
  15843. <param name="encryptMode"></param>
  15844. <exception cref="T:System.ArgumentException"></exception>
  15845. </member>
  15846. <member name="M:SM4Transform.Dispose">
  15847. <summary>销毁</summary>
  15848. </member>
  15849. <member name="M:SM4Transform.EncryptData(System.Byte[],System.Int32,System.Byte[],System.Int32)">
  15850. <summary>块加密数据,传入缓冲区必须是整块数据</summary>
  15851. <param name="inputBuffer"></param>
  15852. <param name="inputOffset"></param>
  15853. <param name="outputBuffer"></param>
  15854. <param name="outputOffset"></param>
  15855. <returns></returns>
  15856. <exception cref="T:System.ArgumentException"></exception>
  15857. </member>
  15858. <member name="M:SM4Transform.TransformBlock(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)">
  15859. <summary>转换输入字节数组的指定区域,并将所得到的转换复制到输出字节数组的指定区域。</summary>
  15860. <param name="inputBuffer"></param>
  15861. <param name="inputOffset"></param>
  15862. <param name="inputCount"></param>
  15863. <param name="outputBuffer"></param>
  15864. <param name="outputOffset"></param>
  15865. <returns></returns>
  15866. <exception cref="T:System.ArgumentException"></exception>
  15867. </member>
  15868. <member name="M:SM4Transform.TransformFinalBlock(System.Byte[],System.Int32,System.Int32)">
  15869. <summary>转换指定字节数组的指定区域。</summary>
  15870. <param name="inputBuffer"></param>
  15871. <param name="inputOffset"></param>
  15872. <param name="inputCount"></param>
  15873. <returns></returns>
  15874. <exception cref="T:System.ArgumentException"></exception>
  15875. </member>
  15876. </members>
  15877. </doc>