/// <summary> /// Multi-user Constructor for use with IVimeoClientFactory /// </summary> /// <param name="authClientFactory">The IAuthorizationClientFactory</param> /// <param name="apiRequestFactory">The IApiRequestFactory</param> /// <param name="clientId">ClientId</param> /// <param name="clientSecret">ClientSecret</param> internal VimeoClient(IAuthorizationClientFactory authClientFactory, IApiRequestFactory apiRequestFactory, string clientId, string clientSecret) : this(clientId, clientSecret) { AuthClientFactory = authClientFactory; ApiRequestFactory = apiRequestFactory; }
/// <summary> /// Single-user Constructor for use with IVimeoClientFactory /// </summary> /// <param name="authClientFactory">The IAuthorizationClientFactory</param> /// <param name="apiRequestFactory">The IApiRequestFactory</param> /// <param name="accessToken">AccessToken</param> internal VimeoClient(IAuthorizationClientFactory authClientFactory, IApiRequestFactory apiRequestFactory, string accessToken) : this(accessToken) { AuthClientFactory = authClientFactory; ApiRequestFactory = apiRequestFactory; }
/// <summary> /// Multi-user Constructor for use with IVimeoClientFactory /// </summary> /// <param name="authClientFactory">The IAuthorizationClientFactory</param> /// <param name="apiRequestFactory">The IApiRequestFactory</param> internal VimeoClient(IAuthorizationClientFactory authClientFactory, IApiRequestFactory apiRequestFactory, string clientId, string clientSecret) : this(clientId, clientSecret) { _authClientFactory = authClientFactory; _apiRequestFactory = apiRequestFactory; }
public AuthorisationFilter(IAuthorizationClientFactory clientFactory, ITokenFactory factory, string appName, string stripPrefix) { _clientFactory = clientFactory; _factory = factory; _appName = appName; _stripPrefix = stripPrefix; }
private VimeoClient() { AuthClientFactory = new AuthorizationClientFactory(); ApiRequestFactory = new ApiRequestFactory(); RateLimit = 0; RateLimitRemaining = 0; RateLimitReset = DateTime.UtcNow; }
public static OperationStore Create(string appName, IAuthorizationClientFactory clientFactory, ITokenFactory factory) { var client = clientFactory.CreateClient(); var token = factory.GetCurrent(); var result = client.GetAuthorisedOperations(appName, token); return new OperationStore(result); }
public static OperationStore Current(string appName, IAuthorizationClientFactory clientFactory, ITokenFactory factory) { var t = Stored; if (t == null) { t = Create(appName, clientFactory, factory); Session[GrantedOperationsSessionKey] = t; } return t; }
/// <summary> /// IOC Constructor for use with IVimeoClientFactory /// </summary> /// <param name="authClientFactory">The IAuthorizationClientFactory</param> /// <param name="apiRequestFactory">The IApiRequestFactory</param> public VimeoClientFactory(IAuthorizationClientFactory authClientFactory, IApiRequestFactory apiRequestFactory) { _authClientFactory = authClientFactory; _apiRequestFactory = apiRequestFactory; }
public VimeoClientFactory() { _authClientFactory = new AuthorizationClientFactory(); _apiRequestFactory = new ApiRequestFactory(); }
/// <summary> /// Single-user Constructor for use with IVimeoClientFactory /// </summary> /// <param name="authClientFactory">The IAuthorizationClientFactory</param> /// <param name="apiRequestFactory">The IApiRequestFactory</param> internal VimeoClient(IAuthorizationClientFactory authClientFactory, IApiRequestFactory apiRequestFactory, string accessToken) : this(accessToken) { _authClientFactory = authClientFactory; _apiRequestFactory = apiRequestFactory; }
protected VimeoClient() { _authClientFactory = new AuthorizationClientFactory(); _apiRequestFactory = new ApiRequestFactory(); }
/// <summary> /// IOC Constructor for use with IVimeoClientFactory /// </summary> /// <param name="authClientFactory">The IAuthorizationClientFactory</param> /// <param name="apiRequestFactory">The IApiRequestFactory</param> public VimeoClientFactory(IAuthorizationClientFactory authClientFactory, IApiRequestFactory apiRequestFactory) { AuthClientFactory = authClientFactory; ApiRequestFactory = apiRequestFactory; }
/// <summary> /// Create new Vimeo client factory /// </summary> public VimeoClientFactory() { AuthClientFactory = new AuthorizationClientFactory(); ApiRequestFactory = new ApiRequestFactory(); }