public RegisterBulkKeyNotificationCommand(string[] keys, short updateCallbackid, short removeCallbackid) { name = "RegisterBulkKeyNotificationCommand"; _registerBulkKeyNotifCommand = new Alachisoft.NCache.Common.Protobuf.RegisterBulkKeyNotifCommand(); _registerBulkKeyNotifCommand.keys.AddRange(keys); _registerBulkKeyNotifCommand.removeCallbackId = removeCallbackid; _registerBulkKeyNotifCommand.updateCallbackId = updateCallbackid; _registerBulkKeyNotifCommand.requestId = base.RequestId; }
public RegisterBulkKeyNotificationCommand(string[] keys, short updateCallbackid, short removeCallbackid) { name = "RegisterBulkKeyNotificationCommand"; _registerBulkKeyNotifCommand = new Alachisoft.NCache.Common.Protobuf.RegisterBulkKeyNotifCommand(); _registerBulkKeyNotifCommand.keys.AddRange(keys); _registerBulkKeyNotifCommand.removeCallbackId = removeCallbackid; _registerBulkKeyNotifCommand.updateCallbackId = updateCallbackid; _registerBulkKeyNotifCommand.requestId = base.RequestId; }
public RegisterBulkKeyNotificationCommand(string[] keys, short updateCallbackid, short removeCallbackid, string clientId, CallbackType callbackType = Runtime.Events.CallbackType.PushBasedNotification) { name = "RegisterBulkKeyNotificationCommand"; _registerBulkKeyNotifCommand = new Alachisoft.NCache.Common.Protobuf.RegisterBulkKeyNotifCommand(); _registerBulkKeyNotifCommand.keys.AddRange(keys); _registerBulkKeyNotifCommand.removeCallbackId = removeCallbackid; _registerBulkKeyNotifCommand.updateCallbackId = updateCallbackid; _registerBulkKeyNotifCommand.requestId = base.RequestId; _registerBulkKeyNotifCommand.callbackType = CallbackType(callbackType); _registerBulkKeyNotifCommand.surrogateClientID = clientId; }
private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager) { CommandInfo cmdInfo = new CommandInfo(); Alachisoft.NCache.Common.Protobuf.RegisterBulkKeyNotifCommand registerBulkKeyNotifCommand = command.registerBulkKeyNotifCommand; cmdInfo.Keys = registerBulkKeyNotifCommand.keys.ToArray(); cmdInfo.PackageSize = registerBulkKeyNotifCommand.keys.Count; cmdInfo.RemoveCallbackId = (short)registerBulkKeyNotifCommand.removeCallbackId; cmdInfo.RequestId = registerBulkKeyNotifCommand.requestId.ToString(); cmdInfo.UpdateCallbackId = (short)registerBulkKeyNotifCommand.updateCallbackId; cmdInfo.dataFilter = registerBulkKeyNotifCommand.datafilter; cmdInfo.NotifyOnExpiration = registerBulkKeyNotifCommand.notifyOnExpiration; return(cmdInfo); }