mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-09-13 12:43:17 +00:00
Store
This commit is contained in:
@@ -1570,14 +1570,13 @@ public partial class DistributedConnection : NetworkConnection, IStore
|
||||
return true;
|
||||
}
|
||||
|
||||
// AsyncReply<bool> connect({ISocket socket, String hostname, int port, String username, DC password, String domain})
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Store interface.
|
||||
/// </summary>
|
||||
/// <param name="resource">Resource.</param>
|
||||
/// <returns></returns>
|
||||
public AsyncReply<bool> Put(IResource resource)
|
||||
public AsyncReply<bool> Put(IResource resource, string path)
|
||||
{
|
||||
if (Codec.IsLocalResource(resource, this))
|
||||
neededResources.Add((resource as DistributedResource).DistributedResourceInstanceId, (DistributedResource)resource);
|
||||
|
@@ -272,7 +272,7 @@ partial class DistributedConnection
|
||||
return;
|
||||
}
|
||||
|
||||
var (_, parsed) = Codec.ParseAsync(data, 0, this, null);
|
||||
var (_, parsed) = Codec.ParseAsync(data, 0, this, null, dataType);
|
||||
if (parsed is AsyncReply reply)
|
||||
{
|
||||
reply.Then(result =>
|
||||
@@ -2054,7 +2054,7 @@ partial class DistributedConnection
|
||||
dataType.ContentLength, Instance.Warehouse);
|
||||
|
||||
var peerTime = (DateTime)args[0];
|
||||
var interval = (uint)args[0];
|
||||
var interval = (uint)args[1];
|
||||
|
||||
uint jitter = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user