mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 11:32:59 +00:00
Added getter
This commit is contained in:
parent
4174c141b7
commit
f9bbd603ce
@ -778,12 +778,23 @@ namespace Esyur.Net.IIP
|
||||
|
||||
|
||||
this.Socket.Hold();
|
||||
while (offset < ends)
|
||||
{
|
||||
offset = processPacket(msg, offset, ends, data, chunkId);
|
||||
}
|
||||
|
||||
this.Socket.Unhold();
|
||||
try
|
||||
{
|
||||
while (offset < ends)
|
||||
{
|
||||
offset = processPacket(msg, offset, ends, data, chunkId);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
Console.Beep();
|
||||
}
|
||||
finally
|
||||
{
|
||||
this.Socket.Unhold();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -445,8 +445,19 @@ namespace Esyur.Net.Sockets
|
||||
|
||||
public void Unhold()
|
||||
{
|
||||
DataSent(null);
|
||||
held = false;
|
||||
try
|
||||
{
|
||||
DataSent(null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
Console.Beep();
|
||||
}
|
||||
finally
|
||||
{
|
||||
held = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -129,10 +129,12 @@ namespace Esyur.Proxy
|
||||
Label exitMethod = g.DefineLabel();
|
||||
Label callModified = g.DefineLabel();
|
||||
|
||||
g.Emit(OpCodes.Nop);
|
||||
|
||||
g.Emit(OpCodes.Ldarg_0);
|
||||
g.Emit(OpCodes.Ldarg_1);
|
||||
g.Emit(OpCodes.Call, pi.GetSetMethod());
|
||||
//g.Emit(OpCodes.Nop);
|
||||
g.Emit(OpCodes.Nop);
|
||||
|
||||
g.Emit(OpCodes.Ldarg_0);
|
||||
g.Emit(OpCodes.Call, getInstance);
|
||||
@ -154,13 +156,19 @@ namespace Esyur.Proxy
|
||||
propertyBuilder.SetSetMethod(builder);
|
||||
|
||||
|
||||
// builder = typeBuilder.DefineMethod("get_" + pi.Name, MethodAttributes.Public | MethodAttributes.Virtual, pi.PropertyType, null);
|
||||
// g = builder.GetILGenerator();
|
||||
// g.Emit(OpCodes.Ldarg_0);
|
||||
// g.Emit(OpCodes.Call, pi.GetGetMethod());
|
||||
// g.Emit(OpCodes.Ret);
|
||||
builder = typeBuilder.DefineMethod("get_" + pi.Name, MethodAttributes.Public | MethodAttributes.Virtual, pi.PropertyType, null);
|
||||
g = builder.GetILGenerator();
|
||||
g.Emit(OpCodes.Ldarg_0);
|
||||
g.Emit(OpCodes.Call, pi.GetGetMethod());
|
||||
g.Emit(OpCodes.Ret);
|
||||
|
||||
// propertyBuilder.SetGetMethod(builder);
|
||||
propertyBuilder.SetGetMethod(builder);
|
||||
|
||||
// g.Emit(OpCodes.Ldarg_0);
|
||||
// g.Emit(OpCodes.Call, pi.GetGetMethod());
|
||||
// g.Emit(OpCodes.Ret);
|
||||
|
||||
// propertyBuilder.SetGetMethod(builder);
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user