當前位置: 首頁>>代碼示例>>C#>>正文


C# AccessRights類代碼示例

本文整理匯總了C#中AccessRights的典型用法代碼示例。如果您正苦於以下問題:C# AccessRights類的具體用法?C# AccessRights怎麽用?C# AccessRights使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AccessRights類屬於命名空間,在下文中一共展示了AccessRights類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: IotHubConnection

 public IotHubConnection(IotHubConnectionString connectionString, AccessRights accessRights)
 {
     this.connectionString = connectionString;
     this.accessRights = accessRights;
     this.faultTolerantSession = new FaultTolerantAmqpObject<AmqpSession>(this.CreateSessionAsync, this.CloseConnection);
     this.refreshTokenTimer = new IOThreadTimer(s => ((IotHubConnection)s).OnRefreshToken(), this, false);
 }
開發者ID:rashidredcley,項目名稱:azure-iot-sdks,代碼行數:7,代碼來源:IotHubConnection.cs

示例2: BaseRole

 public BaseRole(string sName, string sID, string sPath, AccessRights AccessRights)
 {
     _sName = sName;
     _sID = sID;
     _sPath = sPath;
     _AccessRight = AccessRights;
 }
開發者ID:Cabana,項目名稱:CMSConverter,代碼行數:7,代碼來源:BaseRole.cs

示例3: ServiceBusQueueListenerFactory

 public ServiceBusQueueListenerFactory(ServiceBusAccount account, string queueName, ITriggeredFunctionExecutor executor, AccessRights accessRights)
 {
     _namespaceManager = account.NamespaceManager;
     _messagingFactory = account.MessagingFactory;
     _queueName = queueName;
     _executor = executor;
     _accessRights = accessRights;
 }
開發者ID:zero-byte,項目名稱:azure-webjobs-sdk,代碼行數:8,代碼來源:ServiceBusQueueListenerFactory.cs

示例4: VKApiManager

 public VKApiManager(int appId, AccessRights rights, bool xmlNeeded = true)
 {
     AuthorizationDetails details = new AuthorizationDetails();
     details.appId = appId;
     details.rights = rights;
     IsXmlResponseNeeded = xmlNeeded;
     status = Init(details);
 }
開發者ID:salterok,項目名稱:VK-2-years-old-,代碼行數:8,代碼來源:VKApiManager.cs

示例5: AccessControl

		/// <summary>
		/// Initializes a new instance of the <see cref="MailKit.AccessControl"/> class.
		/// </summary>
		/// <remarks>
		/// Creates a new <see cref="MailKit.AccessControl"/> with the given name and
		/// access rights.
		/// </remarks>
		/// <param name="name">The identifier name.</param>
		/// <param name="rights">The access rights.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="name"/> is <c>null</c>.
		/// </exception>
		public AccessControl (string name, IEnumerable<AccessRight> rights)
		{
			if (name == null)
				throw new ArgumentNullException ("name");

			Rights = new AccessRights (rights);
			Name = name;
		}
開發者ID:Gekctek,項目名稱:MailKit,代碼行數:20,代碼來源:AccessControl.cs

示例6: AccessControl

		/// <summary>
		/// Initializes a new instance of the <see cref="MailKit.AccessControl"/> class.
		/// </summary>
		/// <remarks>
		/// Creates a new <see cref="MailKit.AccessControl"/> with the given name and
		/// access rights.
		/// </remarks>
		/// <param name="name">The identifier name.</param>
		/// <param name="rights">The access rights.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <para><paramref name="name"/> is <c>null</c>.</para>
		/// <para>-or-</para>
		/// <para><paramref name="rights"/> is <c>null</c>.</para>
		/// </exception>
		public AccessControl (string name, string rights)
		{
			if (name == null)
				throw new ArgumentNullException (nameof (name));

			Rights = new AccessRights (rights);
			Name = name;
		}
開發者ID:jstedfast,項目名稱:MailKit,代碼行數:22,代碼來源:AccessControl.cs

示例7: CreateAsync_AccessRightsNotManage_DoesNotCreateQueue

        public async Task CreateAsync_AccessRightsNotManage_DoesNotCreateQueue(AccessRights accessRights)
        {
            ServiceBusAccount account = new ServiceBusAccount();
            Mock<ITriggeredFunctionExecutor> mockExecutor = new Mock<ITriggeredFunctionExecutor>(MockBehavior.Strict);
            ServiceBusQueueListenerFactory factory = new ServiceBusQueueListenerFactory(account, "testqueue", mockExecutor.Object, accessRights);

            IListener listener = await factory.CreateAsync(CancellationToken.None);
            Assert.NotNull(listener);
        }
開發者ID:alpaix,項目名稱:azure-webjobs-sdk,代碼行數:9,代碼來源:ServiceBusQueueListenerFactoryTests.cs

示例8: ServiceBusSubscriptionListenerFactory

 public ServiceBusSubscriptionListenerFactory(ServiceBusAccount account, string topicName, string subscriptionName, ITriggeredFunctionExecutor executor, AccessRights accessRights)
 {
     _namespaceManager = account.NamespaceManager;
     _messagingFactory = account.MessagingFactory;
     _topicName = topicName;
     _subscriptionName = subscriptionName;
     _executor = executor;
     _accessRights = accessRights;
 }
