Net.BITKit.Teleport/Src/MyRemoteInterface.cs

23 lines
513 B
C#
Raw Normal View History

2025-07-05 17:19:53 +08:00
using Cysharp.Threading.Tasks;
namespace Net.BITKit.Teleport
{
public interface IMyRemoteInterface
{
public string Func(string name);
public UniTask<string> FuncAsync(string name);
}
public class MyRemoteInterface : IMyRemoteInterface
{
public string Func(string name)
{
return $"Hello, {name}!";
}
public UniTask<string> FuncAsync(string name)
{
return UniTask.FromResult($"Hello, {name}!");
}
}
}