База для нового бэкэнда

This commit is contained in:
2025-03-06 14:10:52 +03:00
parent be6dedaee4
commit c802f337c7
18 changed files with 245 additions and 163 deletions
+18
View File
@@ -0,0 +1,18 @@
using System;
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);
}
}
}
+24
View File
@@ -0,0 +1,24 @@
using System.Collections.Generic;
using Example.Shared;
namespace Example.Backend
{
public class PagesList : IPagesList
{
public IReadOnlyList<IPage> Collection { get; }
public IPage Get(int index)
{
throw new System.NotImplementedException();
}
public void Add(IPage item)
{
throw new System.NotImplementedException();
}
public void Set(int index, IPage item)
{
throw new System.NotImplementedException();
}
}
}
+2
View File
@@ -1,5 +1,6 @@
using System.Net;
using Example.Backend;
using Example.Shared;
using mROA.Abstract;
using mROA.Cbor;
using mROA.Codegen;
@@ -48,5 +49,6 @@ class Program
var gateway = builder.GetModule<IGatewayModule>();
gateway.Run();
}
}