File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/WebJobs.Script/Binding Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -104,16 +104,15 @@ public override Collection<Attribute> GetAttributes()
104104
105105 string databaseName = Context . GetMetadataValue < string > ( "databaseName" ) ;
106106 string collectionName = Context . GetMetadataValue < string > ( "collectionName" ) ;
107- string connection = Context . GetMetadataValue < string > ( "connection" ) ;
108107
109108 if ( Context . IsTrigger )
110109 {
111110 CosmosDBTriggerAttribute attributeTrigger = new CosmosDBTriggerAttribute ( databaseName , collectionName ) ;
112- attributeTrigger . ConnectionStringSetting = connection ;
113111
112+ attributeTrigger . ConnectionStringSetting = Context . GetMetadataValue < string > ( "connectionStringSetting" ) ;
114113 attributeTrigger . LeaseDatabaseName = Context . GetMetadataValue < string > ( "leaseDatabaseName" ) ;
115114 attributeTrigger . LeaseCollectionName = Context . GetMetadataValue < string > ( "leaseCollectionName" ) ;
116- attributeTrigger . LeaseConnectionStringSetting = Context . GetMetadataValue < string > ( "leaseConnection " ) ;
115+ attributeTrigger . LeaseConnectionStringSetting = Context . GetMetadataValue < string > ( "leaseConnectionStringSetting " ) ;
117116
118117 attributes . Add ( attributeTrigger ) ;
119118 }
@@ -130,7 +129,7 @@ public override Collection<Attribute> GetAttributes()
130129 }
131130
132131 attribute . CreateIfNotExists = Context . GetMetadataValue < bool > ( "createIfNotExists" ) ;
133- attribute . ConnectionStringSetting = connection ;
132+ attribute . ConnectionStringSetting = Context . GetMetadataValue < string > ( " connection" ) ;
134133 attribute . Id = Id ;
135134 attribute . PartitionKey = Context . GetMetadataValue < string > ( "partitionKey" ) ;
136135 attribute . CollectionThroughput = Context . GetMetadataValue < int > ( "collectionThroughput" ) ;
You can’t perform that action at this time.
0 commit comments