Helpers/DeviceCodeHandler.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
public class DeviceCodeHandler
{ static System.Threading.Tasks.Task _Delegate(Microsoft.Identity.Client.DeviceCodeResult deviceCodeResult) { System.Console.WriteLine(deviceCodeResult.Message); return System.Threading.Tasks.Task.FromResult(0); } //PS5 has trouble to get correct type when returning static method directly public static System.Func<Microsoft.Identity.Client.DeviceCodeResult,System.Threading.Tasks.Task> Get() { return _Delegate; } } |