public void AddSuccessCommand(IQueuedCommand command) { var typeName = command.GetType().ToString(); _onSuccessCommands.Add(new KeyValuePair<string, object>(typeName, command)); }
public QueueEntity(IQueuedCommand command, IMvxJsonConverter jsonConverter) { this.CommandTypeName = command.GetType().FullName; this.SerializedObject = jsonConverter.SerializeObject(command); }