Критическое изменение в кодгене

This commit is contained in:
2025-03-14 21:21:57 +03:00
parent 481afd1c4d
commit f1f5007ae6
4 changed files with 3 additions and 19 deletions
-17
View File
@@ -1,17 +0,0 @@
using Example.Shared;
namespace Example.Backend
{
public class CsTest
{
public T FinalCasted<T>(IDataList<T> list, int index)
{
return list.Get(index);
}
public object NonCasted(object list, int index)
{
return FinalCasted(list as IDataList<object>, index);
}
}
}
+1 -1
View File
@@ -27,7 +27,7 @@ namespace Example.Backend
// throw new Exception("The method or operation is not implemented.");
var page = new Page { Text = text };
Console.WriteLine($"Request id : :{context.RequestId}");
OnPrint?.Invoke(page, context);
OnPrint?.Invoke(page, new RequestContext(Guid.NewGuid(), 132));
Resource /= 1.5;
return page;
}
+1 -1
View File
@@ -482,7 +482,7 @@ namespace {classSymbol.ContainingNamespace.ToDisplayString()}
Console.WriteLine(""Sending event..."");
var request = new DefaultCallRequest
{{
CommandId = {index}, ObjectId = new ComplexObjectIdentifier(index, context.HostId), Parameters = new object[] {{ {transferParameters} }}
CommandId = {index}, ObjectId = new ComplexObjectIdentifier(index, ownerId), Parameters = new object[] {{ {transferParameters} }}
}};
module.PostCallMessageAsync(request.Id, MessageType.EventRequest, request);
}};
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using mROA.Abstract;