Пример #1
0
 public static AuthorizationState GetNewAuth() =>
 new AuthorizationState()
 {
     State = RandomInstance.GetRandomString(20),
     DidReceiveCallback  = false,
     LinkHandoutTime     = DateTime.Now,
     CallbackReceiveTime = null,
     Code = null
 };
Пример #2
0
 /// <summary>
 ///     Creates new authorization code awaiter
 /// </summary>
 /// <returns></returns>
 public static AuthorizationState GetNewAuth()
 {
     return(new AuthorizationState
     {
         State = RandomInstance.GetRandomString(50),
         DidReceiveCallback = false,
         LinkHandoutTime = DateTime.UtcNow,
         CallbackReceiveTime = null,
         Code = null
     });
 }
Пример #3
0
 public void RerollState()
 {
     State = RandomInstance.GetRandomString(20);
 }