1+ using System . Threading ;
2+ using System . Threading . Tasks ;
3+ using WampSharp . V2 . CalleeProxy ;
4+ using WampSharp . V2 . Client ;
5+
6+ namespace WampSharp . V2 . Management . Client
7+ {
8+ //------------------------------------------------------------------------------
9+ // <auto-generated>
10+ // This code was generated by a tool.
11+ //
12+ // Changes to this file may cause incorrect behavior and will be lost if
13+ // the code is regenerated.
14+ // </auto-generated>
15+ //------------------------------------------------------------------------------
16+ internal class WampSessionManagementServiceProxy : CalleeProxyBase , IWampSessionManagementServiceProxy
17+ {
18+ private static readonly InvokeAsyncDelegate < object > mMethodHandler0 = GetInvokeAsync < object > (
19+ GetMethodInfo ( ( IWampSessionManagementServiceProxy instance ) => instance . KillBySessionIdAsync ( default ( long ) , default ( string ) , default ( string ) ) )
20+ ) ;
21+ private static readonly InvokeAsyncDelegate < int > mMethodHandler1 = GetInvokeAsync < int > (
22+ GetMethodInfo ( ( IWampSessionManagementServiceProxy instance ) => instance . KillByAuthIdAsync ( default ( string ) , default ( string ) , default ( string ) ) )
23+ ) ;
24+ private static readonly InvokeAsyncDelegate < int > mMethodHandler2 = GetInvokeAsync < int > (
25+ GetMethodInfo ( ( IWampSessionManagementServiceProxy instance ) => instance . KillByAuthRoleAsync ( default ( string ) , default ( string ) , default ( string ) ) )
26+ ) ;
27+ private static readonly InvokeAsyncDelegate < int > mMethodHandler3 = GetInvokeAsync < int > (
28+ GetMethodInfo ( ( IWampSessionManagementServiceProxy instance ) => instance . KillAllAsync ( default ( string ) , default ( string ) ) )
29+ ) ;
30+
31+ public WampSessionManagementServiceProxy
32+ ( IWampRealmProxy realmProxy ,
33+ ICalleeProxyInterceptor interceptor )
34+ : base ( realmProxy , interceptor )
35+ {
36+ }
37+
38+ public Task KillBySessionIdAsync ( long session , string reason , string message )
39+ {
40+ return mMethodHandler0 ( this , CancellationToken . None , session , reason , message ) ;
41+ }
42+
43+ public Task < int > KillByAuthIdAsync ( string authId , string reason , string message )
44+ {
45+ return mMethodHandler1 ( this , CancellationToken . None , authId , reason , message ) ;
46+ }
47+
48+ public Task < int > KillByAuthRoleAsync ( string authRole , string reason , string message )
49+ {
50+ return mMethodHandler2 ( this , CancellationToken . None , authRole , reason , message ) ;
51+ }
52+
53+ public Task < int > KillAllAsync ( string reason , string message )
54+ {
55+ return mMethodHandler3 ( this , CancellationToken . None , reason , message ) ;
56+ }
57+ }
58+ }
0 commit comments