private IReadOnlyDictionary <string, object> CreateBindingData(IStorageBlob value)
        {
            Dictionary <string, object> bindingData = new Dictionary <string, object>(StringComparer.OrdinalIgnoreCase);

            bindingData.Add("BlobTrigger", value.GetBlobPath());

            IReadOnlyDictionary <string, object> bindingDataFromPath = _path.CreateBindingData(value.ToBlobPath());

            if (bindingDataFromPath != null)
            {
                foreach (KeyValuePair <string, object> item in bindingDataFromPath)
                {
                    // In case of conflict, binding data from the value type overrides the built-in binding data above.
                    bindingData[item.Key] = item.Value;
                }
            }
            return(bindingData);
        }
Esempio n. 2
0
 private static IBlobPathSource CreateBlobPath(IStorageBlob blob)
 {
     return(new FixedBlobPathSource(blob.ToBlobPath()));
 }
 private static IBlobPathSource CreateBlobPath(IStorageBlob blob)
 {
     return new FixedBlobPathSource(blob.ToBlobPath());
 }
        private IReadOnlyDictionary<string, object> CreateBindingData(IStorageBlob value)
        {
            Dictionary<string, object> bindingData = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
            bindingData.Add("BlobTrigger", value.GetBlobPath());

            IReadOnlyDictionary<string, object> bindingDataFromPath = _path.CreateBindingData(value.ToBlobPath());

            if (bindingDataFromPath != null)
            {
                foreach (KeyValuePair<string, object> item in bindingDataFromPath)
                {
                    // In case of conflict, binding data from the value type overrides the built-in binding data above.
                    bindingData[item.Key] = item.Value;
                }
            }
            return bindingData;
        }