Exemplo n.º 1
0
        public async Task <CustomAttributeTypedArgument> GetAttribute(
            string objectKey,
            string propertyKey,
            string customAttributeKey,
            CancellationToken token)
        {
            var typeDictionary = await CacheFacade
                                 .GetData(
                CacheAttribute,
                objectKey, token).ConfigureAwait(false);

            DictionaryValidation(typeDictionary, nameof(GetDictionaryAttribute));

            var attributeDictionary = await CacheFacade
                                      .GetData(
                typeDictionary,
                propertyKey, token).ConfigureAwait(false);

            DictionaryValidation(attributeDictionary, nameof(GetDictionaryAttribute));

            var result = await CacheFacade
                         .GetData(
                attributeDictionary,
                customAttributeKey, token).ConfigureAwait(false);

            return(result);
        }
Exemplo n.º 2
0
        public async Task <IDictionary <string, Action <object, object> > > GetDictionaryMethodSet(
            string objectKey,
            CancellationToken token)
        {
            var dictionary = await CacheFacade.GetData(CacheSet, objectKey, token).ConfigureAwait(false);

            return(dictionary);
        }
Exemplo n.º 3
0
        public async Task <IDictionary <string, Dictionary <string, CustomAttributeTypedArgument> > > GetDictionaryAttribute(
            string objectKey,
            CancellationToken token)
        {
            var result = await CacheFacade.GetData(CacheAttribute, objectKey, token).
                         ConfigureAwait(false);

            return(result);
        }
Exemplo n.º 4
0
        public async Task <IDictionary <string, PropertyInfo> > GetDictionaryProperties(
            string objectKey,
            CancellationToken token)
        {
            var result = await CacheFacade.
                         GetData(CacheProperties, objectKey, token).
                         ConfigureAwait(false);

            return(result);
        }
Exemplo n.º 5
0
        public async Task <PropertyInfo> GetProperty(
            string objectKey,
            string propertyKey,
            CancellationToken token)
        {
            var dictionary = await CacheFacade.
                             GetData(CacheProperties, objectKey, token);

            DictionaryValidation(dictionary, nameof(GetProperty));

            var result = await CacheFacade.
                         GetData(dictionary, propertyKey, token).
                         ConfigureAwait(false);

            return(result);
        }
Exemplo n.º 6
0
        public async Task <Action <object, object> > GetMethodSet(
            string objectKey,
            string propertyKey,
            CancellationToken token)
        {
            var setMethodDictionary = await CacheFacade.
                                      GetData(CacheSet, objectKey, token).
                                      ConfigureAwait(false);

            DictionaryValidation(setMethodDictionary, nameof(GetMethodSet));

            var result = await CacheFacade.
                         GetData(setMethodDictionary, propertyKey, token).
                         ConfigureAwait(false);

            return(result);
        }