База для нового бэкэнда
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user