public OAuthServiceLogOnIdentifyer(OAuthServiceType ServiceType, string ServiceKey)
        {
            this.ServiceType = ServiceType;

            this.ServiceKey = ServiceKey;

        }
 public ESService(string id, OAuthServiceType type, string clientId, string name, string redirectURIs, bool archived, TDMemberProfile?owner = null, AccessRecord?lastClientCredentialsAccess = null, string?endpointURI = null, bool?hasSigningKey = null, bool?hasVerificationToken = null)
 {
     Id           = id;
     Owner        = owner;
     Type         = type;
     ClientId     = clientId;
     Name         = name;
     RedirectURIs = redirectURIs;
     IsArchived   = archived;
     LastClientCredentialsAccess = lastClientCredentialsAccess;
     EndpointURI            = endpointURI;
     IsHasSigningKey        = hasSigningKey;
     IsHasVerificationToken = hasVerificationToken;
 }
            public OAuthUserDisplay(string Name, OAuthServiceType ServiceType)
            {
                this.Name = Name;

                this.ServiceType = ServiceType;
            }
 private ActionResult GetSuccessResult(OAuthServiceType ServiceType, string UserName, string ReturnUrl)
 {
     if (OAuthIsExtWindow(ServiceType))
     {
         return OAuthGetExtWindowSuccessResult(UserName, ReturnUrl);
     }
     else
     {
         return Redirect(ReturnUrl);
     }
 }
 private static bool OAuthIsExtWindow(OAuthServiceType ServiceType)
 {
     return true;
 }