開發者ID:zero-byte,項目名稱:azure-webjobs-sdk,代碼行數:9,代碼來源:ServiceBusSubscriptionListenerFactory.cs

示例9: CreateAsync_AccessRightsNotManage_DoesNotCreateTopicOrSubscription

        public async Task CreateAsync_AccessRightsNotManage_DoesNotCreateTopicOrSubscription(AccessRights accessRights)
        {
            ServiceBusAccount account = new ServiceBusAccount();
            Mock<ITriggeredFunctionExecutor> mockExecutor = new Mock<ITriggeredFunctionExecutor>(MockBehavior.Strict);
            ServiceBusSubscriptionListenerFactory factory = new ServiceBusSubscriptionListenerFactory(account, "testtopic", "testsubscription", mockExecutor.Object, accessRights, new ServiceBusConfiguration());

            IListener listener = await factory.CreateAsync(CancellationToken.None);
            Assert.NotNull(listener);
        }
開發者ID:ConnorMcMahon,項目名稱:azure-webjobs-sdk,代碼行數:9,代碼來源:ServiceBusSubscriptionListenerFactoryTests.cs

示例10: ServiceBusBinding

 public ServiceBusBinding(string parameterName, IArgumentBinding<ServiceBusEntity> argumentBinding, ServiceBusAccount account, IBindableServiceBusPath path, AccessRights accessRights)
 {
     _parameterName = parameterName;
     _argumentBinding = argumentBinding;
     _account = account;
     _namespaceName = ServiceBusClient.GetNamespaceName(account);
     _path = path;
     _accessRights = accessRights;
     _converter = CreateConverter(account, path, accessRights);
 }
開發者ID:ConnorMcMahon,項目名稱:azure-webjobs-sdk,代碼行數:10,代碼來源:ServiceBusBinding.cs

示例11: AuthorizationDetails

 /// <summary>
 /// Констуктор по умолчанию.
 /// </summary>
 public AuthorizationDetails()
 {
     appId = -1;
     secureKey = String.Empty;
     rights = AccessRights.NO_RIGHTS;
     userId = -1;
     accessToken = String.Empty;
     expiresIn = -1;
     issuedTime = DateTime.MinValue;
 }
開發者ID:salterok,項目名稱:VK-2-years-old-,代碼行數:13,代碼來源:AuthorizationDetails.cs

示例12: ServiceBusTriggerBinding

 public ServiceBusTriggerBinding(string parameterName, ITriggerDataArgumentBinding<BrokeredMessage> argumentBinding,
     ServiceBusAccount account, string topicName, string subscriptionName, AccessRights accessRights)
 {
     _parameterName = parameterName;
     _argumentBinding = argumentBinding;
     _account = account;
     _namespaceName = ServiceBusClient.GetNamespaceName(account);
     _topicName = topicName;
     _subscriptionName = subscriptionName;
     _entityPath = SubscriptionClient.FormatSubscriptionPath(topicName, subscriptionName);
     _accessRights = accessRights;
 }
開發者ID:zero-byte,項目名稱:azure-webjobs-sdk,代碼行數:12,代碼來源:ServiceBusTriggerBinding.cs

示例13: FixReferencedMemberAccess

        private void FixReferencedMemberAccess(AccessRights memberAccessRights)
        {
            var declaration =
                _highlighting.LessVisibleReferencedMember.DeclaredElement
                    .GetDeclarations().FirstOrDefault();

            Contract.Assert(declaration != null);

            ModifiersUtil.SetAccessRights(
                declaration,
                memberAccessRights);
        }
開發者ID:breki,項目名稱:ReSharperContractExtensions,代碼行數:12,代碼來源:RequiresInconsistentVisibiityQuickFix.cs

示例14: MemberWithAccess

        internal MemberWithAccess(IClrDeclaredElement declaredElement, AccessRights typeAccessRights,
            MemberType memberType, AccessRights memberAccessRights)
        {
            Contract.Requires(declaredElement != null);

            _declaredElement = declaredElement;

            MemberName = declaredElement.ShortName;
            TypeAccessRights = typeAccessRights;
            MemberType = memberType;
            _memberAccessRights = memberAccessRights;
        }
開發者ID:remyblok,項目名稱:ReSharperContractExtensions,代碼行數:12,代碼來源:MemberWithAccess.cs

示例15: AccessRightsToStringArray

        public static string[] AccessRightsToStringArray(AccessRights accessRights)
        {
            var values = new List<string>(2);
            foreach (AccessRights right in Enum.GetValues(typeof(AccessRights)))
            {
                if (accessRights.HasFlag(right))
                {
                    values.Add(right.ToString());
                }
            }

            return values.ToArray();
        }
開發者ID:Fricsay,項目名稱:azure-iot-sdks,代碼行數:13,代碼來源:AccessRights.cs


注:本文中的AccessRights類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。