//PROTOBUF private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager) { CommandInfo cmdInfo = new CommandInfo(); Alachisoft.NCache.Common.Protobuf.AddSyncDependencyCommand addSyncDependencyCommand = command.addSyncDependencyCommand; cmdInfo.Key = addSyncDependencyCommand.key; cmdInfo.RequestId = addSyncDependencyCommand.requestId.ToString(); cmdInfo.SyncDependency = base.GetCacheSyncDependencyObj(addSyncDependencyCommand.syncDependency); return(cmdInfo); }
public AddSyncDependencyCommand(string key, CacheSyncDependency syncDependency, int methodOverload) { base.name = "AddSyncDependencyCommand"; _addSyncDependencyCommand = new Alachisoft.NCache.Common.Protobuf.AddSyncDependencyCommand(); _addSyncDependencyCommand.key = key; _addSyncDependencyCommand.requestId = base.RequestId; if (syncDependency != null) { _addSyncDependencyCommand.syncDependency = new Alachisoft.NCache.Common.Protobuf.SyncDependency(); _addSyncDependencyCommand.syncDependency.key = syncDependency.Key; _addSyncDependencyCommand.syncDependency.cacheId = syncDependency.CacheId; _addSyncDependencyCommand.syncDependency.server = syncDependency.Server; _addSyncDependencyCommand.syncDependency.port = syncDependency.Port; } _methodOverload = methodOverload; }