Skip to content

Commit b725e5e

Browse files
author
Elad Zelingher
committed
Renaming methods FWIW
1 parent ea9c0b9 commit b725e5e

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

src/net45/WampSharp/WAMP2/V2/MetaApi/Client/Contracts/IWampSessionDescriptorProxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ public interface IWampSessionDescriptorProxy : IWampSessionDescriptor
1010
/// </summary>
1111
/// <returns>The number of sessions currently attached to the realm.</returns>
1212
[WampProcedure("wamp.session.count")]
13-
Task<long> SessionCountAsync();
13+
Task<long> CountSessionsAsync();
1414

1515
/// <summary>
1616
/// Retrieves a list of the session IDs for all sessions currently attached to the realm.
1717
/// </summary>
1818
/// <returns>List of WAMP session IDs (order undefined).</returns>
1919
[WampProcedure("wamp.session.list")]
20-
Task<long[]> GetSessionIdsAsync();
20+
Task<long[]> GetAllSessionIdsAsync();
2121

2222
/// <summary>
2323
/// Retrieves information on a specific session.

src/net45/WampSharp/WAMP2/V2/MetaApi/Client/Generated/WampSessionDescriptorProxyProxy.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ namespace WampSharp.V2.MetaApi
1515
//------------------------------------------------------------------------------
1616
internal class WampSessionDescriptorProxyProxy : CalleeProxyBase, global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy
1717
{
18-
private static readonly MethodInfo mMethod0 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.SessionCountAsync());
19-
private static readonly MethodInfo mMethod1 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.GetSessionIdsAsync());
18+
private static readonly MethodInfo mMethod0 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.CountSessionsAsync());
19+
private static readonly MethodInfo mMethod1 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.GetAllSessionIdsAsync());
2020
private static readonly MethodInfo mMethod2 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.GetSessionDetailsAsync(default(long)));
21-
private static readonly MethodInfo mMethod3 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.SessionCount());
22-
private static readonly MethodInfo mMethod4 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.GetSessionIds());
21+
private static readonly MethodInfo mMethod3 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.CountSessions());
22+
private static readonly MethodInfo mMethod4 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.GetAllSessionIds());
2323
private static readonly MethodInfo mMethod5 = GetMethodInfo((global::WampSharp.V2.MetaApi.IWampSessionDescriptorProxy instance) => instance.GetSessionDetails(default(long)));
2424

2525
public WampSessionDescriptorProxyProxy
@@ -29,12 +29,12 @@ public WampSessionDescriptorProxyProxy
2929
{
3030
}
3131

32-
public Task<long> SessionCountAsync()
32+
public Task<long> CountSessionsAsync()
3333
{
3434
return SingleInvokeAsync<long>(mMethod0);
3535
}
3636

37-
public Task<long[]> GetSessionIdsAsync()
37+
public Task<long[]> GetAllSessionIdsAsync()
3838
{
3939
return SingleInvokeAsync<long[]>(mMethod1);
4040
}
@@ -44,12 +44,12 @@ public Task<long[]> GetSessionIdsAsync()
4444
return SingleInvokeAsync<global::WampSharp.V2.MetaApi.WampSessionDetails>(mMethod2, sessionId);
4545
}
4646

47-
public long SessionCount()
47+
public long CountSessions()
4848
{
4949
return SingleInvokeSync<long>(mMethod3);
5050
}
5151

52-
public long[] GetSessionIds()
52+
public long[] GetAllSessionIds()
5353
{
5454
return SingleInvokeSync<long[]>(mMethod4);
5555
}

src/net45/WampSharp/WAMP2/V2/MetaApi/Client/WampMetaApiServiceProxy.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,29 @@ public MetaEvents SubscribeTo
2929
}
3030
}
3131

32-
public Task<long> SessionCountAsync()
32+
public Task<long> CountSessionsAsync()
3333
{
34-
return mSessionDescriptorProxy.SessionCountAsync();
34+
return mSessionDescriptorProxy.CountSessionsAsync();
3535
}
3636

37-
public Task<long[]> GetSessionIdsAsync()
37+
public Task<long[]> GetAllSessionIdsAsync()
3838
{
39-
return mSessionDescriptorProxy.GetSessionIdsAsync();
39+
return mSessionDescriptorProxy.GetAllSessionIdsAsync();
4040
}
4141

4242
public Task<WampSessionDetails> GetSessionDetailsAsync(long sessionId)
4343
{
4444
return mSessionDescriptorProxy.GetSessionDetailsAsync(sessionId);
4545
}
4646

47-
public long SessionCount()
47+
public long CountSessions()
4848
{
49-
return mSessionDescriptorProxy.SessionCount();
49+
return mSessionDescriptorProxy.CountSessions();
5050
}
5151

52-
public long[] GetSessionIds()
52+
public long[] GetAllSessionIds()
5353
{
54-
return mSessionDescriptorProxy.GetSessionIds();
54+
return mSessionDescriptorProxy.GetAllSessionIds();
5555
}
5656

5757
public WampSessionDetails GetSessionDetails(long sessionId)

src/net45/WampSharp/WAMP2/V2/MetaApi/Session/IWampSessionDescriptor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public interface IWampSessionDescriptor
99
/// </summary>
1010
/// <returns>The number of sessions currently attached to the realm.</returns>
1111
[WampProcedure("wamp.session.count")]
12-
long SessionCount();
12+
long CountSessions();
1313

1414
/// <summary>
1515
/// Retrieves a list of the session IDs for all sessions currently attached to the realm.
1616
/// </summary>
1717
/// <returns>List of WAMP session IDs (order undefined).</returns>
1818
[WampProcedure("wamp.session.list")]
19-
long[] GetSessionIds();
19+
long[] GetAllSessionIds();
2020

2121
/// <summary>
2222
/// Retrieves information on a specific session.

src/net45/WampSharp/WAMP2/V2/MetaApi/Session/SessionDescriptorService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ private void OnSessionClosed(object sender, WampSessionCloseEventArgs e)
4848
mSubscriber.OnLeave(e.SessionId);
4949
}
5050

51-
public long SessionCount()
51+
public long CountSessions()
5252
{
5353
return mSessionIdToDetails.Count;
5454
}
5555

56-
public long[] GetSessionIds()
56+
public long[] GetAllSessionIds()
5757
{
5858
return mSessionIdToDetails.Keys.ToArray();
5959
}

src/net45/WampSharp/WAMP2/V2/MetaApi/WampRealmDescriptorService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public void Dispose()
2828
mRegistrationDescriptor.Dispose();
2929
}
3030

31-
public long SessionCount()
31+
public long CountSessions()
3232
{
33-
return mSessionDescriptor.SessionCount();
33+
return mSessionDescriptor.CountSessions();
3434
}
3535

36-
public long[] GetSessionIds()
36+
public long[] GetAllSessionIds()
3737
{
38-
return mSessionDescriptor.GetSessionIds();
38+
return mSessionDescriptor.GetAllSessionIds();
3939
}
4040

4141
public WampSessionDetails GetSessionDetails(long sessionId)

0 commit comments

Comments
 (0)