mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 13:33:13 +00:00
1.5
This commit is contained in:
@ -801,13 +801,13 @@ namespace Esyur.Net.IIP
|
||||
}
|
||||
|
||||
|
||||
[ResourceAttribute]
|
||||
[Attribute]
|
||||
public string Username { get; set; }
|
||||
|
||||
[ResourceAttribute]
|
||||
[Attribute]
|
||||
public string Password { get; set; }
|
||||
|
||||
[ResourceAttribute]
|
||||
[Attribute]
|
||||
public string Domain { get; set; }
|
||||
/// <summary>
|
||||
/// Resource interface
|
||||
|
@ -39,48 +39,44 @@ namespace Esyur.Net.IIP
|
||||
{
|
||||
public class DistributedServer : NetworkServer<DistributedConnection>, IResource
|
||||
{
|
||||
|
||||
//[Storable]
|
||||
//[ResourceProperty]
|
||||
public string ip
|
||||
[Attribute]
|
||||
public string IP
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
//[Storable]
|
||||
//[ResourceProperty]
|
||||
[Attribute]
|
||||
public IMembership Membership
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Attribute]
|
||||
public EntryPoint EntryPoint
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
//[Storable]
|
||||
//[ResourceProperty]
|
||||
public ushort port
|
||||
[Attribute]
|
||||
public ushort Port
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
//[Storable]
|
||||
//[ResourceProperty]
|
||||
public uint timeout
|
||||
[Attribute]
|
||||
public uint Timeout
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
//[Storable]
|
||||
//[ResourceProperty]
|
||||
public uint clock
|
||||
|
||||
[Attribute]
|
||||
public uint Clock
|
||||
{
|
||||
get;
|
||||
set;
|
||||
@ -99,12 +95,12 @@ namespace Esyur.Net.IIP
|
||||
{
|
||||
TCPSocket listener;
|
||||
|
||||
if (ip != null)
|
||||
listener = new TCPSocket(new IPEndPoint(IPAddress.Parse(ip), port));
|
||||
if (IP != null)
|
||||
listener = new TCPSocket(new IPEndPoint(IPAddress.Parse(IP), Port));
|
||||
else
|
||||
listener = new TCPSocket(new IPEndPoint(IPAddress.Any, port));
|
||||
listener = new TCPSocket(new IPEndPoint(IPAddress.Any, Port));
|
||||
|
||||
Start(listener, timeout, clock);
|
||||
Start(listener, Timeout, Clock);
|
||||
}
|
||||
else if (trigger == ResourceTrigger.Terminate)
|
||||
{
|
||||
|
@ -35,6 +35,6 @@ namespace Esyur.Net.IIP
|
||||
{
|
||||
|
||||
public abstract AsyncReply<IResource[]> Query(string path, DistributedConnection sender);
|
||||
public abstract override bool Create();
|
||||
protected abstract override bool Create();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user