mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 14:38:43 +00:00
VERBOSE
This commit is contained in:
@@ -127,13 +127,16 @@ public class RemoteTypeDef:TypeDef
|
|||||||
// try to get proxy type
|
// try to get proxy type
|
||||||
od._proxyType = connection.Instance?.Warehouse?.TryGetProxyType(od.Kind, od.Domain, od.Name);
|
od._proxyType = connection.Instance?.Warehouse?.TryGetProxyType(od.Kind, od.Domain, od.Name);
|
||||||
|
|
||||||
|
#if VERBOSE
|
||||||
if (od._proxyType == null)
|
if (od._proxyType == null)
|
||||||
Console.WriteLine("Proxy type not found " + od.Name);
|
Console.WriteLine("Proxy type not found " + od.Name);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (od._proxyType != null)
|
if (od._proxyType != null)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Updating : " + od.Name);
|
#if VERBOSE
|
||||||
|
Console.WriteLine("Updating TypeDef Proxy: " + od.Name);
|
||||||
|
#endif
|
||||||
// update PropertyInfo, MethodInfo, EventInfo, FieldInfo
|
// update PropertyInfo, MethodInfo, EventInfo, FieldInfo
|
||||||
// @TODO Check signature match as well, not only name, to avoid conflicts
|
// @TODO Check signature match as well, not only name, to avoid conflicts
|
||||||
|
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ public partial class EpConnection : NetworkConnection, IStore
|
|||||||
public override void Send(byte[] data)
|
public override void Send(byte[] data)
|
||||||
{
|
{
|
||||||
#if VERBOSE
|
#if VERBOSE
|
||||||
Console.WriteLine("Client: {0}", Data.Length);
|
Console.WriteLine("Client: {0}", data.Length);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Global.Counters["Ep Sent Packets"]++;
|
Global.Counters["Ep Sent Packets"]++;
|
||||||
|
|||||||
@@ -114,6 +114,9 @@ partial class EpConnection
|
|||||||
|
|
||||||
AsyncReply SendRequest(EpPacketRequest action, params object[] args)
|
AsyncReply SendRequest(EpPacketRequest action, params object[] args)
|
||||||
{
|
{
|
||||||
|
#if VERBOSE
|
||||||
|
Console.WriteLine($"Send request {action}");
|
||||||
|
#endif
|
||||||
var reply = new AsyncReply();
|
var reply = new AsyncReply();
|
||||||
var c = (uint)Interlocked.Increment(ref _callbackCounter);
|
var c = (uint)Interlocked.Increment(ref _callbackCounter);
|
||||||
//callbackCounter++; // avoid thread racing
|
//callbackCounter++; // avoid thread racing
|
||||||
@@ -2491,7 +2494,7 @@ partial class EpConnection
|
|||||||
//object fetchResourceLock = new object();
|
//object fetchResourceLock = new object();
|
||||||
public AsyncReply<RemoteTypeDef> FetchTypeDef(ulong id, ulong[] requestSequence)
|
public AsyncReply<RemoteTypeDef> FetchTypeDef(ulong id, ulong[] requestSequence)
|
||||||
{
|
{
|
||||||
//Console.WriteLine($"Fetching typedef {id}");
|
//Console.WriteLine($"Fetching typedef {id} {Instance.Warehouse.GetHashCode()}");
|
||||||
|
|
||||||
RemoteTypeDef typeDef = _cachedTypeDefs[id];
|
RemoteTypeDef typeDef = _cachedTypeDefs[id];
|
||||||
|
|
||||||
@@ -2520,6 +2523,8 @@ partial class EpConnection
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Console.WriteLine($"Sent typedef {id} {Instance.Warehouse.GetHashCode()}");
|
||||||
|
|
||||||
var newSequence = requestSequence != null ? requestSequence.Concat(new ulong[] { id }).ToArray() : new ulong[] { id };
|
var newSequence = requestSequence != null ? requestSequence.Concat(new ulong[] { id }).ToArray() : new ulong[] { id };
|
||||||
|
|
||||||
var reply = new AsyncReply<RemoteTypeDef>();
|
var reply = new AsyncReply<RemoteTypeDef>();
|
||||||
|
|||||||
Reference in New Issue
Block a user