Here are the examples of the csharp api System.Action.Invoke(WebResults) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : TokenData.cs
with MIT License
from heathen-engineering
with MIT License
from heathen-engineering
public static IEnumerator GetTokenDefinitionCoroutine(string contractId, string tokenId, Action<WebResults<TokenResponceData>> callback)
{
UnityWebRequest tokenRequest = UnityWebRequest.Get(BGSDKSettings.current.ConnectUri + "/" + contractId + "/token-types/" + tokenId);
tokenRequest.SetRequestHeader("Authorization", BGSDKSettings.user.authentication.token_type + " " + BGSDKSettings.user.authentication.access_token);
var asyncOpHandle = tokenRequest.SendWebRequest();
while (!asyncOpHandle.isDone)
yield return null;
callback?.Invoke(new WebResults<TokenResponceData>(tokenRequest));
}
19
Source : TokenData.cs
with MIT License
from heathen-engineering
with MIT License
from heathen-engineering
public static IEnumerator GetTokenDefinitionCoroutine<T>(string contractId, string tokenId, Action<WebResults<TokenResponceData<T>>> callback)
{
UnityWebRequest tokenRequest = UnityWebRequest.Get(BGSDKSettings.current.ConnectUri + "/" + contractId + "/token-types/" + tokenId);
tokenRequest.SetRequestHeader("Authorization", BGSDKSettings.user.authentication.token_type + " " + BGSDKSettings.user.authentication.access_token);
var asyncOpHandle = tokenRequest.SendWebRequest();
while (!asyncOpHandle.isDone)
yield return null;
callback?.Invoke(new WebResults<TokenResponceData<T>>(tokenRequest));
}