mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
Interfaces
This commit is contained in:
13
Test/IMyRecord.cs
Normal file
13
Test/IMyRecord.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using Esiur.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
public interface IMyRecord:IRecord
|
||||
{
|
||||
}
|
||||
}
|
@ -128,6 +128,7 @@ public partial class MyService
|
||||
[Export] public IRecord[] RecordsArray => new IRecord[] { new MyRecord() { Id = 22, Name = "Test", Score = 22.1 } };
|
||||
[Export] public List<MyRecord> RecordsList => new() { new MyRecord() { Id = 22, Name = "Test", Score = 22.1 } };
|
||||
|
||||
//[Export] public IMyRecord myrecord { get; set; }
|
||||
|
||||
[Export] public MyResource[]? myResources;
|
||||
|
||||
|
@ -48,6 +48,7 @@ using System.Text;
|
||||
using Esiur.Security.Cryptography;
|
||||
using Esiur.Security.Membership;
|
||||
using Esiur.Net.Packets;
|
||||
using System.Numerics;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
@ -56,6 +57,9 @@ namespace Test
|
||||
{
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
var rp = RepresentationType.FromType(typeof(IMyRecord));
|
||||
|
||||
var hhhh = Warehouse.GetTemplateByType(typeof(IMyRecord));
|
||||
|
||||
var a = new ECDH();
|
||||
var b = new ECDH();
|
||||
|
Reference in New Issue
Block a user