send.cs 133 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711
  1. // **********************************************************************
  2. //
  3. // Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
  4. //
  5. // This copy of Ice is licensed to you under the terms described in the
  6. // ICE_LICENSE file included in this distribution.
  7. //
  8. // **********************************************************************
  9. //
  10. // Ice version 3.5.1
  11. //
  12. // <auto-generated>
  13. //
  14. // Generated from file `send.ice'
  15. //
  16. // Warning: do not edit this file.
  17. //
  18. // </auto-generated>
  19. //
  20. using _System = global::System;
  21. using _Microsoft = global::Microsoft;
  22. #pragma warning disable 1591
  23. namespace IceCompactId
  24. {
  25. }
  26. namespace Slice
  27. {
  28. [_System.Runtime.InteropServices.ComVisible(false)]
  29. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704")]
  30. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707")]
  31. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709")]
  32. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710")]
  33. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711")]
  34. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1715")]
  35. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
  36. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720")]
  37. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1722")]
  38. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724")]
  39. public partial class TransMessage : Ice.ObjectImpl
  40. {
  41. #region Slice data members
  42. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  43. public int type;
  44. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  45. public long serial;
  46. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  47. public int length;
  48. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  49. public byte[] data;
  50. #endregion
  51. #region Constructors
  52. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  53. public TransMessage()
  54. {
  55. }
  56. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  57. public TransMessage(int type, long serial, int length, byte[] data)
  58. {
  59. this.type = type;
  60. this.serial = serial;
  61. this.length = length;
  62. this.data = data;
  63. }
  64. #endregion
  65. #region Slice type-related members
  66. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  67. public static new readonly string[] ids__ =
  68. {
  69. "::Ice::Object",
  70. "::Slice::TransMessage"
  71. };
  72. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  73. public override bool ice_isA(string s)
  74. {
  75. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  76. }
  77. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  78. public override bool ice_isA(string s, Ice.Current current__)
  79. {
  80. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  81. }
  82. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  83. public override string[] ice_ids()
  84. {
  85. return ids__;
  86. }
  87. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  88. public override string[] ice_ids(Ice.Current current__)
  89. {
  90. return ids__;
  91. }
  92. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  93. public override string ice_id()
  94. {
  95. return ids__[1];
  96. }
  97. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  98. public override string ice_id(Ice.Current current__)
  99. {
  100. return ids__[1];
  101. }
  102. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  103. public static new string ice_staticId()
  104. {
  105. return ids__[1];
  106. }
  107. #endregion
  108. #region Operation dispatch
  109. #endregion
  110. #region Marshaling support
  111. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  112. protected override void writeImpl__(IceInternal.BasicStream os__)
  113. {
  114. os__.startWriteSlice(ice_staticId(), -1, true);
  115. os__.writeInt(type);
  116. os__.writeLong(serial);
  117. os__.writeInt(length);
  118. Slice.ByteDataHelper.write(os__, data);
  119. os__.endWriteSlice();
  120. }
  121. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  122. protected override void readImpl__(IceInternal.BasicStream is__)
  123. {
  124. is__.startReadSlice();
  125. type = is__.readInt();
  126. serial = is__.readLong();
  127. length = is__.readInt();
  128. data = Slice.ByteDataHelper.read(is__);
  129. is__.endReadSlice();
  130. }
  131. #endregion
  132. }
  133. [_System.Runtime.InteropServices.ComVisible(false)]
  134. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704")]
  135. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707")]
  136. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709")]
  137. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710")]
  138. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711")]
  139. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1715")]
  140. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
  141. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720")]
  142. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1722")]
  143. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724")]
  144. public partial interface Sender : Ice.Object, SenderOperations_, SenderOperationsNC_
  145. {
  146. }
  147. [_System.Runtime.InteropServices.ComVisible(false)]
  148. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704")]
  149. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707")]
  150. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709")]
  151. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710")]
  152. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711")]
  153. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1715")]
  154. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
  155. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720")]
  156. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1722")]
  157. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724")]
  158. public partial interface ServerCallback : Ice.Object, ServerCallbackOperations_, ServerCallbackOperationsNC_
  159. {
  160. }
  161. [_System.Runtime.InteropServices.ComVisible(false)]
  162. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704")]
  163. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1707")]
  164. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709")]
  165. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710")]
  166. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711")]
  167. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1715")]
  168. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
  169. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720")]
  170. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1722")]
  171. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724")]
  172. public partial interface ICombatSession : Ice.Object, ICombatSessionOperations_, ICombatSessionOperationsNC_, Glacier2.Session
  173. {
  174. }
  175. }
  176. namespace Slice
  177. {
  178. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  179. public delegate void Callback_Sender_SendData();
  180. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  181. public delegate void Callback_Sender_SendAck();
  182. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  183. public delegate void Callback_Sender_Connect();
  184. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  185. public delegate void Callback_Sender_ConnectAck();
  186. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  187. public delegate void Callback_Sender_Close();
  188. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  189. public delegate void Callback_Sender_CloseAck();
  190. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  191. public delegate void Callback_ServerCallback_ServerToClient();
  192. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  193. public delegate void Callback_ICombatSession_SetCallback();
  194. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  195. public delegate void Callback_ICombatSession_ClientToServer();
  196. }
  197. namespace Slice
  198. {
  199. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  200. public interface TransMessagePrx : Ice.ObjectPrx
  201. {
  202. }
  203. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  204. public interface SenderPrx : Ice.ObjectPrx
  205. {
  206. void SendData(int recvPort, Slice.TransMessage message);
  207. void SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__);
  208. Ice.AsyncResult<Slice.Callback_Sender_SendData> begin_SendData(int recvPort, Slice.TransMessage message);
  209. Ice.AsyncResult<Slice.Callback_Sender_SendData> begin_SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__);
  210. Ice.AsyncResult begin_SendData(int recvPort, Slice.TransMessage message, Ice.AsyncCallback cb__, object cookie__);
  211. Ice.AsyncResult begin_SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  212. void end_SendData(Ice.AsyncResult r__);
  213. void SendAck(int recvPort, long serial);
  214. void SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> context__);
  215. Ice.AsyncResult<Slice.Callback_Sender_SendAck> begin_SendAck(int recvPort, long serial);
  216. Ice.AsyncResult<Slice.Callback_Sender_SendAck> begin_SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> ctx__);
  217. Ice.AsyncResult begin_SendAck(int recvPort, long serial, Ice.AsyncCallback cb__, object cookie__);
  218. Ice.AsyncResult begin_SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  219. void end_SendAck(Ice.AsyncResult r__);
  220. void Connect(int recvPort);
  221. void Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__);
  222. Ice.AsyncResult<Slice.Callback_Sender_Connect> begin_Connect(int recvPort);
  223. Ice.AsyncResult<Slice.Callback_Sender_Connect> begin_Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__);
  224. Ice.AsyncResult begin_Connect(int recvPort, Ice.AsyncCallback cb__, object cookie__);
  225. Ice.AsyncResult begin_Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  226. void end_Connect(Ice.AsyncResult r__);
  227. void ConnectAck();
  228. void ConnectAck(_System.Collections.Generic.Dictionary<string, string> context__);
  229. Ice.AsyncResult<Slice.Callback_Sender_ConnectAck> begin_ConnectAck();
  230. Ice.AsyncResult<Slice.Callback_Sender_ConnectAck> begin_ConnectAck(_System.Collections.Generic.Dictionary<string, string> ctx__);
  231. Ice.AsyncResult begin_ConnectAck(Ice.AsyncCallback cb__, object cookie__);
  232. Ice.AsyncResult begin_ConnectAck(_System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  233. void end_ConnectAck(Ice.AsyncResult r__);
  234. void Close(int recvPort);
  235. void Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__);
  236. Ice.AsyncResult<Slice.Callback_Sender_Close> begin_Close(int recvPort);
  237. Ice.AsyncResult<Slice.Callback_Sender_Close> begin_Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__);
  238. Ice.AsyncResult begin_Close(int recvPort, Ice.AsyncCallback cb__, object cookie__);
  239. Ice.AsyncResult begin_Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  240. void end_Close(Ice.AsyncResult r__);
  241. void CloseAck(int recvPort);
  242. void CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__);
  243. Ice.AsyncResult<Slice.Callback_Sender_CloseAck> begin_CloseAck(int recvPort);
  244. Ice.AsyncResult<Slice.Callback_Sender_CloseAck> begin_CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__);
  245. Ice.AsyncResult begin_CloseAck(int recvPort, Ice.AsyncCallback cb__, object cookie__);
  246. Ice.AsyncResult begin_CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  247. void end_CloseAck(Ice.AsyncResult r__);
  248. }
  249. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  250. public interface ServerCallbackPrx : Ice.ObjectPrx
  251. {
  252. void ServerToClient(Slice.TransMessage message);
  253. void ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__);
  254. Ice.AsyncResult<Slice.Callback_ServerCallback_ServerToClient> begin_ServerToClient(Slice.TransMessage message);
  255. Ice.AsyncResult<Slice.Callback_ServerCallback_ServerToClient> begin_ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__);
  256. Ice.AsyncResult begin_ServerToClient(Slice.TransMessage message, Ice.AsyncCallback cb__, object cookie__);
  257. Ice.AsyncResult begin_ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  258. void end_ServerToClient(Ice.AsyncResult r__);
  259. }
  260. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  261. public interface ICombatSessionPrx : Glacier2.SessionPrx
  262. {
  263. void SetCallback(Slice.ServerCallbackPrx callback);
  264. void SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> context__);
  265. Ice.AsyncResult<Slice.Callback_ICombatSession_SetCallback> begin_SetCallback(Slice.ServerCallbackPrx callback);
  266. Ice.AsyncResult<Slice.Callback_ICombatSession_SetCallback> begin_SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> ctx__);
  267. Ice.AsyncResult begin_SetCallback(Slice.ServerCallbackPrx callback, Ice.AsyncCallback cb__, object cookie__);
  268. Ice.AsyncResult begin_SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  269. void end_SetCallback(Ice.AsyncResult r__);
  270. void ClientToServer(Slice.TransMessage message);
  271. void ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__);
  272. Ice.AsyncResult<Slice.Callback_ICombatSession_ClientToServer> begin_ClientToServer(Slice.TransMessage message);
  273. Ice.AsyncResult<Slice.Callback_ICombatSession_ClientToServer> begin_ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__);
  274. Ice.AsyncResult begin_ClientToServer(Slice.TransMessage message, Ice.AsyncCallback cb__, object cookie__);
  275. Ice.AsyncResult begin_ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__);
  276. void end_ClientToServer(Ice.AsyncResult r__);
  277. }
  278. }
  279. namespace Slice
  280. {
  281. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  282. public interface SenderOperations_
  283. {
  284. void SendData(int recvPort, Slice.TransMessage message, Ice.Current current__);
  285. void SendAck(int recvPort, long serial, Ice.Current current__);
  286. void Connect(int recvPort, Ice.Current current__);
  287. void ConnectAck(Ice.Current current__);
  288. void Close(int recvPort, Ice.Current current__);
  289. void CloseAck(int recvPort, Ice.Current current__);
  290. }
  291. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  292. public interface SenderOperationsNC_
  293. {
  294. void SendData(int recvPort, Slice.TransMessage message);
  295. void SendAck(int recvPort, long serial);
  296. void Connect(int recvPort);
  297. void ConnectAck();
  298. void Close(int recvPort);
  299. void CloseAck(int recvPort);
  300. }
  301. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  302. public interface ServerCallbackOperations_
  303. {
  304. void ServerToClient(Slice.TransMessage message, Ice.Current current__);
  305. }
  306. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  307. public interface ServerCallbackOperationsNC_
  308. {
  309. void ServerToClient(Slice.TransMessage message);
  310. }
  311. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  312. public interface ICombatSessionOperations_ : Glacier2.SessionOperations_
  313. {
  314. void SetCallback(Slice.ServerCallbackPrx callback, Ice.Current current__);
  315. void ClientToServer(Slice.TransMessage message, Ice.Current current__);
  316. }
  317. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  318. public interface ICombatSessionOperationsNC_ : Glacier2.SessionOperationsNC_
  319. {
  320. void SetCallback(Slice.ServerCallbackPrx callback);
  321. void ClientToServer(Slice.TransMessage message);
  322. }
  323. }
  324. namespace Slice
  325. {
  326. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  327. public sealed class ByteDataHelper
  328. {
  329. public static void write(IceInternal.BasicStream os__, byte[] v__)
  330. {
  331. os__.writeByteSeq(v__);
  332. }
  333. public static byte[] read(IceInternal.BasicStream is__)
  334. {
  335. byte[] v__;
  336. v__ = is__.readByteSeq();
  337. return v__;
  338. }
  339. }
  340. [_System.Runtime.InteropServices.ComVisible(false)]
  341. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  342. public sealed class TransMessagePrxHelper : Ice.ObjectPrxHelperBase, TransMessagePrx
  343. {
  344. #region Asynchronous operations
  345. #endregion
  346. #region Checked and unchecked cast operations
  347. public static TransMessagePrx checkedCast(Ice.ObjectPrx b)
  348. {
  349. if(b == null)
  350. {
  351. return null;
  352. }
  353. TransMessagePrx r = b as TransMessagePrx;
  354. if((r == null) && b.ice_isA(ice_staticId()))
  355. {
  356. TransMessagePrxHelper h = new TransMessagePrxHelper();
  357. h.copyFrom__(b);
  358. r = h;
  359. }
  360. return r;
  361. }
  362. public static TransMessagePrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary<string, string> ctx)
  363. {
  364. if(b == null)
  365. {
  366. return null;
  367. }
  368. TransMessagePrx r = b as TransMessagePrx;
  369. if((r == null) && b.ice_isA(ice_staticId(), ctx))
  370. {
  371. TransMessagePrxHelper h = new TransMessagePrxHelper();
  372. h.copyFrom__(b);
  373. r = h;
  374. }
  375. return r;
  376. }
  377. public static TransMessagePrx checkedCast(Ice.ObjectPrx b, string f)
  378. {
  379. if(b == null)
  380. {
  381. return null;
  382. }
  383. Ice.ObjectPrx bb = b.ice_facet(f);
  384. try
  385. {
  386. if(bb.ice_isA(ice_staticId()))
  387. {
  388. TransMessagePrxHelper h = new TransMessagePrxHelper();
  389. h.copyFrom__(bb);
  390. return h;
  391. }
  392. }
  393. catch(Ice.FacetNotExistException)
  394. {
  395. }
  396. return null;
  397. }
  398. public static TransMessagePrx checkedCast(Ice.ObjectPrx b, string f, _System.Collections.Generic.Dictionary<string, string> ctx)
  399. {
  400. if(b == null)
  401. {
  402. return null;
  403. }
  404. Ice.ObjectPrx bb = b.ice_facet(f);
  405. try
  406. {
  407. if(bb.ice_isA(ice_staticId(), ctx))
  408. {
  409. TransMessagePrxHelper h = new TransMessagePrxHelper();
  410. h.copyFrom__(bb);
  411. return h;
  412. }
  413. }
  414. catch(Ice.FacetNotExistException)
  415. {
  416. }
  417. return null;
  418. }
  419. public static TransMessagePrx uncheckedCast(Ice.ObjectPrx b)
  420. {
  421. if(b == null)
  422. {
  423. return null;
  424. }
  425. TransMessagePrx r = b as TransMessagePrx;
  426. if(r == null)
  427. {
  428. TransMessagePrxHelper h = new TransMessagePrxHelper();
  429. h.copyFrom__(b);
  430. r = h;
  431. }
  432. return r;
  433. }
  434. public static TransMessagePrx uncheckedCast(Ice.ObjectPrx b, string f)
  435. {
  436. if(b == null)
  437. {
  438. return null;
  439. }
  440. Ice.ObjectPrx bb = b.ice_facet(f);
  441. TransMessagePrxHelper h = new TransMessagePrxHelper();
  442. h.copyFrom__(bb);
  443. return h;
  444. }
  445. public static readonly string[] ids__ =
  446. {
  447. "::Ice::Object",
  448. "::Slice::TransMessage"
  449. };
  450. public static string ice_staticId()
  451. {
  452. return ids__[1];
  453. }
  454. #endregion
  455. #region Marshaling support
  456. protected override Ice.ObjectDelM_ createDelegateM__()
  457. {
  458. return new TransMessageDelM_();
  459. }
  460. protected override Ice.ObjectDelD_ createDelegateD__()
  461. {
  462. return new TransMessageDelD_();
  463. }
  464. public static void write__(IceInternal.BasicStream os__, TransMessagePrx v__)
  465. {
  466. os__.writeProxy(v__);
  467. }
  468. public static TransMessagePrx read__(IceInternal.BasicStream is__)
  469. {
  470. Ice.ObjectPrx proxy = is__.readProxy();
  471. if(proxy != null)
  472. {
  473. TransMessagePrxHelper result = new TransMessagePrxHelper();
  474. result.copyFrom__(proxy);
  475. return result;
  476. }
  477. return null;
  478. }
  479. #endregion
  480. }
  481. [_System.Runtime.InteropServices.ComVisible(false)]
  482. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  483. public sealed class SenderPrxHelper : Ice.ObjectPrxHelperBase, SenderPrx
  484. {
  485. #region Synchronous operations
  486. public void Close(int recvPort)
  487. {
  488. Close(recvPort, null, false);
  489. }
  490. public void Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__)
  491. {
  492. Close(recvPort, context__, true);
  493. }
  494. private void Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  495. {
  496. if(explicitContext__ && context__ == null)
  497. {
  498. context__ = emptyContext_;
  499. }
  500. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __Close_name, context__);
  501. int cnt__ = 0;
  502. try
  503. {
  504. while(true)
  505. {
  506. Ice.ObjectDel_ delBase__ = null;
  507. try
  508. {
  509. delBase__ = getDelegate__(false);
  510. SenderDel_ del__ = (SenderDel_)delBase__;
  511. del__.Close(recvPort, context__, observer__);
  512. return;
  513. }
  514. catch(IceInternal.LocalExceptionWrapper ex__)
  515. {
  516. handleExceptionWrapper__(delBase__, ex__, observer__);
  517. }
  518. catch(Ice.LocalException ex__)
  519. {
  520. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  521. }
  522. }
  523. }
  524. finally
  525. {
  526. if(observer__ != null)
  527. {
  528. observer__.detach();
  529. }
  530. }
  531. }
  532. public void CloseAck(int recvPort)
  533. {
  534. CloseAck(recvPort, null, false);
  535. }
  536. public void CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__)
  537. {
  538. CloseAck(recvPort, context__, true);
  539. }
  540. private void CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  541. {
  542. if(explicitContext__ && context__ == null)
  543. {
  544. context__ = emptyContext_;
  545. }
  546. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __CloseAck_name, context__);
  547. int cnt__ = 0;
  548. try
  549. {
  550. while(true)
  551. {
  552. Ice.ObjectDel_ delBase__ = null;
  553. try
  554. {
  555. delBase__ = getDelegate__(false);
  556. SenderDel_ del__ = (SenderDel_)delBase__;
  557. del__.CloseAck(recvPort, context__, observer__);
  558. return;
  559. }
  560. catch(IceInternal.LocalExceptionWrapper ex__)
  561. {
  562. handleExceptionWrapper__(delBase__, ex__, observer__);
  563. }
  564. catch(Ice.LocalException ex__)
  565. {
  566. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  567. }
  568. }
  569. }
  570. finally
  571. {
  572. if(observer__ != null)
  573. {
  574. observer__.detach();
  575. }
  576. }
  577. }
  578. public void Connect(int recvPort)
  579. {
  580. Connect(recvPort, null, false);
  581. }
  582. public void Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__)
  583. {
  584. Connect(recvPort, context__, true);
  585. }
  586. private void Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  587. {
  588. if(explicitContext__ && context__ == null)
  589. {
  590. context__ = emptyContext_;
  591. }
  592. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __Connect_name, context__);
  593. int cnt__ = 0;
  594. try
  595. {
  596. while(true)
  597. {
  598. Ice.ObjectDel_ delBase__ = null;
  599. try
  600. {
  601. delBase__ = getDelegate__(false);
  602. SenderDel_ del__ = (SenderDel_)delBase__;
  603. del__.Connect(recvPort, context__, observer__);
  604. return;
  605. }
  606. catch(IceInternal.LocalExceptionWrapper ex__)
  607. {
  608. handleExceptionWrapper__(delBase__, ex__, observer__);
  609. }
  610. catch(Ice.LocalException ex__)
  611. {
  612. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  613. }
  614. }
  615. }
  616. finally
  617. {
  618. if(observer__ != null)
  619. {
  620. observer__.detach();
  621. }
  622. }
  623. }
  624. public void ConnectAck()
  625. {
  626. ConnectAck(null, false);
  627. }
  628. public void ConnectAck(_System.Collections.Generic.Dictionary<string, string> context__)
  629. {
  630. ConnectAck(context__, true);
  631. }
  632. private void ConnectAck(_System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  633. {
  634. if(explicitContext__ && context__ == null)
  635. {
  636. context__ = emptyContext_;
  637. }
  638. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __ConnectAck_name, context__);
  639. int cnt__ = 0;
  640. try
  641. {
  642. while(true)
  643. {
  644. Ice.ObjectDel_ delBase__ = null;
  645. try
  646. {
  647. delBase__ = getDelegate__(false);
  648. SenderDel_ del__ = (SenderDel_)delBase__;
  649. del__.ConnectAck(context__, observer__);
  650. return;
  651. }
  652. catch(IceInternal.LocalExceptionWrapper ex__)
  653. {
  654. handleExceptionWrapper__(delBase__, ex__, observer__);
  655. }
  656. catch(Ice.LocalException ex__)
  657. {
  658. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  659. }
  660. }
  661. }
  662. finally
  663. {
  664. if(observer__ != null)
  665. {
  666. observer__.detach();
  667. }
  668. }
  669. }
  670. public void SendAck(int recvPort, long serial)
  671. {
  672. SendAck(recvPort, serial, null, false);
  673. }
  674. public void SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> context__)
  675. {
  676. SendAck(recvPort, serial, context__, true);
  677. }
  678. private void SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  679. {
  680. if(explicitContext__ && context__ == null)
  681. {
  682. context__ = emptyContext_;
  683. }
  684. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __SendAck_name, context__);
  685. int cnt__ = 0;
  686. try
  687. {
  688. while(true)
  689. {
  690. Ice.ObjectDel_ delBase__ = null;
  691. try
  692. {
  693. delBase__ = getDelegate__(false);
  694. SenderDel_ del__ = (SenderDel_)delBase__;
  695. del__.SendAck(recvPort, serial, context__, observer__);
  696. return;
  697. }
  698. catch(IceInternal.LocalExceptionWrapper ex__)
  699. {
  700. handleExceptionWrapper__(delBase__, ex__, observer__);
  701. }
  702. catch(Ice.LocalException ex__)
  703. {
  704. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  705. }
  706. }
  707. }
  708. finally
  709. {
  710. if(observer__ != null)
  711. {
  712. observer__.detach();
  713. }
  714. }
  715. }
  716. public void SendData(int recvPort, Slice.TransMessage message)
  717. {
  718. SendData(recvPort, message, null, false);
  719. }
  720. public void SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__)
  721. {
  722. SendData(recvPort, message, context__, true);
  723. }
  724. private void SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  725. {
  726. if(explicitContext__ && context__ == null)
  727. {
  728. context__ = emptyContext_;
  729. }
  730. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __SendData_name, context__);
  731. int cnt__ = 0;
  732. try
  733. {
  734. while(true)
  735. {
  736. Ice.ObjectDel_ delBase__ = null;
  737. try
  738. {
  739. delBase__ = getDelegate__(false);
  740. SenderDel_ del__ = (SenderDel_)delBase__;
  741. del__.SendData(recvPort, message, context__, observer__);
  742. return;
  743. }
  744. catch(IceInternal.LocalExceptionWrapper ex__)
  745. {
  746. handleExceptionWrapper__(delBase__, ex__, observer__);
  747. }
  748. catch(Ice.LocalException ex__)
  749. {
  750. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  751. }
  752. }
  753. }
  754. finally
  755. {
  756. if(observer__ != null)
  757. {
  758. observer__.detach();
  759. }
  760. }
  761. }
  762. #endregion
  763. #region Asynchronous operations
  764. public Ice.AsyncResult<Slice.Callback_Sender_Close> begin_Close(int recvPort)
  765. {
  766. return begin_Close(recvPort, null, false, null, null);
  767. }
  768. public Ice.AsyncResult<Slice.Callback_Sender_Close> begin_Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__)
  769. {
  770. return begin_Close(recvPort, ctx__, true, null, null);
  771. }
  772. public Ice.AsyncResult begin_Close(int recvPort, Ice.AsyncCallback cb__, object cookie__)
  773. {
  774. return begin_Close(recvPort, null, false, cb__, cookie__);
  775. }
  776. public Ice.AsyncResult begin_Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  777. {
  778. return begin_Close(recvPort, ctx__, true, cb__, cookie__);
  779. }
  780. private const string __Close_name = "Close";
  781. public void end_Close(Ice.AsyncResult r__)
  782. {
  783. end__(r__, __Close_name);
  784. }
  785. private Ice.AsyncResult<Slice.Callback_Sender_Close> begin_Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  786. {
  787. IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_Close> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_Close>(this, __Close_name, Close_completed__, cookie__);
  788. if(cb__ != null)
  789. {
  790. result__.whenCompletedWithAsyncCallback(cb__);
  791. }
  792. try
  793. {
  794. result__.prepare__(__Close_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  795. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  796. os__.writeInt(recvPort);
  797. result__.endWriteParams__();
  798. result__.send__(true);
  799. }
  800. catch(Ice.LocalException ex__)
  801. {
  802. result__.exceptionAsync__(ex__);
  803. }
  804. return result__;
  805. }
  806. private void Close_completed__(Slice.Callback_Sender_Close cb__)
  807. {
  808. if(cb__ != null)
  809. {
  810. cb__();
  811. }
  812. }
  813. public Ice.AsyncResult<Slice.Callback_Sender_CloseAck> begin_CloseAck(int recvPort)
  814. {
  815. return begin_CloseAck(recvPort, null, false, null, null);
  816. }
  817. public Ice.AsyncResult<Slice.Callback_Sender_CloseAck> begin_CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__)
  818. {
  819. return begin_CloseAck(recvPort, ctx__, true, null, null);
  820. }
  821. public Ice.AsyncResult begin_CloseAck(int recvPort, Ice.AsyncCallback cb__, object cookie__)
  822. {
  823. return begin_CloseAck(recvPort, null, false, cb__, cookie__);
  824. }
  825. public Ice.AsyncResult begin_CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  826. {
  827. return begin_CloseAck(recvPort, ctx__, true, cb__, cookie__);
  828. }
  829. private const string __CloseAck_name = "CloseAck";
  830. public void end_CloseAck(Ice.AsyncResult r__)
  831. {
  832. end__(r__, __CloseAck_name);
  833. }
  834. private Ice.AsyncResult<Slice.Callback_Sender_CloseAck> begin_CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  835. {
  836. IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_CloseAck> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_CloseAck>(this, __CloseAck_name, CloseAck_completed__, cookie__);
  837. if(cb__ != null)
  838. {
  839. result__.whenCompletedWithAsyncCallback(cb__);
  840. }
  841. try
  842. {
  843. result__.prepare__(__CloseAck_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  844. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  845. os__.writeInt(recvPort);
  846. result__.endWriteParams__();
  847. result__.send__(true);
  848. }
  849. catch(Ice.LocalException ex__)
  850. {
  851. result__.exceptionAsync__(ex__);
  852. }
  853. return result__;
  854. }
  855. private void CloseAck_completed__(Slice.Callback_Sender_CloseAck cb__)
  856. {
  857. if(cb__ != null)
  858. {
  859. cb__();
  860. }
  861. }
  862. public Ice.AsyncResult<Slice.Callback_Sender_Connect> begin_Connect(int recvPort)
  863. {
  864. return begin_Connect(recvPort, null, false, null, null);
  865. }
  866. public Ice.AsyncResult<Slice.Callback_Sender_Connect> begin_Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__)
  867. {
  868. return begin_Connect(recvPort, ctx__, true, null, null);
  869. }
  870. public Ice.AsyncResult begin_Connect(int recvPort, Ice.AsyncCallback cb__, object cookie__)
  871. {
  872. return begin_Connect(recvPort, null, false, cb__, cookie__);
  873. }
  874. public Ice.AsyncResult begin_Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  875. {
  876. return begin_Connect(recvPort, ctx__, true, cb__, cookie__);
  877. }
  878. private const string __Connect_name = "Connect";
  879. public void end_Connect(Ice.AsyncResult r__)
  880. {
  881. end__(r__, __Connect_name);
  882. }
  883. private Ice.AsyncResult<Slice.Callback_Sender_Connect> begin_Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  884. {
  885. IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_Connect> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_Connect>(this, __Connect_name, Connect_completed__, cookie__);
  886. if(cb__ != null)
  887. {
  888. result__.whenCompletedWithAsyncCallback(cb__);
  889. }
  890. try
  891. {
  892. result__.prepare__(__Connect_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  893. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  894. os__.writeInt(recvPort);
  895. result__.endWriteParams__();
  896. result__.send__(true);
  897. }
  898. catch(Ice.LocalException ex__)
  899. {
  900. result__.exceptionAsync__(ex__);
  901. }
  902. return result__;
  903. }
  904. private void Connect_completed__(Slice.Callback_Sender_Connect cb__)
  905. {
  906. if(cb__ != null)
  907. {
  908. cb__();
  909. }
  910. }
  911. public Ice.AsyncResult<Slice.Callback_Sender_ConnectAck> begin_ConnectAck()
  912. {
  913. return begin_ConnectAck(null, false, null, null);
  914. }
  915. public Ice.AsyncResult<Slice.Callback_Sender_ConnectAck> begin_ConnectAck(_System.Collections.Generic.Dictionary<string, string> ctx__)
  916. {
  917. return begin_ConnectAck(ctx__, true, null, null);
  918. }
  919. public Ice.AsyncResult begin_ConnectAck(Ice.AsyncCallback cb__, object cookie__)
  920. {
  921. return begin_ConnectAck(null, false, cb__, cookie__);
  922. }
  923. public Ice.AsyncResult begin_ConnectAck(_System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  924. {
  925. return begin_ConnectAck(ctx__, true, cb__, cookie__);
  926. }
  927. private const string __ConnectAck_name = "ConnectAck";
  928. public void end_ConnectAck(Ice.AsyncResult r__)
  929. {
  930. end__(r__, __ConnectAck_name);
  931. }
  932. private Ice.AsyncResult<Slice.Callback_Sender_ConnectAck> begin_ConnectAck(_System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  933. {
  934. IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_ConnectAck> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_ConnectAck>(this, __ConnectAck_name, ConnectAck_completed__, cookie__);
  935. if(cb__ != null)
  936. {
  937. result__.whenCompletedWithAsyncCallback(cb__);
  938. }
  939. try
  940. {
  941. result__.prepare__(__ConnectAck_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  942. result__.writeEmptyParams__();
  943. result__.send__(true);
  944. }
  945. catch(Ice.LocalException ex__)
  946. {
  947. result__.exceptionAsync__(ex__);
  948. }
  949. return result__;
  950. }
  951. private void ConnectAck_completed__(Slice.Callback_Sender_ConnectAck cb__)
  952. {
  953. if(cb__ != null)
  954. {
  955. cb__();
  956. }
  957. }
  958. public Ice.AsyncResult<Slice.Callback_Sender_SendAck> begin_SendAck(int recvPort, long serial)
  959. {
  960. return begin_SendAck(recvPort, serial, null, false, null, null);
  961. }
  962. public Ice.AsyncResult<Slice.Callback_Sender_SendAck> begin_SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> ctx__)
  963. {
  964. return begin_SendAck(recvPort, serial, ctx__, true, null, null);
  965. }
  966. public Ice.AsyncResult begin_SendAck(int recvPort, long serial, Ice.AsyncCallback cb__, object cookie__)
  967. {
  968. return begin_SendAck(recvPort, serial, null, false, cb__, cookie__);
  969. }
  970. public Ice.AsyncResult begin_SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  971. {
  972. return begin_SendAck(recvPort, serial, ctx__, true, cb__, cookie__);
  973. }
  974. private const string __SendAck_name = "SendAck";
  975. public void end_SendAck(Ice.AsyncResult r__)
  976. {
  977. end__(r__, __SendAck_name);
  978. }
  979. private Ice.AsyncResult<Slice.Callback_Sender_SendAck> begin_SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  980. {
  981. IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_SendAck> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_SendAck>(this, __SendAck_name, SendAck_completed__, cookie__);
  982. if(cb__ != null)
  983. {
  984. result__.whenCompletedWithAsyncCallback(cb__);
  985. }
  986. try
  987. {
  988. result__.prepare__(__SendAck_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  989. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  990. os__.writeInt(recvPort);
  991. os__.writeLong(serial);
  992. result__.endWriteParams__();
  993. result__.send__(true);
  994. }
  995. catch(Ice.LocalException ex__)
  996. {
  997. result__.exceptionAsync__(ex__);
  998. }
  999. return result__;
  1000. }
  1001. private void SendAck_completed__(Slice.Callback_Sender_SendAck cb__)
  1002. {
  1003. if(cb__ != null)
  1004. {
  1005. cb__();
  1006. }
  1007. }
  1008. public Ice.AsyncResult<Slice.Callback_Sender_SendData> begin_SendData(int recvPort, Slice.TransMessage message)
  1009. {
  1010. return begin_SendData(recvPort, message, null, false, null, null);
  1011. }
  1012. public Ice.AsyncResult<Slice.Callback_Sender_SendData> begin_SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1013. {
  1014. return begin_SendData(recvPort, message, ctx__, true, null, null);
  1015. }
  1016. public Ice.AsyncResult begin_SendData(int recvPort, Slice.TransMessage message, Ice.AsyncCallback cb__, object cookie__)
  1017. {
  1018. return begin_SendData(recvPort, message, null, false, cb__, cookie__);
  1019. }
  1020. public Ice.AsyncResult begin_SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1021. {
  1022. return begin_SendData(recvPort, message, ctx__, true, cb__, cookie__);
  1023. }
  1024. private const string __SendData_name = "SendData";
  1025. public void end_SendData(Ice.AsyncResult r__)
  1026. {
  1027. end__(r__, __SendData_name);
  1028. }
  1029. private Ice.AsyncResult<Slice.Callback_Sender_SendData> begin_SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  1030. {
  1031. IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_SendData> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_Sender_SendData>(this, __SendData_name, SendData_completed__, cookie__);
  1032. if(cb__ != null)
  1033. {
  1034. result__.whenCompletedWithAsyncCallback(cb__);
  1035. }
  1036. try
  1037. {
  1038. result__.prepare__(__SendData_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  1039. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  1040. os__.writeInt(recvPort);
  1041. os__.writeObject(message);
  1042. os__.writePendingObjects();
  1043. result__.endWriteParams__();
  1044. result__.send__(true);
  1045. }
  1046. catch(Ice.LocalException ex__)
  1047. {
  1048. result__.exceptionAsync__(ex__);
  1049. }
  1050. return result__;
  1051. }
  1052. private void SendData_completed__(Slice.Callback_Sender_SendData cb__)
  1053. {
  1054. if(cb__ != null)
  1055. {
  1056. cb__();
  1057. }
  1058. }
  1059. #endregion
  1060. #region Checked and unchecked cast operations
  1061. public static SenderPrx checkedCast(Ice.ObjectPrx b)
  1062. {
  1063. if(b == null)
  1064. {
  1065. return null;
  1066. }
  1067. SenderPrx r = b as SenderPrx;
  1068. if((r == null) && b.ice_isA(ice_staticId()))
  1069. {
  1070. SenderPrxHelper h = new SenderPrxHelper();
  1071. h.copyFrom__(b);
  1072. r = h;
  1073. }
  1074. return r;
  1075. }
  1076. public static SenderPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary<string, string> ctx)
  1077. {
  1078. if(b == null)
  1079. {
  1080. return null;
  1081. }
  1082. SenderPrx r = b as SenderPrx;
  1083. if((r == null) && b.ice_isA(ice_staticId(), ctx))
  1084. {
  1085. SenderPrxHelper h = new SenderPrxHelper();
  1086. h.copyFrom__(b);
  1087. r = h;
  1088. }
  1089. return r;
  1090. }
  1091. public static SenderPrx checkedCast(Ice.ObjectPrx b, string f)
  1092. {
  1093. if(b == null)
  1094. {
  1095. return null;
  1096. }
  1097. Ice.ObjectPrx bb = b.ice_facet(f);
  1098. try
  1099. {
  1100. if(bb.ice_isA(ice_staticId()))
  1101. {
  1102. SenderPrxHelper h = new SenderPrxHelper();
  1103. h.copyFrom__(bb);
  1104. return h;
  1105. }
  1106. }
  1107. catch(Ice.FacetNotExistException)
  1108. {
  1109. }
  1110. return null;
  1111. }
  1112. public static SenderPrx checkedCast(Ice.ObjectPrx b, string f, _System.Collections.Generic.Dictionary<string, string> ctx)
  1113. {
  1114. if(b == null)
  1115. {
  1116. return null;
  1117. }
  1118. Ice.ObjectPrx bb = b.ice_facet(f);
  1119. try
  1120. {
  1121. if(bb.ice_isA(ice_staticId(), ctx))
  1122. {
  1123. SenderPrxHelper h = new SenderPrxHelper();
  1124. h.copyFrom__(bb);
  1125. return h;
  1126. }
  1127. }
  1128. catch(Ice.FacetNotExistException)
  1129. {
  1130. }
  1131. return null;
  1132. }
  1133. public static SenderPrx uncheckedCast(Ice.ObjectPrx b)
  1134. {
  1135. if(b == null)
  1136. {
  1137. return null;
  1138. }
  1139. SenderPrx r = b as SenderPrx;
  1140. if(r == null)
  1141. {
  1142. SenderPrxHelper h = new SenderPrxHelper();
  1143. h.copyFrom__(b);
  1144. r = h;
  1145. }
  1146. return r;
  1147. }
  1148. public static SenderPrx uncheckedCast(Ice.ObjectPrx b, string f)
  1149. {
  1150. if(b == null)
  1151. {
  1152. return null;
  1153. }
  1154. Ice.ObjectPrx bb = b.ice_facet(f);
  1155. SenderPrxHelper h = new SenderPrxHelper();
  1156. h.copyFrom__(bb);
  1157. return h;
  1158. }
  1159. public static readonly string[] ids__ =
  1160. {
  1161. "::Ice::Object",
  1162. "::Slice::Sender"
  1163. };
  1164. public static string ice_staticId()
  1165. {
  1166. return ids__[1];
  1167. }
  1168. #endregion
  1169. #region Marshaling support
  1170. protected override Ice.ObjectDelM_ createDelegateM__()
  1171. {
  1172. return new SenderDelM_();
  1173. }
  1174. protected override Ice.ObjectDelD_ createDelegateD__()
  1175. {
  1176. return new SenderDelD_();
  1177. }
  1178. public static void write__(IceInternal.BasicStream os__, SenderPrx v__)
  1179. {
  1180. os__.writeProxy(v__);
  1181. }
  1182. public static SenderPrx read__(IceInternal.BasicStream is__)
  1183. {
  1184. Ice.ObjectPrx proxy = is__.readProxy();
  1185. if(proxy != null)
  1186. {
  1187. SenderPrxHelper result = new SenderPrxHelper();
  1188. result.copyFrom__(proxy);
  1189. return result;
  1190. }
  1191. return null;
  1192. }
  1193. #endregion
  1194. }
  1195. [_System.Runtime.InteropServices.ComVisible(false)]
  1196. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1197. public sealed class ServerCallbackPrxHelper : Ice.ObjectPrxHelperBase, ServerCallbackPrx
  1198. {
  1199. #region Synchronous operations
  1200. public void ServerToClient(Slice.TransMessage message)
  1201. {
  1202. ServerToClient(message, null, false);
  1203. }
  1204. public void ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__)
  1205. {
  1206. ServerToClient(message, context__, true);
  1207. }
  1208. private void ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  1209. {
  1210. if(explicitContext__ && context__ == null)
  1211. {
  1212. context__ = emptyContext_;
  1213. }
  1214. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __ServerToClient_name, context__);
  1215. int cnt__ = 0;
  1216. try
  1217. {
  1218. while(true)
  1219. {
  1220. Ice.ObjectDel_ delBase__ = null;
  1221. try
  1222. {
  1223. delBase__ = getDelegate__(false);
  1224. ServerCallbackDel_ del__ = (ServerCallbackDel_)delBase__;
  1225. del__.ServerToClient(message, context__, observer__);
  1226. return;
  1227. }
  1228. catch(IceInternal.LocalExceptionWrapper ex__)
  1229. {
  1230. handleExceptionWrapper__(delBase__, ex__, observer__);
  1231. }
  1232. catch(Ice.LocalException ex__)
  1233. {
  1234. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  1235. }
  1236. }
  1237. }
  1238. finally
  1239. {
  1240. if(observer__ != null)
  1241. {
  1242. observer__.detach();
  1243. }
  1244. }
  1245. }
  1246. #endregion
  1247. #region Asynchronous operations
  1248. public Ice.AsyncResult<Slice.Callback_ServerCallback_ServerToClient> begin_ServerToClient(Slice.TransMessage message)
  1249. {
  1250. return begin_ServerToClient(message, null, false, null, null);
  1251. }
  1252. public Ice.AsyncResult<Slice.Callback_ServerCallback_ServerToClient> begin_ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1253. {
  1254. return begin_ServerToClient(message, ctx__, true, null, null);
  1255. }
  1256. public Ice.AsyncResult begin_ServerToClient(Slice.TransMessage message, Ice.AsyncCallback cb__, object cookie__)
  1257. {
  1258. return begin_ServerToClient(message, null, false, cb__, cookie__);
  1259. }
  1260. public Ice.AsyncResult begin_ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1261. {
  1262. return begin_ServerToClient(message, ctx__, true, cb__, cookie__);
  1263. }
  1264. private const string __ServerToClient_name = "ServerToClient";
  1265. public void end_ServerToClient(Ice.AsyncResult r__)
  1266. {
  1267. end__(r__, __ServerToClient_name);
  1268. }
  1269. private Ice.AsyncResult<Slice.Callback_ServerCallback_ServerToClient> begin_ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  1270. {
  1271. IceInternal.OnewayOutgoingAsync<Slice.Callback_ServerCallback_ServerToClient> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_ServerCallback_ServerToClient>(this, __ServerToClient_name, ServerToClient_completed__, cookie__);
  1272. if(cb__ != null)
  1273. {
  1274. result__.whenCompletedWithAsyncCallback(cb__);
  1275. }
  1276. try
  1277. {
  1278. result__.prepare__(__ServerToClient_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  1279. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  1280. os__.writeObject(message);
  1281. os__.writePendingObjects();
  1282. result__.endWriteParams__();
  1283. result__.send__(true);
  1284. }
  1285. catch(Ice.LocalException ex__)
  1286. {
  1287. result__.exceptionAsync__(ex__);
  1288. }
  1289. return result__;
  1290. }
  1291. private void ServerToClient_completed__(Slice.Callback_ServerCallback_ServerToClient cb__)
  1292. {
  1293. if(cb__ != null)
  1294. {
  1295. cb__();
  1296. }
  1297. }
  1298. #endregion
  1299. #region Checked and unchecked cast operations
  1300. public static ServerCallbackPrx checkedCast(Ice.ObjectPrx b)
  1301. {
  1302. if(b == null)
  1303. {
  1304. return null;
  1305. }
  1306. ServerCallbackPrx r = b as ServerCallbackPrx;
  1307. if((r == null) && b.ice_isA(ice_staticId()))
  1308. {
  1309. ServerCallbackPrxHelper h = new ServerCallbackPrxHelper();
  1310. h.copyFrom__(b);
  1311. r = h;
  1312. }
  1313. return r;
  1314. }
  1315. public static ServerCallbackPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary<string, string> ctx)
  1316. {
  1317. if(b == null)
  1318. {
  1319. return null;
  1320. }
  1321. ServerCallbackPrx r = b as ServerCallbackPrx;
  1322. if((r == null) && b.ice_isA(ice_staticId(), ctx))
  1323. {
  1324. ServerCallbackPrxHelper h = new ServerCallbackPrxHelper();
  1325. h.copyFrom__(b);
  1326. r = h;
  1327. }
  1328. return r;
  1329. }
  1330. public static ServerCallbackPrx checkedCast(Ice.ObjectPrx b, string f)
  1331. {
  1332. if(b == null)
  1333. {
  1334. return null;
  1335. }
  1336. Ice.ObjectPrx bb = b.ice_facet(f);
  1337. try
  1338. {
  1339. if(bb.ice_isA(ice_staticId()))
  1340. {
  1341. ServerCallbackPrxHelper h = new ServerCallbackPrxHelper();
  1342. h.copyFrom__(bb);
  1343. return h;
  1344. }
  1345. }
  1346. catch(Ice.FacetNotExistException)
  1347. {
  1348. }
  1349. return null;
  1350. }
  1351. public static ServerCallbackPrx checkedCast(Ice.ObjectPrx b, string f, _System.Collections.Generic.Dictionary<string, string> ctx)
  1352. {
  1353. if(b == null)
  1354. {
  1355. return null;
  1356. }
  1357. Ice.ObjectPrx bb = b.ice_facet(f);
  1358. try
  1359. {
  1360. if(bb.ice_isA(ice_staticId(), ctx))
  1361. {
  1362. ServerCallbackPrxHelper h = new ServerCallbackPrxHelper();
  1363. h.copyFrom__(bb);
  1364. return h;
  1365. }
  1366. }
  1367. catch(Ice.FacetNotExistException)
  1368. {
  1369. }
  1370. return null;
  1371. }
  1372. public static ServerCallbackPrx uncheckedCast(Ice.ObjectPrx b)
  1373. {
  1374. if(b == null)
  1375. {
  1376. return null;
  1377. }
  1378. ServerCallbackPrx r = b as ServerCallbackPrx;
  1379. if(r == null)
  1380. {
  1381. ServerCallbackPrxHelper h = new ServerCallbackPrxHelper();
  1382. h.copyFrom__(b);
  1383. r = h;
  1384. }
  1385. return r;
  1386. }
  1387. public static ServerCallbackPrx uncheckedCast(Ice.ObjectPrx b, string f)
  1388. {
  1389. if(b == null)
  1390. {
  1391. return null;
  1392. }
  1393. Ice.ObjectPrx bb = b.ice_facet(f);
  1394. ServerCallbackPrxHelper h = new ServerCallbackPrxHelper();
  1395. h.copyFrom__(bb);
  1396. return h;
  1397. }
  1398. public static readonly string[] ids__ =
  1399. {
  1400. "::Ice::Object",
  1401. "::Slice::ServerCallback"
  1402. };
  1403. public static string ice_staticId()
  1404. {
  1405. return ids__[1];
  1406. }
  1407. #endregion
  1408. #region Marshaling support
  1409. protected override Ice.ObjectDelM_ createDelegateM__()
  1410. {
  1411. return new ServerCallbackDelM_();
  1412. }
  1413. protected override Ice.ObjectDelD_ createDelegateD__()
  1414. {
  1415. return new ServerCallbackDelD_();
  1416. }
  1417. public static void write__(IceInternal.BasicStream os__, ServerCallbackPrx v__)
  1418. {
  1419. os__.writeProxy(v__);
  1420. }
  1421. public static ServerCallbackPrx read__(IceInternal.BasicStream is__)
  1422. {
  1423. Ice.ObjectPrx proxy = is__.readProxy();
  1424. if(proxy != null)
  1425. {
  1426. ServerCallbackPrxHelper result = new ServerCallbackPrxHelper();
  1427. result.copyFrom__(proxy);
  1428. return result;
  1429. }
  1430. return null;
  1431. }
  1432. #endregion
  1433. }
  1434. [_System.Runtime.InteropServices.ComVisible(false)]
  1435. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1436. public sealed class ICombatSessionPrxHelper : Ice.ObjectPrxHelperBase, ICombatSessionPrx
  1437. {
  1438. #region Synchronous operations
  1439. /// <summary>
  1440. /// Destroy the session.
  1441. /// This is called automatically when the
  1442. /// Router is destroyed.
  1443. /// </summary>
  1444. public void destroy()
  1445. {
  1446. destroy(null, false);
  1447. }
  1448. /// <summary>
  1449. /// Destroy the session.
  1450. /// This is called automatically when the
  1451. /// Router is destroyed.
  1452. /// </summary>
  1453. /// <param name="context__">The Context map to send with the invocation.</param>
  1454. public void destroy(_System.Collections.Generic.Dictionary<string, string> context__)
  1455. {
  1456. destroy(context__, true);
  1457. }
  1458. private void destroy(_System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  1459. {
  1460. if(explicitContext__ && context__ == null)
  1461. {
  1462. context__ = emptyContext_;
  1463. }
  1464. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __destroy_name, context__);
  1465. int cnt__ = 0;
  1466. try
  1467. {
  1468. while(true)
  1469. {
  1470. Ice.ObjectDel_ delBase__ = null;
  1471. try
  1472. {
  1473. delBase__ = getDelegate__(false);
  1474. ICombatSessionDel_ del__ = (ICombatSessionDel_)delBase__;
  1475. del__.destroy(context__, observer__);
  1476. return;
  1477. }
  1478. catch(IceInternal.LocalExceptionWrapper ex__)
  1479. {
  1480. handleExceptionWrapper__(delBase__, ex__, observer__);
  1481. }
  1482. catch(Ice.LocalException ex__)
  1483. {
  1484. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  1485. }
  1486. }
  1487. }
  1488. finally
  1489. {
  1490. if(observer__ != null)
  1491. {
  1492. observer__.detach();
  1493. }
  1494. }
  1495. }
  1496. public void ClientToServer(Slice.TransMessage message)
  1497. {
  1498. ClientToServer(message, null, false);
  1499. }
  1500. public void ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__)
  1501. {
  1502. ClientToServer(message, context__, true);
  1503. }
  1504. private void ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  1505. {
  1506. if(explicitContext__ && context__ == null)
  1507. {
  1508. context__ = emptyContext_;
  1509. }
  1510. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __ClientToServer_name, context__);
  1511. int cnt__ = 0;
  1512. try
  1513. {
  1514. while(true)
  1515. {
  1516. Ice.ObjectDel_ delBase__ = null;
  1517. try
  1518. {
  1519. delBase__ = getDelegate__(false);
  1520. ICombatSessionDel_ del__ = (ICombatSessionDel_)delBase__;
  1521. del__.ClientToServer(message, context__, observer__);
  1522. return;
  1523. }
  1524. catch(IceInternal.LocalExceptionWrapper ex__)
  1525. {
  1526. handleExceptionWrapper__(delBase__, ex__, observer__);
  1527. }
  1528. catch(Ice.LocalException ex__)
  1529. {
  1530. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  1531. }
  1532. }
  1533. }
  1534. finally
  1535. {
  1536. if(observer__ != null)
  1537. {
  1538. observer__.detach();
  1539. }
  1540. }
  1541. }
  1542. public void SetCallback(Slice.ServerCallbackPrx callback)
  1543. {
  1544. SetCallback(callback, null, false);
  1545. }
  1546. public void SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> context__)
  1547. {
  1548. SetCallback(callback, context__, true);
  1549. }
  1550. private void SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__)
  1551. {
  1552. if(explicitContext__ && context__ == null)
  1553. {
  1554. context__ = emptyContext_;
  1555. }
  1556. Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __SetCallback_name, context__);
  1557. int cnt__ = 0;
  1558. try
  1559. {
  1560. while(true)
  1561. {
  1562. Ice.ObjectDel_ delBase__ = null;
  1563. try
  1564. {
  1565. delBase__ = getDelegate__(false);
  1566. ICombatSessionDel_ del__ = (ICombatSessionDel_)delBase__;
  1567. del__.SetCallback(callback, context__, observer__);
  1568. return;
  1569. }
  1570. catch(IceInternal.LocalExceptionWrapper ex__)
  1571. {
  1572. handleExceptionWrapper__(delBase__, ex__, observer__);
  1573. }
  1574. catch(Ice.LocalException ex__)
  1575. {
  1576. handleException__(delBase__, ex__, true, ref cnt__, observer__);
  1577. }
  1578. }
  1579. }
  1580. finally
  1581. {
  1582. if(observer__ != null)
  1583. {
  1584. observer__.detach();
  1585. }
  1586. }
  1587. }
  1588. #endregion
  1589. #region Asynchronous operations
  1590. public Ice.AsyncResult<Glacier2.Callback_Session_destroy> begin_destroy()
  1591. {
  1592. return begin_destroy(null, false, null, null);
  1593. }
  1594. /// <summary>
  1595. /// Destroy the session.
  1596. /// This is called automatically when the
  1597. /// </summary>
  1598. /// <param name="ctx__">The Context map to send with the invocation.</param>
  1599. public Ice.AsyncResult<Glacier2.Callback_Session_destroy> begin_destroy(_System.Collections.Generic.Dictionary<string, string> ctx__)
  1600. {
  1601. return begin_destroy(ctx__, true, null, null);
  1602. }
  1603. public Ice.AsyncResult begin_destroy(Ice.AsyncCallback cb__, object cookie__)
  1604. {
  1605. return begin_destroy(null, false, cb__, cookie__);
  1606. }
  1607. public Ice.AsyncResult begin_destroy(_System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1608. {
  1609. return begin_destroy(ctx__, true, cb__, cookie__);
  1610. }
  1611. private const string __destroy_name = "destroy";
  1612. public void end_destroy(Ice.AsyncResult r__)
  1613. {
  1614. end__(r__, __destroy_name);
  1615. }
  1616. private Ice.AsyncResult<Glacier2.Callback_Session_destroy> begin_destroy(_System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  1617. {
  1618. IceInternal.OnewayOutgoingAsync<Glacier2.Callback_Session_destroy> result__ = new IceInternal.OnewayOutgoingAsync<Glacier2.Callback_Session_destroy>(this, __destroy_name, destroy_completed__, cookie__);
  1619. if(cb__ != null)
  1620. {
  1621. result__.whenCompletedWithAsyncCallback(cb__);
  1622. }
  1623. try
  1624. {
  1625. result__.prepare__(__destroy_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  1626. result__.writeEmptyParams__();
  1627. result__.send__(true);
  1628. }
  1629. catch(Ice.LocalException ex__)
  1630. {
  1631. result__.exceptionAsync__(ex__);
  1632. }
  1633. return result__;
  1634. }
  1635. private void destroy_completed__(Glacier2.Callback_Session_destroy cb__)
  1636. {
  1637. if(cb__ != null)
  1638. {
  1639. cb__();
  1640. }
  1641. }
  1642. public Ice.AsyncResult<Slice.Callback_ICombatSession_ClientToServer> begin_ClientToServer(Slice.TransMessage message)
  1643. {
  1644. return begin_ClientToServer(message, null, false, null, null);
  1645. }
  1646. public Ice.AsyncResult<Slice.Callback_ICombatSession_ClientToServer> begin_ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1647. {
  1648. return begin_ClientToServer(message, ctx__, true, null, null);
  1649. }
  1650. public Ice.AsyncResult begin_ClientToServer(Slice.TransMessage message, Ice.AsyncCallback cb__, object cookie__)
  1651. {
  1652. return begin_ClientToServer(message, null, false, cb__, cookie__);
  1653. }
  1654. public Ice.AsyncResult begin_ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1655. {
  1656. return begin_ClientToServer(message, ctx__, true, cb__, cookie__);
  1657. }
  1658. private const string __ClientToServer_name = "ClientToServer";
  1659. public void end_ClientToServer(Ice.AsyncResult r__)
  1660. {
  1661. end__(r__, __ClientToServer_name);
  1662. }
  1663. private Ice.AsyncResult<Slice.Callback_ICombatSession_ClientToServer> begin_ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  1664. {
  1665. IceInternal.OnewayOutgoingAsync<Slice.Callback_ICombatSession_ClientToServer> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_ICombatSession_ClientToServer>(this, __ClientToServer_name, ClientToServer_completed__, cookie__);
  1666. if(cb__ != null)
  1667. {
  1668. result__.whenCompletedWithAsyncCallback(cb__);
  1669. }
  1670. try
  1671. {
  1672. result__.prepare__(__ClientToServer_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  1673. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  1674. os__.writeObject(message);
  1675. os__.writePendingObjects();
  1676. result__.endWriteParams__();
  1677. result__.send__(true);
  1678. }
  1679. catch(Ice.LocalException ex__)
  1680. {
  1681. result__.exceptionAsync__(ex__);
  1682. }
  1683. return result__;
  1684. }
  1685. private void ClientToServer_completed__(Slice.Callback_ICombatSession_ClientToServer cb__)
  1686. {
  1687. if(cb__ != null)
  1688. {
  1689. cb__();
  1690. }
  1691. }
  1692. public Ice.AsyncResult<Slice.Callback_ICombatSession_SetCallback> begin_SetCallback(Slice.ServerCallbackPrx callback)
  1693. {
  1694. return begin_SetCallback(callback, null, false, null, null);
  1695. }
  1696. public Ice.AsyncResult<Slice.Callback_ICombatSession_SetCallback> begin_SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> ctx__)
  1697. {
  1698. return begin_SetCallback(callback, ctx__, true, null, null);
  1699. }
  1700. public Ice.AsyncResult begin_SetCallback(Slice.ServerCallbackPrx callback, Ice.AsyncCallback cb__, object cookie__)
  1701. {
  1702. return begin_SetCallback(callback, null, false, cb__, cookie__);
  1703. }
  1704. public Ice.AsyncResult begin_SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
  1705. {
  1706. return begin_SetCallback(callback, ctx__, true, cb__, cookie__);
  1707. }
  1708. private const string __SetCallback_name = "SetCallback";
  1709. public void end_SetCallback(Ice.AsyncResult r__)
  1710. {
  1711. end__(r__, __SetCallback_name);
  1712. }
  1713. private Ice.AsyncResult<Slice.Callback_ICombatSession_SetCallback> begin_SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
  1714. {
  1715. IceInternal.OnewayOutgoingAsync<Slice.Callback_ICombatSession_SetCallback> result__ = new IceInternal.OnewayOutgoingAsync<Slice.Callback_ICombatSession_SetCallback>(this, __SetCallback_name, SetCallback_completed__, cookie__);
  1716. if(cb__ != null)
  1717. {
  1718. result__.whenCompletedWithAsyncCallback(cb__);
  1719. }
  1720. try
  1721. {
  1722. result__.prepare__(__SetCallback_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
  1723. IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
  1724. Slice.ServerCallbackPrxHelper.write__(os__, callback);
  1725. result__.endWriteParams__();
  1726. result__.send__(true);
  1727. }
  1728. catch(Ice.LocalException ex__)
  1729. {
  1730. result__.exceptionAsync__(ex__);
  1731. }
  1732. return result__;
  1733. }
  1734. private void SetCallback_completed__(Slice.Callback_ICombatSession_SetCallback cb__)
  1735. {
  1736. if(cb__ != null)
  1737. {
  1738. cb__();
  1739. }
  1740. }
  1741. #endregion
  1742. #region Checked and unchecked cast operations
  1743. public static ICombatSessionPrx checkedCast(Ice.ObjectPrx b)
  1744. {
  1745. if(b == null)
  1746. {
  1747. return null;
  1748. }
  1749. ICombatSessionPrx r = b as ICombatSessionPrx;
  1750. if((r == null) && b.ice_isA(ice_staticId()))
  1751. {
  1752. ICombatSessionPrxHelper h = new ICombatSessionPrxHelper();
  1753. h.copyFrom__(b);
  1754. r = h;
  1755. }
  1756. return r;
  1757. }
  1758. public static ICombatSessionPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary<string, string> ctx)
  1759. {
  1760. if(b == null)
  1761. {
  1762. return null;
  1763. }
  1764. ICombatSessionPrx r = b as ICombatSessionPrx;
  1765. if((r == null) && b.ice_isA(ice_staticId(), ctx))
  1766. {
  1767. ICombatSessionPrxHelper h = new ICombatSessionPrxHelper();
  1768. h.copyFrom__(b);
  1769. r = h;
  1770. }
  1771. return r;
  1772. }
  1773. public static ICombatSessionPrx checkedCast(Ice.ObjectPrx b, string f)
  1774. {
  1775. if(b == null)
  1776. {
  1777. return null;
  1778. }
  1779. Ice.ObjectPrx bb = b.ice_facet(f);
  1780. try
  1781. {
  1782. if(bb.ice_isA(ice_staticId()))
  1783. {
  1784. ICombatSessionPrxHelper h = new ICombatSessionPrxHelper();
  1785. h.copyFrom__(bb);
  1786. return h;
  1787. }
  1788. }
  1789. catch(Ice.FacetNotExistException)
  1790. {
  1791. }
  1792. return null;
  1793. }
  1794. public static ICombatSessionPrx checkedCast(Ice.ObjectPrx b, string f, _System.Collections.Generic.Dictionary<string, string> ctx)
  1795. {
  1796. if(b == null)
  1797. {
  1798. return null;
  1799. }
  1800. Ice.ObjectPrx bb = b.ice_facet(f);
  1801. try
  1802. {
  1803. if(bb.ice_isA(ice_staticId(), ctx))
  1804. {
  1805. ICombatSessionPrxHelper h = new ICombatSessionPrxHelper();
  1806. h.copyFrom__(bb);
  1807. return h;
  1808. }
  1809. }
  1810. catch(Ice.FacetNotExistException)
  1811. {
  1812. }
  1813. return null;
  1814. }
  1815. public static ICombatSessionPrx uncheckedCast(Ice.ObjectPrx b)
  1816. {
  1817. if(b == null)
  1818. {
  1819. return null;
  1820. }
  1821. ICombatSessionPrx r = b as ICombatSessionPrx;
  1822. if(r == null)
  1823. {
  1824. ICombatSessionPrxHelper h = new ICombatSessionPrxHelper();
  1825. h.copyFrom__(b);
  1826. r = h;
  1827. }
  1828. return r;
  1829. }
  1830. public static ICombatSessionPrx uncheckedCast(Ice.ObjectPrx b, string f)
  1831. {
  1832. if(b == null)
  1833. {
  1834. return null;
  1835. }
  1836. Ice.ObjectPrx bb = b.ice_facet(f);
  1837. ICombatSessionPrxHelper h = new ICombatSessionPrxHelper();
  1838. h.copyFrom__(bb);
  1839. return h;
  1840. }
  1841. public static readonly string[] ids__ =
  1842. {
  1843. "::Glacier2::Session",
  1844. "::Ice::Object",
  1845. "::Slice::ICombatSession"
  1846. };
  1847. public static string ice_staticId()
  1848. {
  1849. return ids__[2];
  1850. }
  1851. #endregion
  1852. #region Marshaling support
  1853. protected override Ice.ObjectDelM_ createDelegateM__()
  1854. {
  1855. return new ICombatSessionDelM_();
  1856. }
  1857. protected override Ice.ObjectDelD_ createDelegateD__()
  1858. {
  1859. return new ICombatSessionDelD_();
  1860. }
  1861. public static void write__(IceInternal.BasicStream os__, ICombatSessionPrx v__)
  1862. {
  1863. os__.writeProxy(v__);
  1864. }
  1865. public static ICombatSessionPrx read__(IceInternal.BasicStream is__)
  1866. {
  1867. Ice.ObjectPrx proxy = is__.readProxy();
  1868. if(proxy != null)
  1869. {
  1870. ICombatSessionPrxHelper result = new ICombatSessionPrxHelper();
  1871. result.copyFrom__(proxy);
  1872. return result;
  1873. }
  1874. return null;
  1875. }
  1876. #endregion
  1877. }
  1878. }
  1879. namespace Slice
  1880. {
  1881. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1882. public interface TransMessageDel_ : Ice.ObjectDel_
  1883. {
  1884. }
  1885. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1886. public interface SenderDel_ : Ice.ObjectDel_
  1887. {
  1888. void SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1889. void SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1890. void Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1891. void ConnectAck(_System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1892. void Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1893. void CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1894. }
  1895. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1896. public interface ServerCallbackDel_ : Ice.ObjectDel_
  1897. {
  1898. void ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1899. }
  1900. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1901. public interface ICombatSessionDel_ : Glacier2.SessionDel_
  1902. {
  1903. void SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1904. void ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__);
  1905. }
  1906. }
  1907. namespace Slice
  1908. {
  1909. [_System.Runtime.InteropServices.ComVisible(false)]
  1910. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1911. public sealed class TransMessageDelM_ : Ice.ObjectDelM_, TransMessageDel_
  1912. {
  1913. }
  1914. [_System.Runtime.InteropServices.ComVisible(false)]
  1915. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  1916. public sealed class SenderDelM_ : Ice.ObjectDelM_, SenderDel_
  1917. {
  1918. public void Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  1919. {
  1920. IceInternal.Outgoing og__ = handler__.getOutgoing("Close", Ice.OperationMode.Normal, context__, observer__);
  1921. try
  1922. {
  1923. try
  1924. {
  1925. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  1926. os__.writeInt(recvPort);
  1927. og__.endWriteParams();
  1928. }
  1929. catch(Ice.LocalException ex__)
  1930. {
  1931. og__.abort(ex__);
  1932. }
  1933. bool ok__ = og__.invoke();
  1934. if(og__.hasResponse())
  1935. {
  1936. try
  1937. {
  1938. if(!ok__)
  1939. {
  1940. try
  1941. {
  1942. og__.throwUserException();
  1943. }
  1944. catch(Ice.UserException ex__)
  1945. {
  1946. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  1947. }
  1948. }
  1949. og__.readEmptyParams();
  1950. }
  1951. catch(Ice.LocalException ex__)
  1952. {
  1953. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  1954. }
  1955. }
  1956. }
  1957. finally
  1958. {
  1959. handler__.reclaimOutgoing(og__);
  1960. }
  1961. }
  1962. public void CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  1963. {
  1964. IceInternal.Outgoing og__ = handler__.getOutgoing("CloseAck", Ice.OperationMode.Normal, context__, observer__);
  1965. try
  1966. {
  1967. try
  1968. {
  1969. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  1970. os__.writeInt(recvPort);
  1971. og__.endWriteParams();
  1972. }
  1973. catch(Ice.LocalException ex__)
  1974. {
  1975. og__.abort(ex__);
  1976. }
  1977. bool ok__ = og__.invoke();
  1978. if(og__.hasResponse())
  1979. {
  1980. try
  1981. {
  1982. if(!ok__)
  1983. {
  1984. try
  1985. {
  1986. og__.throwUserException();
  1987. }
  1988. catch(Ice.UserException ex__)
  1989. {
  1990. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  1991. }
  1992. }
  1993. og__.readEmptyParams();
  1994. }
  1995. catch(Ice.LocalException ex__)
  1996. {
  1997. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  1998. }
  1999. }
  2000. }
  2001. finally
  2002. {
  2003. handler__.reclaimOutgoing(og__);
  2004. }
  2005. }
  2006. public void Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2007. {
  2008. IceInternal.Outgoing og__ = handler__.getOutgoing("Connect", Ice.OperationMode.Normal, context__, observer__);
  2009. try
  2010. {
  2011. try
  2012. {
  2013. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  2014. os__.writeInt(recvPort);
  2015. og__.endWriteParams();
  2016. }
  2017. catch(Ice.LocalException ex__)
  2018. {
  2019. og__.abort(ex__);
  2020. }
  2021. bool ok__ = og__.invoke();
  2022. if(og__.hasResponse())
  2023. {
  2024. try
  2025. {
  2026. if(!ok__)
  2027. {
  2028. try
  2029. {
  2030. og__.throwUserException();
  2031. }
  2032. catch(Ice.UserException ex__)
  2033. {
  2034. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2035. }
  2036. }
  2037. og__.readEmptyParams();
  2038. }
  2039. catch(Ice.LocalException ex__)
  2040. {
  2041. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2042. }
  2043. }
  2044. }
  2045. finally
  2046. {
  2047. handler__.reclaimOutgoing(og__);
  2048. }
  2049. }
  2050. public void ConnectAck(_System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2051. {
  2052. IceInternal.Outgoing og__ = handler__.getOutgoing("ConnectAck", Ice.OperationMode.Normal, context__, observer__);
  2053. try
  2054. {
  2055. og__.writeEmptyParams();
  2056. bool ok__ = og__.invoke();
  2057. if(og__.hasResponse())
  2058. {
  2059. try
  2060. {
  2061. if(!ok__)
  2062. {
  2063. try
  2064. {
  2065. og__.throwUserException();
  2066. }
  2067. catch(Ice.UserException ex__)
  2068. {
  2069. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2070. }
  2071. }
  2072. og__.readEmptyParams();
  2073. }
  2074. catch(Ice.LocalException ex__)
  2075. {
  2076. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2077. }
  2078. }
  2079. }
  2080. finally
  2081. {
  2082. handler__.reclaimOutgoing(og__);
  2083. }
  2084. }
  2085. public void SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2086. {
  2087. IceInternal.Outgoing og__ = handler__.getOutgoing("SendAck", Ice.OperationMode.Normal, context__, observer__);
  2088. try
  2089. {
  2090. try
  2091. {
  2092. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  2093. os__.writeInt(recvPort);
  2094. os__.writeLong(serial);
  2095. og__.endWriteParams();
  2096. }
  2097. catch(Ice.LocalException ex__)
  2098. {
  2099. og__.abort(ex__);
  2100. }
  2101. bool ok__ = og__.invoke();
  2102. if(og__.hasResponse())
  2103. {
  2104. try
  2105. {
  2106. if(!ok__)
  2107. {
  2108. try
  2109. {
  2110. og__.throwUserException();
  2111. }
  2112. catch(Ice.UserException ex__)
  2113. {
  2114. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2115. }
  2116. }
  2117. og__.readEmptyParams();
  2118. }
  2119. catch(Ice.LocalException ex__)
  2120. {
  2121. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2122. }
  2123. }
  2124. }
  2125. finally
  2126. {
  2127. handler__.reclaimOutgoing(og__);
  2128. }
  2129. }
  2130. public void SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2131. {
  2132. IceInternal.Outgoing og__ = handler__.getOutgoing("SendData", Ice.OperationMode.Normal, context__, observer__);
  2133. try
  2134. {
  2135. try
  2136. {
  2137. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  2138. os__.writeInt(recvPort);
  2139. os__.writeObject(message);
  2140. os__.writePendingObjects();
  2141. og__.endWriteParams();
  2142. }
  2143. catch(Ice.LocalException ex__)
  2144. {
  2145. og__.abort(ex__);
  2146. }
  2147. bool ok__ = og__.invoke();
  2148. if(og__.hasResponse())
  2149. {
  2150. try
  2151. {
  2152. if(!ok__)
  2153. {
  2154. try
  2155. {
  2156. og__.throwUserException();
  2157. }
  2158. catch(Ice.UserException ex__)
  2159. {
  2160. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2161. }
  2162. }
  2163. og__.readEmptyParams();
  2164. }
  2165. catch(Ice.LocalException ex__)
  2166. {
  2167. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2168. }
  2169. }
  2170. }
  2171. finally
  2172. {
  2173. handler__.reclaimOutgoing(og__);
  2174. }
  2175. }
  2176. }
  2177. [_System.Runtime.InteropServices.ComVisible(false)]
  2178. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  2179. public sealed class ServerCallbackDelM_ : Ice.ObjectDelM_, ServerCallbackDel_
  2180. {
  2181. public void ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2182. {
  2183. IceInternal.Outgoing og__ = handler__.getOutgoing("ServerToClient", Ice.OperationMode.Normal, context__, observer__);
  2184. try
  2185. {
  2186. try
  2187. {
  2188. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  2189. os__.writeObject(message);
  2190. os__.writePendingObjects();
  2191. og__.endWriteParams();
  2192. }
  2193. catch(Ice.LocalException ex__)
  2194. {
  2195. og__.abort(ex__);
  2196. }
  2197. bool ok__ = og__.invoke();
  2198. if(og__.hasResponse())
  2199. {
  2200. try
  2201. {
  2202. if(!ok__)
  2203. {
  2204. try
  2205. {
  2206. og__.throwUserException();
  2207. }
  2208. catch(Ice.UserException ex__)
  2209. {
  2210. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2211. }
  2212. }
  2213. og__.readEmptyParams();
  2214. }
  2215. catch(Ice.LocalException ex__)
  2216. {
  2217. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2218. }
  2219. }
  2220. }
  2221. finally
  2222. {
  2223. handler__.reclaimOutgoing(og__);
  2224. }
  2225. }
  2226. }
  2227. [_System.Runtime.InteropServices.ComVisible(false)]
  2228. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  2229. public sealed class ICombatSessionDelM_ : Ice.ObjectDelM_, ICombatSessionDel_
  2230. {
  2231. public void destroy(_System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2232. {
  2233. IceInternal.Outgoing og__ = handler__.getOutgoing("destroy", Ice.OperationMode.Normal, context__, observer__);
  2234. try
  2235. {
  2236. og__.writeEmptyParams();
  2237. bool ok__ = og__.invoke();
  2238. if(og__.hasResponse())
  2239. {
  2240. try
  2241. {
  2242. if(!ok__)
  2243. {
  2244. try
  2245. {
  2246. og__.throwUserException();
  2247. }
  2248. catch(Ice.UserException ex__)
  2249. {
  2250. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2251. }
  2252. }
  2253. og__.readEmptyParams();
  2254. }
  2255. catch(Ice.LocalException ex__)
  2256. {
  2257. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2258. }
  2259. }
  2260. }
  2261. finally
  2262. {
  2263. handler__.reclaimOutgoing(og__);
  2264. }
  2265. }
  2266. public void ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2267. {
  2268. IceInternal.Outgoing og__ = handler__.getOutgoing("ClientToServer", Ice.OperationMode.Normal, context__, observer__);
  2269. try
  2270. {
  2271. try
  2272. {
  2273. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  2274. os__.writeObject(message);
  2275. os__.writePendingObjects();
  2276. og__.endWriteParams();
  2277. }
  2278. catch(Ice.LocalException ex__)
  2279. {
  2280. og__.abort(ex__);
  2281. }
  2282. bool ok__ = og__.invoke();
  2283. if(og__.hasResponse())
  2284. {
  2285. try
  2286. {
  2287. if(!ok__)
  2288. {
  2289. try
  2290. {
  2291. og__.throwUserException();
  2292. }
  2293. catch(Ice.UserException ex__)
  2294. {
  2295. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2296. }
  2297. }
  2298. og__.readEmptyParams();
  2299. }
  2300. catch(Ice.LocalException ex__)
  2301. {
  2302. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2303. }
  2304. }
  2305. }
  2306. finally
  2307. {
  2308. handler__.reclaimOutgoing(og__);
  2309. }
  2310. }
  2311. public void SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2312. {
  2313. IceInternal.Outgoing og__ = handler__.getOutgoing("SetCallback", Ice.OperationMode.Normal, context__, observer__);
  2314. try
  2315. {
  2316. try
  2317. {
  2318. IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
  2319. Slice.ServerCallbackPrxHelper.write__(os__, callback);
  2320. og__.endWriteParams();
  2321. }
  2322. catch(Ice.LocalException ex__)
  2323. {
  2324. og__.abort(ex__);
  2325. }
  2326. bool ok__ = og__.invoke();
  2327. if(og__.hasResponse())
  2328. {
  2329. try
  2330. {
  2331. if(!ok__)
  2332. {
  2333. try
  2334. {
  2335. og__.throwUserException();
  2336. }
  2337. catch(Ice.UserException ex__)
  2338. {
  2339. throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
  2340. }
  2341. }
  2342. og__.readEmptyParams();
  2343. }
  2344. catch(Ice.LocalException ex__)
  2345. {
  2346. throw new IceInternal.LocalExceptionWrapper(ex__, false);
  2347. }
  2348. }
  2349. }
  2350. finally
  2351. {
  2352. handler__.reclaimOutgoing(og__);
  2353. }
  2354. }
  2355. }
  2356. }
  2357. namespace Slice
  2358. {
  2359. [_System.Runtime.InteropServices.ComVisible(false)]
  2360. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  2361. public sealed class TransMessageDelD_ : Ice.ObjectDelD_, TransMessageDel_
  2362. {
  2363. }
  2364. [_System.Runtime.InteropServices.ComVisible(false)]
  2365. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  2366. public sealed class SenderDelD_ : Ice.ObjectDelD_, SenderDel_
  2367. {
  2368. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2369. public void Close(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2370. {
  2371. Ice.Current current__ = new Ice.Current();
  2372. initCurrent__(ref current__, "Close", Ice.OperationMode.Normal, context__);
  2373. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2374. {
  2375. Sender servant__ = null;
  2376. try
  2377. {
  2378. servant__ = (Sender)obj__;
  2379. }
  2380. catch(_System.InvalidCastException)
  2381. {
  2382. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2383. }
  2384. servant__.Close(recvPort, current__);
  2385. return Ice.DispatchStatus.DispatchOK;
  2386. };
  2387. IceInternal.Direct direct__ = null;
  2388. try
  2389. {
  2390. direct__ = new IceInternal.Direct(current__, run__);
  2391. try
  2392. {
  2393. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2394. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2395. }
  2396. finally
  2397. {
  2398. direct__.destroy();
  2399. }
  2400. }
  2401. catch(Ice.SystemException)
  2402. {
  2403. throw;
  2404. }
  2405. catch(_System.Exception ex__)
  2406. {
  2407. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2408. }
  2409. }
  2410. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2411. public void CloseAck(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2412. {
  2413. Ice.Current current__ = new Ice.Current();
  2414. initCurrent__(ref current__, "CloseAck", Ice.OperationMode.Normal, context__);
  2415. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2416. {
  2417. Sender servant__ = null;
  2418. try
  2419. {
  2420. servant__ = (Sender)obj__;
  2421. }
  2422. catch(_System.InvalidCastException)
  2423. {
  2424. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2425. }
  2426. servant__.CloseAck(recvPort, current__);
  2427. return Ice.DispatchStatus.DispatchOK;
  2428. };
  2429. IceInternal.Direct direct__ = null;
  2430. try
  2431. {
  2432. direct__ = new IceInternal.Direct(current__, run__);
  2433. try
  2434. {
  2435. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2436. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2437. }
  2438. finally
  2439. {
  2440. direct__.destroy();
  2441. }
  2442. }
  2443. catch(Ice.SystemException)
  2444. {
  2445. throw;
  2446. }
  2447. catch(_System.Exception ex__)
  2448. {
  2449. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2450. }
  2451. }
  2452. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2453. public void Connect(int recvPort, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2454. {
  2455. Ice.Current current__ = new Ice.Current();
  2456. initCurrent__(ref current__, "Connect", Ice.OperationMode.Normal, context__);
  2457. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2458. {
  2459. Sender servant__ = null;
  2460. try
  2461. {
  2462. servant__ = (Sender)obj__;
  2463. }
  2464. catch(_System.InvalidCastException)
  2465. {
  2466. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2467. }
  2468. servant__.Connect(recvPort, current__);
  2469. return Ice.DispatchStatus.DispatchOK;
  2470. };
  2471. IceInternal.Direct direct__ = null;
  2472. try
  2473. {
  2474. direct__ = new IceInternal.Direct(current__, run__);
  2475. try
  2476. {
  2477. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2478. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2479. }
  2480. finally
  2481. {
  2482. direct__.destroy();
  2483. }
  2484. }
  2485. catch(Ice.SystemException)
  2486. {
  2487. throw;
  2488. }
  2489. catch(_System.Exception ex__)
  2490. {
  2491. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2492. }
  2493. }
  2494. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2495. public void ConnectAck(_System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2496. {
  2497. Ice.Current current__ = new Ice.Current();
  2498. initCurrent__(ref current__, "ConnectAck", Ice.OperationMode.Normal, context__);
  2499. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2500. {
  2501. Sender servant__ = null;
  2502. try
  2503. {
  2504. servant__ = (Sender)obj__;
  2505. }
  2506. catch(_System.InvalidCastException)
  2507. {
  2508. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2509. }
  2510. servant__.ConnectAck(current__);
  2511. return Ice.DispatchStatus.DispatchOK;
  2512. };
  2513. IceInternal.Direct direct__ = null;
  2514. try
  2515. {
  2516. direct__ = new IceInternal.Direct(current__, run__);
  2517. try
  2518. {
  2519. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2520. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2521. }
  2522. finally
  2523. {
  2524. direct__.destroy();
  2525. }
  2526. }
  2527. catch(Ice.SystemException)
  2528. {
  2529. throw;
  2530. }
  2531. catch(_System.Exception ex__)
  2532. {
  2533. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2534. }
  2535. }
  2536. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2537. public void SendAck(int recvPort, long serial, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2538. {
  2539. Ice.Current current__ = new Ice.Current();
  2540. initCurrent__(ref current__, "SendAck", Ice.OperationMode.Normal, context__);
  2541. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2542. {
  2543. Sender servant__ = null;
  2544. try
  2545. {
  2546. servant__ = (Sender)obj__;
  2547. }
  2548. catch(_System.InvalidCastException)
  2549. {
  2550. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2551. }
  2552. servant__.SendAck(recvPort, serial, current__);
  2553. return Ice.DispatchStatus.DispatchOK;
  2554. };
  2555. IceInternal.Direct direct__ = null;
  2556. try
  2557. {
  2558. direct__ = new IceInternal.Direct(current__, run__);
  2559. try
  2560. {
  2561. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2562. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2563. }
  2564. finally
  2565. {
  2566. direct__.destroy();
  2567. }
  2568. }
  2569. catch(Ice.SystemException)
  2570. {
  2571. throw;
  2572. }
  2573. catch(_System.Exception ex__)
  2574. {
  2575. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2576. }
  2577. }
  2578. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2579. public void SendData(int recvPort, Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2580. {
  2581. Ice.Current current__ = new Ice.Current();
  2582. initCurrent__(ref current__, "SendData", Ice.OperationMode.Normal, context__);
  2583. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2584. {
  2585. Sender servant__ = null;
  2586. try
  2587. {
  2588. servant__ = (Sender)obj__;
  2589. }
  2590. catch(_System.InvalidCastException)
  2591. {
  2592. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2593. }
  2594. servant__.SendData(recvPort, message, current__);
  2595. return Ice.DispatchStatus.DispatchOK;
  2596. };
  2597. IceInternal.Direct direct__ = null;
  2598. try
  2599. {
  2600. direct__ = new IceInternal.Direct(current__, run__);
  2601. try
  2602. {
  2603. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2604. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2605. }
  2606. finally
  2607. {
  2608. direct__.destroy();
  2609. }
  2610. }
  2611. catch(Ice.SystemException)
  2612. {
  2613. throw;
  2614. }
  2615. catch(_System.Exception ex__)
  2616. {
  2617. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2618. }
  2619. }
  2620. }
  2621. [_System.Runtime.InteropServices.ComVisible(false)]
  2622. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  2623. public sealed class ServerCallbackDelD_ : Ice.ObjectDelD_, ServerCallbackDel_
  2624. {
  2625. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2626. public void ServerToClient(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2627. {
  2628. Ice.Current current__ = new Ice.Current();
  2629. initCurrent__(ref current__, "ServerToClient", Ice.OperationMode.Normal, context__);
  2630. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2631. {
  2632. ServerCallback servant__ = null;
  2633. try
  2634. {
  2635. servant__ = (ServerCallback)obj__;
  2636. }
  2637. catch(_System.InvalidCastException)
  2638. {
  2639. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2640. }
  2641. servant__.ServerToClient(message, current__);
  2642. return Ice.DispatchStatus.DispatchOK;
  2643. };
  2644. IceInternal.Direct direct__ = null;
  2645. try
  2646. {
  2647. direct__ = new IceInternal.Direct(current__, run__);
  2648. try
  2649. {
  2650. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2651. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2652. }
  2653. finally
  2654. {
  2655. direct__.destroy();
  2656. }
  2657. }
  2658. catch(Ice.SystemException)
  2659. {
  2660. throw;
  2661. }
  2662. catch(_System.Exception ex__)
  2663. {
  2664. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2665. }
  2666. }
  2667. }
  2668. [_System.Runtime.InteropServices.ComVisible(false)]
  2669. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  2670. public sealed class ICombatSessionDelD_ : Ice.ObjectDelD_, ICombatSessionDel_
  2671. {
  2672. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2673. public void destroy(_System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2674. {
  2675. Ice.Current current__ = new Ice.Current();
  2676. initCurrent__(ref current__, "destroy", Ice.OperationMode.Normal, context__);
  2677. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2678. {
  2679. ICombatSession servant__ = null;
  2680. try
  2681. {
  2682. servant__ = (ICombatSession)obj__;
  2683. }
  2684. catch(_System.InvalidCastException)
  2685. {
  2686. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2687. }
  2688. servant__.destroy(current__);
  2689. return Ice.DispatchStatus.DispatchOK;
  2690. };
  2691. IceInternal.Direct direct__ = null;
  2692. try
  2693. {
  2694. direct__ = new IceInternal.Direct(current__, run__);
  2695. try
  2696. {
  2697. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2698. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2699. }
  2700. finally
  2701. {
  2702. direct__.destroy();
  2703. }
  2704. }
  2705. catch(Ice.SystemException)
  2706. {
  2707. throw;
  2708. }
  2709. catch(_System.Exception ex__)
  2710. {
  2711. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2712. }
  2713. }
  2714. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2715. public void ClientToServer(Slice.TransMessage message, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2716. {
  2717. Ice.Current current__ = new Ice.Current();
  2718. initCurrent__(ref current__, "ClientToServer", Ice.OperationMode.Normal, context__);
  2719. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2720. {
  2721. ICombatSession servant__ = null;
  2722. try
  2723. {
  2724. servant__ = (ICombatSession)obj__;
  2725. }
  2726. catch(_System.InvalidCastException)
  2727. {
  2728. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2729. }
  2730. servant__.ClientToServer(message, current__);
  2731. return Ice.DispatchStatus.DispatchOK;
  2732. };
  2733. IceInternal.Direct direct__ = null;
  2734. try
  2735. {
  2736. direct__ = new IceInternal.Direct(current__, run__);
  2737. try
  2738. {
  2739. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2740. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2741. }
  2742. finally
  2743. {
  2744. direct__.destroy();
  2745. }
  2746. }
  2747. catch(Ice.SystemException)
  2748. {
  2749. throw;
  2750. }
  2751. catch(_System.Exception ex__)
  2752. {
  2753. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2754. }
  2755. }
  2756. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031")]
  2757. public void SetCallback(Slice.ServerCallbackPrx callback, _System.Collections.Generic.Dictionary<string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
  2758. {
  2759. Ice.Current current__ = new Ice.Current();
  2760. initCurrent__(ref current__, "SetCallback", Ice.OperationMode.Normal, context__);
  2761. IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
  2762. {
  2763. ICombatSession servant__ = null;
  2764. try
  2765. {
  2766. servant__ = (ICombatSession)obj__;
  2767. }
  2768. catch(_System.InvalidCastException)
  2769. {
  2770. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2771. }
  2772. servant__.SetCallback(callback, current__);
  2773. return Ice.DispatchStatus.DispatchOK;
  2774. };
  2775. IceInternal.Direct direct__ = null;
  2776. try
  2777. {
  2778. direct__ = new IceInternal.Direct(current__, run__);
  2779. try
  2780. {
  2781. Ice.DispatchStatus status__ = direct__.getServant().collocDispatch__(direct__);
  2782. _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
  2783. }
  2784. finally
  2785. {
  2786. direct__.destroy();
  2787. }
  2788. }
  2789. catch(Ice.SystemException)
  2790. {
  2791. throw;
  2792. }
  2793. catch(_System.Exception ex__)
  2794. {
  2795. IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
  2796. }
  2797. }
  2798. }
  2799. }
  2800. namespace Slice
  2801. {
  2802. [_System.Runtime.InteropServices.ComVisible(false)]
  2803. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  2804. public abstract class SenderDisp_ : Ice.ObjectImpl, Sender
  2805. {
  2806. #region Slice operations
  2807. public void SendData(int recvPort, Slice.TransMessage message)
  2808. {
  2809. SendData(recvPort, message, Ice.ObjectImpl.defaultCurrent);
  2810. }
  2811. public abstract void SendData(int recvPort, Slice.TransMessage message, Ice.Current current__);
  2812. public void SendAck(int recvPort, long serial)
  2813. {
  2814. SendAck(recvPort, serial, Ice.ObjectImpl.defaultCurrent);
  2815. }
  2816. public abstract void SendAck(int recvPort, long serial, Ice.Current current__);
  2817. public void Connect(int recvPort)
  2818. {
  2819. Connect(recvPort, Ice.ObjectImpl.defaultCurrent);
  2820. }
  2821. public abstract void Connect(int recvPort, Ice.Current current__);
  2822. public void ConnectAck()
  2823. {
  2824. ConnectAck(Ice.ObjectImpl.defaultCurrent);
  2825. }
  2826. public abstract void ConnectAck(Ice.Current current__);
  2827. public void Close(int recvPort)
  2828. {
  2829. Close(recvPort, Ice.ObjectImpl.defaultCurrent);
  2830. }
  2831. public abstract void Close(int recvPort, Ice.Current current__);
  2832. public void CloseAck(int recvPort)
  2833. {
  2834. CloseAck(recvPort, Ice.ObjectImpl.defaultCurrent);
  2835. }
  2836. public abstract void CloseAck(int recvPort, Ice.Current current__);
  2837. #endregion
  2838. #region Slice type-related members
  2839. public static new readonly string[] ids__ =
  2840. {
  2841. "::Ice::Object",
  2842. "::Slice::Sender"
  2843. };
  2844. public override bool ice_isA(string s)
  2845. {
  2846. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  2847. }
  2848. public override bool ice_isA(string s, Ice.Current current__)
  2849. {
  2850. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  2851. }
  2852. public override string[] ice_ids()
  2853. {
  2854. return ids__;
  2855. }
  2856. public override string[] ice_ids(Ice.Current current__)
  2857. {
  2858. return ids__;
  2859. }
  2860. public override string ice_id()
  2861. {
  2862. return ids__[1];
  2863. }
  2864. public override string ice_id(Ice.Current current__)
  2865. {
  2866. return ids__[1];
  2867. }
  2868. public static new string ice_staticId()
  2869. {
  2870. return ids__[1];
  2871. }
  2872. #endregion
  2873. #region Operation dispatch
  2874. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  2875. public static Ice.DispatchStatus SendData___(Sender obj__, IceInternal.Incoming inS__, Ice.Current current__)
  2876. {
  2877. checkMode__(Ice.OperationMode.Normal, current__.mode);
  2878. IceInternal.BasicStream is__ = inS__.startReadParams();
  2879. int recvPort;
  2880. recvPort = is__.readInt();
  2881. IceInternal.ParamPatcher<Slice.TransMessage> message__PP = new IceInternal.ParamPatcher<Slice.TransMessage>(Slice.TransMessage.ice_staticId());
  2882. is__.readObject(message__PP);
  2883. is__.readPendingObjects();
  2884. inS__.endReadParams();
  2885. obj__.SendData(recvPort, message__PP.value, current__);
  2886. inS__.writeEmptyParams__();
  2887. return Ice.DispatchStatus.DispatchOK;
  2888. }
  2889. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  2890. public static Ice.DispatchStatus SendAck___(Sender obj__, IceInternal.Incoming inS__, Ice.Current current__)
  2891. {
  2892. checkMode__(Ice.OperationMode.Normal, current__.mode);
  2893. IceInternal.BasicStream is__ = inS__.startReadParams();
  2894. int recvPort;
  2895. long serial;
  2896. recvPort = is__.readInt();
  2897. serial = is__.readLong();
  2898. inS__.endReadParams();
  2899. obj__.SendAck(recvPort, serial, current__);
  2900. inS__.writeEmptyParams__();
  2901. return Ice.DispatchStatus.DispatchOK;
  2902. }
  2903. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  2904. public static Ice.DispatchStatus Connect___(Sender obj__, IceInternal.Incoming inS__, Ice.Current current__)
  2905. {
  2906. checkMode__(Ice.OperationMode.Normal, current__.mode);
  2907. IceInternal.BasicStream is__ = inS__.startReadParams();
  2908. int recvPort;
  2909. recvPort = is__.readInt();
  2910. inS__.endReadParams();
  2911. obj__.Connect(recvPort, current__);
  2912. inS__.writeEmptyParams__();
  2913. return Ice.DispatchStatus.DispatchOK;
  2914. }
  2915. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  2916. public static Ice.DispatchStatus ConnectAck___(Sender obj__, IceInternal.Incoming inS__, Ice.Current current__)
  2917. {
  2918. checkMode__(Ice.OperationMode.Normal, current__.mode);
  2919. inS__.readEmptyParams();
  2920. obj__.ConnectAck(current__);
  2921. inS__.writeEmptyParams__();
  2922. return Ice.DispatchStatus.DispatchOK;
  2923. }
  2924. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  2925. public static Ice.DispatchStatus Close___(Sender obj__, IceInternal.Incoming inS__, Ice.Current current__)
  2926. {
  2927. checkMode__(Ice.OperationMode.Normal, current__.mode);
  2928. IceInternal.BasicStream is__ = inS__.startReadParams();
  2929. int recvPort;
  2930. recvPort = is__.readInt();
  2931. inS__.endReadParams();
  2932. obj__.Close(recvPort, current__);
  2933. inS__.writeEmptyParams__();
  2934. return Ice.DispatchStatus.DispatchOK;
  2935. }
  2936. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  2937. public static Ice.DispatchStatus CloseAck___(Sender obj__, IceInternal.Incoming inS__, Ice.Current current__)
  2938. {
  2939. checkMode__(Ice.OperationMode.Normal, current__.mode);
  2940. IceInternal.BasicStream is__ = inS__.startReadParams();
  2941. int recvPort;
  2942. recvPort = is__.readInt();
  2943. inS__.endReadParams();
  2944. obj__.CloseAck(recvPort, current__);
  2945. inS__.writeEmptyParams__();
  2946. return Ice.DispatchStatus.DispatchOK;
  2947. }
  2948. private static string[] all__ =
  2949. {
  2950. "Close",
  2951. "CloseAck",
  2952. "Connect",
  2953. "ConnectAck",
  2954. "SendAck",
  2955. "SendData",
  2956. "ice_id",
  2957. "ice_ids",
  2958. "ice_isA",
  2959. "ice_ping"
  2960. };
  2961. public override Ice.DispatchStatus dispatch__(IceInternal.Incoming inS__, Ice.Current current__)
  2962. {
  2963. int pos = _System.Array.BinarySearch(all__, current__.operation, IceUtilInternal.StringUtil.OrdinalStringComparer);
  2964. if(pos < 0)
  2965. {
  2966. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  2967. }
  2968. switch(pos)
  2969. {
  2970. case 0:
  2971. {
  2972. return Close___(this, inS__, current__);
  2973. }
  2974. case 1:
  2975. {
  2976. return CloseAck___(this, inS__, current__);
  2977. }
  2978. case 2:
  2979. {
  2980. return Connect___(this, inS__, current__);
  2981. }
  2982. case 3:
  2983. {
  2984. return ConnectAck___(this, inS__, current__);
  2985. }
  2986. case 4:
  2987. {
  2988. return SendAck___(this, inS__, current__);
  2989. }
  2990. case 5:
  2991. {
  2992. return SendData___(this, inS__, current__);
  2993. }
  2994. case 6:
  2995. {
  2996. return ice_id___(this, inS__, current__);
  2997. }
  2998. case 7:
  2999. {
  3000. return ice_ids___(this, inS__, current__);
  3001. }
  3002. case 8:
  3003. {
  3004. return ice_isA___(this, inS__, current__);
  3005. }
  3006. case 9:
  3007. {
  3008. return ice_ping___(this, inS__, current__);
  3009. }
  3010. }
  3011. _System.Diagnostics.Debug.Assert(false);
  3012. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  3013. }
  3014. #endregion
  3015. #region Marshaling support
  3016. protected override void writeImpl__(IceInternal.BasicStream os__)
  3017. {
  3018. os__.startWriteSlice(ice_staticId(), -1, true);
  3019. os__.endWriteSlice();
  3020. }
  3021. protected override void readImpl__(IceInternal.BasicStream is__)
  3022. {
  3023. is__.startReadSlice();
  3024. is__.endReadSlice();
  3025. }
  3026. #endregion
  3027. }
  3028. [_System.Runtime.InteropServices.ComVisible(false)]
  3029. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  3030. public abstract class ServerCallbackDisp_ : Ice.ObjectImpl, ServerCallback
  3031. {
  3032. #region Slice operations
  3033. public void ServerToClient(Slice.TransMessage message)
  3034. {
  3035. ServerToClient(message, Ice.ObjectImpl.defaultCurrent);
  3036. }
  3037. public abstract void ServerToClient(Slice.TransMessage message, Ice.Current current__);
  3038. #endregion
  3039. #region Slice type-related members
  3040. public static new readonly string[] ids__ =
  3041. {
  3042. "::Ice::Object",
  3043. "::Slice::ServerCallback"
  3044. };
  3045. public override bool ice_isA(string s)
  3046. {
  3047. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  3048. }
  3049. public override bool ice_isA(string s, Ice.Current current__)
  3050. {
  3051. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  3052. }
  3053. public override string[] ice_ids()
  3054. {
  3055. return ids__;
  3056. }
  3057. public override string[] ice_ids(Ice.Current current__)
  3058. {
  3059. return ids__;
  3060. }
  3061. public override string ice_id()
  3062. {
  3063. return ids__[1];
  3064. }
  3065. public override string ice_id(Ice.Current current__)
  3066. {
  3067. return ids__[1];
  3068. }
  3069. public static new string ice_staticId()
  3070. {
  3071. return ids__[1];
  3072. }
  3073. #endregion
  3074. #region Operation dispatch
  3075. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  3076. public static Ice.DispatchStatus ServerToClient___(ServerCallback obj__, IceInternal.Incoming inS__, Ice.Current current__)
  3077. {
  3078. checkMode__(Ice.OperationMode.Normal, current__.mode);
  3079. IceInternal.BasicStream is__ = inS__.startReadParams();
  3080. IceInternal.ParamPatcher<Slice.TransMessage> message__PP = new IceInternal.ParamPatcher<Slice.TransMessage>(Slice.TransMessage.ice_staticId());
  3081. is__.readObject(message__PP);
  3082. is__.readPendingObjects();
  3083. inS__.endReadParams();
  3084. obj__.ServerToClient(message__PP.value, current__);
  3085. inS__.writeEmptyParams__();
  3086. return Ice.DispatchStatus.DispatchOK;
  3087. }
  3088. private static string[] all__ =
  3089. {
  3090. "ServerToClient",
  3091. "ice_id",
  3092. "ice_ids",
  3093. "ice_isA",
  3094. "ice_ping"
  3095. };
  3096. public override Ice.DispatchStatus dispatch__(IceInternal.Incoming inS__, Ice.Current current__)
  3097. {
  3098. int pos = _System.Array.BinarySearch(all__, current__.operation, IceUtilInternal.StringUtil.OrdinalStringComparer);
  3099. if(pos < 0)
  3100. {
  3101. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  3102. }
  3103. switch(pos)
  3104. {
  3105. case 0:
  3106. {
  3107. return ServerToClient___(this, inS__, current__);
  3108. }
  3109. case 1:
  3110. {
  3111. return ice_id___(this, inS__, current__);
  3112. }
  3113. case 2:
  3114. {
  3115. return ice_ids___(this, inS__, current__);
  3116. }
  3117. case 3:
  3118. {
  3119. return ice_isA___(this, inS__, current__);
  3120. }
  3121. case 4:
  3122. {
  3123. return ice_ping___(this, inS__, current__);
  3124. }
  3125. }
  3126. _System.Diagnostics.Debug.Assert(false);
  3127. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  3128. }
  3129. #endregion
  3130. #region Marshaling support
  3131. protected override void writeImpl__(IceInternal.BasicStream os__)
  3132. {
  3133. os__.startWriteSlice(ice_staticId(), -1, true);
  3134. os__.endWriteSlice();
  3135. }
  3136. protected override void readImpl__(IceInternal.BasicStream is__)
  3137. {
  3138. is__.startReadSlice();
  3139. is__.endReadSlice();
  3140. }
  3141. #endregion
  3142. }
  3143. [_System.Runtime.InteropServices.ComVisible(false)]
  3144. [_System.CodeDom.Compiler.GeneratedCodeAttribute("slice2cs", "3.5.1")]
  3145. public abstract class ICombatSessionDisp_ : Ice.ObjectImpl, ICombatSession
  3146. {
  3147. #region Slice operations
  3148. public void SetCallback(Slice.ServerCallbackPrx callback)
  3149. {
  3150. SetCallback(callback, Ice.ObjectImpl.defaultCurrent);
  3151. }
  3152. public abstract void SetCallback(Slice.ServerCallbackPrx callback, Ice.Current current__);
  3153. public void ClientToServer(Slice.TransMessage message)
  3154. {
  3155. ClientToServer(message, Ice.ObjectImpl.defaultCurrent);
  3156. }
  3157. public abstract void ClientToServer(Slice.TransMessage message, Ice.Current current__);
  3158. #endregion
  3159. #region Inherited Slice operations
  3160. public void destroy()
  3161. {
  3162. destroy(Ice.ObjectImpl.defaultCurrent);
  3163. }
  3164. public abstract void destroy(Ice.Current current__);
  3165. #endregion
  3166. #region Slice type-related members
  3167. public static new readonly string[] ids__ =
  3168. {
  3169. "::Glacier2::Session",
  3170. "::Ice::Object",
  3171. "::Slice::ICombatSession"
  3172. };
  3173. public override bool ice_isA(string s)
  3174. {
  3175. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  3176. }
  3177. public override bool ice_isA(string s, Ice.Current current__)
  3178. {
  3179. return _System.Array.BinarySearch(ids__, s, IceUtilInternal.StringUtil.OrdinalStringComparer) >= 0;
  3180. }
  3181. public override string[] ice_ids()
  3182. {
  3183. return ids__;
  3184. }
  3185. public override string[] ice_ids(Ice.Current current__)
  3186. {
  3187. return ids__;
  3188. }
  3189. public override string ice_id()
  3190. {
  3191. return ids__[2];
  3192. }
  3193. public override string ice_id(Ice.Current current__)
  3194. {
  3195. return ids__[2];
  3196. }
  3197. public static new string ice_staticId()
  3198. {
  3199. return ids__[2];
  3200. }
  3201. #endregion
  3202. #region Operation dispatch
  3203. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  3204. public static Ice.DispatchStatus SetCallback___(ICombatSession obj__, IceInternal.Incoming inS__, Ice.Current current__)
  3205. {
  3206. checkMode__(Ice.OperationMode.Normal, current__.mode);
  3207. IceInternal.BasicStream is__ = inS__.startReadParams();
  3208. Slice.ServerCallbackPrx callback;
  3209. callback = Slice.ServerCallbackPrxHelper.read__(is__);
  3210. inS__.endReadParams();
  3211. obj__.SetCallback(callback, current__);
  3212. inS__.writeEmptyParams__();
  3213. return Ice.DispatchStatus.DispatchOK;
  3214. }
  3215. [_System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
  3216. public static Ice.DispatchStatus ClientToServer___(ICombatSession obj__, IceInternal.Incoming inS__, Ice.Current current__)
  3217. {
  3218. checkMode__(Ice.OperationMode.Normal, current__.mode);
  3219. IceInternal.BasicStream is__ = inS__.startReadParams();
  3220. IceInternal.ParamPatcher<Slice.TransMessage> message__PP = new IceInternal.ParamPatcher<Slice.TransMessage>(Slice.TransMessage.ice_staticId());
  3221. is__.readObject(message__PP);
  3222. is__.readPendingObjects();
  3223. inS__.endReadParams();
  3224. obj__.ClientToServer(message__PP.value, current__);
  3225. inS__.writeEmptyParams__();
  3226. return Ice.DispatchStatus.DispatchOK;
  3227. }
  3228. private static string[] all__ =
  3229. {
  3230. "ClientToServer",
  3231. "SetCallback",
  3232. "destroy",
  3233. "ice_id",
  3234. "ice_ids",
  3235. "ice_isA",
  3236. "ice_ping"
  3237. };
  3238. public override Ice.DispatchStatus dispatch__(IceInternal.Incoming inS__, Ice.Current current__)
  3239. {
  3240. int pos = _System.Array.BinarySearch(all__, current__.operation, IceUtilInternal.StringUtil.OrdinalStringComparer);
  3241. if(pos < 0)
  3242. {
  3243. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  3244. }
  3245. switch(pos)
  3246. {
  3247. case 0:
  3248. {
  3249. return ClientToServer___(this, inS__, current__);
  3250. }
  3251. case 1:
  3252. {
  3253. return SetCallback___(this, inS__, current__);
  3254. }
  3255. case 2:
  3256. {
  3257. return Glacier2.SessionDisp_.destroy___(this, inS__, current__);
  3258. }
  3259. case 3:
  3260. {
  3261. return ice_id___(this, inS__, current__);
  3262. }
  3263. case 4:
  3264. {
  3265. return ice_ids___(this, inS__, current__);
  3266. }
  3267. case 5:
  3268. {
  3269. return ice_isA___(this, inS__, current__);
  3270. }
  3271. case 6:
  3272. {
  3273. return ice_ping___(this, inS__, current__);
  3274. }
  3275. }
  3276. _System.Diagnostics.Debug.Assert(false);
  3277. throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
  3278. }
  3279. #endregion
  3280. #region Marshaling support
  3281. protected override void writeImpl__(IceInternal.BasicStream os__)
  3282. {
  3283. os__.startWriteSlice(ice_staticId(), -1, true);
  3284. os__.endWriteSlice();
  3285. }
  3286. protected override void readImpl__(IceInternal.BasicStream is__)
  3287. {
  3288. is__.startReadSlice();
  3289. is__.endReadSlice();
  3290. }
  3291. #endregion
  3292. }
  3293. }