Esempio n. 1
0
        public Task <SecurityHasPrivilegesResponse> HasPrivilegesAsync(Action <SecurityHasPrivilegesRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityHasPrivilegesRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityHasPrivilegesRequestDescriptor, SecurityHasPrivilegesResponse>(descriptor));
        }
Esempio n. 2
0
        public SecurityHasPrivilegesResponse HasPrivileges(Action <SecurityHasPrivilegesRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecurityHasPrivilegesRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityHasPrivilegesRequestDescriptor, SecurityHasPrivilegesResponse>(descriptor));
        }