Class HistoryAPI
Inheritance
System.Object
HistoryAPI
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dotnet.Shell.API
Assembly: dotnet-shell-lib.dll
Syntax
public class HistoryAPI
Methods
| Improve this Doc View SourceListenForSearchResultAsync(Action<Int32, String>)
Listens for search requests asynchronous.
Declaration
public static async Task<string> ListenForSearchResultAsync(Action<int, string> onStartedListening)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.Int32, System.String> | onStartedListening | Called when listening has started. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | Task |
Exceptions
| Type | Condition |
|---|---|
| System.IO.InvalidDataException | Invalid token |
SearchResultAsync(String, Int32, String)
Searches the user history for a specific term.
Declaration
public static async Task SearchResultAsync(string term, int port, string token)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | term | The term. |
| System.Int32 | port | The port the history server is listening on. |
| System.String | token | The authentication token. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |