mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-24 03:50:57 +00:00
RPC test
This commit is contained in:
1 parent
340798a5fa
commit
253a24a466
34 files changed
+237
-1135
No files matched your search
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Esiur.Resource;
|
||||
using Esiur.Core;
|
||||
using Esiur.Data;
|
||||
using Esiur.Protocol;
|
||||
#nullable enable
|
||||
namespace Esiur.Tests.RPC.EsiurServer
|
||||
{
|
||||
[Remote("Esiur.Tests.RPC.EsiurServer.TestObject", "")]
|
||||
public class TestObject : EpResource
|
||||
{
|
||||
public TestObject(EpConnection connection, uint instanceId, ulong age, string link) : base(connection, instanceId, age, link) { }
|
||||
public TestObject() { }
|
||||
[Annotation("", "String")]
|
||||
[Export]
|
||||
public string Name
|
||||
{
|
||||
get => (string)_properties[0];
|
||||
set => SetResourceProperty(0, value);
|
||||
}
|
||||
[Annotation("", "Int32")]
|
||||
[Export]
|
||||
public int Size
|
||||
{
|
||||
get => (int)_properties[1];
|
||||
set => SetResourceProperty(1, value);
|
||||
}
|
||||
[Annotation("", "Object")]
|
||||
[Export]
|
||||
public object Value
|
||||
{
|
||||
get => (object)_properties[2];
|
||||
set => SetResourceProperty(2, value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user