/// <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;
 }
예제 #3
0
 /// <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;
 }
예제 #6
0
        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);
        }
예제 #7
0
 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();
 }
예제 #10
0
 /// <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;
 }
예제 #11
0
 protected VimeoClient()
 {
     _authClientFactory = new AuthorizationClientFactory();
     _apiRequestFactory = new ApiRequestFactory();
 }
예제 #12
0
 protected VimeoClient()
 {
     _authClientFactory = new AuthorizationClientFactory();
     _apiRequestFactory = new ApiRequestFactory();
 }
예제 #13
0
 /// <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;
 }
예제 #14
0
 /// <summary>
 /// Create new Vimeo client factory
 /// </summary>
 public VimeoClientFactory()
 {
     AuthClientFactory = new AuthorizationClientFactory();
     ApiRequestFactory = new ApiRequestFactory();
 }