Ejemplo n.º 1
0
        public void GetMetadataAsync_ReturnsNonNullValue()
        {
            var task = subject.GetMetadataAsync();

            Assert.NotNull(task);
            Assert.NotNull(task.Result);
        }
Ejemplo n.º 2
0
        public async Task <IdentityManagerMetadata> GetMetadataAsync()
        {
            if (metadata == null)
            {
                metadata = await service.GetMetadataAsync();

                if (metadata == null)
                {
                    throw new InvalidOperationException("GetMetadataAsync returned null");
                }
                metadata.Validate();
            }

            return(metadata);
        }
        async Task <IdentityManagerMetadata> GetMetadataAsync()
        {
            if (_metadata == null)
            {
                _metadata = await userManager.GetMetadataAsync();

                if (_metadata == null)
                {
                    throw new InvalidOperationException("GetMetadataAsync returned null");
                }
                _metadata.Validate();
            }

            return(_metadata);
        }
Ejemplo n.º 4
0
 public Task <IdentityManagerMetadata> GetMetadataAsync()
 {
     return(inner.GetMetadataAsync());
 }