コード例 #1
0
        public BlobContainersController(CloudBlobClient cloudBlobClient, IUserPrivilegesRepository userPrivilegesRepository, IMembershipService membershipService)
            : base(userPrivilegesRepository)
        {
            if ((GetStorageAccountFromConfigurationSetting() == null) && (cloudBlobClient == null))
            {
                throw new ArgumentNullException("cloudBlobClient", "Cloud Blob Client cannot be null if no configuration is loaded.");
            }

            this.cloudBlobClient   = cloudBlobClient ?? GetStorageAccountFromConfigurationSetting().CreateCloudBlobClient();
            this.membershipService = membershipService;
        }
コード例 #2
0
        public BlobContainersController(CloudBlobClient cloudBlobClient, IUserPrivilegesRepository userPrivilegesRepository, IUserRepository userRepository)
            : base(userPrivilegesRepository)
        {
            if ((GetStorageAccountFromConfigurationSetting() == null) && (cloudBlobClient == null))
            {
                throw new ArgumentNullException("cloudBlobClient", "Cloud Blob Client cannot be null if no configuration is loaded.");
            }

            this.cloudBlobClient = cloudBlobClient ?? GetStorageAccountFromConfigurationSetting().CreateCloudBlobClient();
            this.userRepository = userRepository;
        }
コード例 #3
0
        public BlobContainerRequestValidator(IFormsAuthentication formsAuth, IMembershipService membershipService, IUserPrivilegesRepository userPrivilegesRepository, CloudBlobClient cloudBlobClient)
        {
            if ((cloudBlobClient == null) && (GetStorageAccountFromConfigurationSetting() == null))
            {
                throw new ArgumentNullException("cloudBlobClient", "The Cloud Blob Client cannot be null if no configuration is loaded.");
            }

            this.userPrivilegesRepository = userPrivilegesRepository;
            this.formsAuth         = formsAuth;
            this.membershipService = membershipService;

            this.cloudBlobClient = cloudBlobClient ?? GetStorageAccountFromConfigurationSetting().CreateCloudBlobClient();
        }
コード例 #4
0
        public SharedAccessSignatureService(CloudBlobClient cloudBlobClient, WebOperationContext webOperationContext, BlobContainerRequestValidator requestValidator, IUserPrivilegesRepository userPrivilegesRepository)
        {
            if ((cloudBlobClient == null) && (GetStorageAccountFromConfigurationSetting() == null))
            {
                throw new ArgumentNullException("cloudBlobClient", "The Cloud Blob Client cannot be null if no configuration is loaded.");
            }

            this.cloudBlobClient = cloudBlobClient ?? GetStorageAccountFromConfigurationSetting().CreateCloudBlobClient();
            this.webOperationContext = webOperationContext;

            this.requestValidator = requestValidator;
            this.userPrivilegesRepository = userPrivilegesRepository;
        }
コード例 #5
0
        public SharedAccessSignatureService(CloudBlobClient cloudBlobClient, HttpContextBase context, WebOperationContext webOperationContext, BlobContainerRequestValidator requestValidator, IUserPrivilegesRepository userPrivilegesRepository)
        {
            if ((context == null) && (HttpContext.Current == null))
            {
                throw new ArgumentNullException("context", "The context cannot be null if not running on a Web context.");
            }

            if ((cloudBlobClient == null) && (GetStorageAccountFromConfigurationSetting() == null))
            {
                throw new ArgumentNullException("cloudBlobClient", "The Cloud Blob Client cannot be null if no configuration is loaded.");
            }

            this.cloudBlobClient          = cloudBlobClient ?? GetStorageAccountFromConfigurationSetting().CreateCloudBlobClient();
            this.context                  = context;
            this.webOperationContext      = webOperationContext;
            this.requestValidator         = requestValidator;
            this.userPrivilegesRepository = userPrivilegesRepository;
        }
コード例 #6
0
        public AuthenticationService(IFormsAuthentication formsAuth, IMembershipService membershipService, IUserPrivilegesRepository userPrivilegesRepository)
        {
            if (formsAuth == null)
            {
                throw new ArgumentNullException("formsAuth", "The Forms Authentication service cannot be null.");
            }

            if (membershipService == null)
            {
                throw new ArgumentNullException("membershipService", "The Membership service cannot be null.");
            }

            if (userPrivilegesRepository == null)
            {
                throw new ArgumentNullException("userPrivilegesRepository", "The User Privileges Repository cannot be null.");
            }

            this.formsAuth = formsAuth;
            this.membershipService = membershipService;
            this.userPrivilegesRepository = userPrivilegesRepository;
        }
コード例 #7
0
        public AuthenticationService(IFormsAuthentication formsAuth, IMembershipService membershipService, IUserPrivilegesRepository userPrivilegesRepository)
        {
            if (formsAuth == null)
            {
                throw new ArgumentNullException("formsAuth", "The Forms Authentication service cannot be null.");
            }

            if (membershipService == null)
            {
                throw new ArgumentNullException("membershipService", "The Membership service cannot be null.");
            }

            if (userPrivilegesRepository == null)
            {
                throw new ArgumentNullException("userPrivilegesRepository", "The User Privileges Repository cannot be null.");
            }

            this.formsAuth                = formsAuth;
            this.membershipService        = membershipService;
            this.userPrivilegesRepository = userPrivilegesRepository;
        }
コード例 #8
0
 public AzureQueuesProxyHandler(IUserPrivilegesRepository userPrivilegesRepository, CloudStorageAccount cloudStorageAccount, IFormatSerializerFactory formatSerializerFactory)
     : base(cloudStorageAccount, formatSerializerFactory)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #9
0
 public AzureTablesProxyHandler(IUserPrivilegesRepository userPrivilegesRepository, CloudStorageAccount cloudStorageAccount, IStorageRequestValidator requestValidator, IFormatSerializerFactory formatSerializerFactory)
     : base(cloudStorageAccount, requestValidator, formatSerializerFactory)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #10
0
 public StorageItemController(IUserPrivilegesRepository userPrivilegesRepository)
 {
     this.UserPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #11
0
 public UsersController(IUserPrivilegesRepository userPrivilegesRepository, IUserRepository userRepository)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
     this.userRepository = userRepository;
 }
コード例 #12
0
 public UsersController(IUserPrivilegesRepository userPrivilegesRepository, IMembershipService membershipService)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
     this.membershipService        = membershipService;
 }
コード例 #13
0
 public QueueRequestValidator(IUserPrivilegesRepository userPrivilegesRepository)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #14
0
ファイル: AccountController.cs プロジェクト: Setuber/Ringify
 public AccountController(IFormsAuthentication formsAuth, IMembershipService membershipService, IUserPrivilegesRepository userPrivilegesRepository)
 {
     this.formsAuth = formsAuth;
     this.membershipService = membershipService;
     this.userPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #15
0
 public AccountController(IUserPrivilegesRepository userPrivilegesRepository)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #16
0
 public AccountController(IUserPrivilegesRepository userPrivilegesRepository)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #17
0
 public StorageItemController(IUserPrivilegesRepository userPrivilegesRepository)
 {
     this.UserPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #18
0
 public QueueRequestValidator(IFormsAuthentication formsAuth, IMembershipService membershipService, IUserPrivilegesRepository userPrivilegesRepository)
     : base(formsAuth, membershipService)
 {
     this.userPrivilegesRepository = userPrivilegesRepository;
 }
コード例 #19
0
 public RegistrationService(IUserRepository userRepository, IUserPrivilegesRepository userPrivilegesRepository)
 {
     this.userRepository = userRepository;
     this.userPrivilegesRepository = userPrivilegesRepository;
 }