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()
104
104
105
105
string databaseName = Context . GetMetadataValue < string > ( "databaseName" ) ;
106
106
string collectionName = Context . GetMetadataValue < string > ( "collectionName" ) ;
107
- string connection = Context . GetMetadataValue < string > ( "connection" ) ;
108
107
109
108
if ( Context . IsTrigger )
110
109
{
111
110
CosmosDBTriggerAttribute attributeTrigger = new CosmosDBTriggerAttribute ( databaseName , collectionName ) ;
112
- attributeTrigger . ConnectionStringSetting = connection ;
113
111
112
+ attributeTrigger . ConnectionStringSetting = Context . GetMetadataValue < string > ( "connectionStringSetting" ) ;
114
113
attributeTrigger . LeaseDatabaseName = Context . GetMetadataValue < string > ( "leaseDatabaseName" ) ;
115
114
attributeTrigger . LeaseCollectionName = Context . GetMetadataValue < string > ( "leaseCollectionName" ) ;
116
- attributeTrigger . LeaseConnectionStringSetting = Context . GetMetadataValue < string > ( "leaseConnection " ) ;
115
+ attributeTrigger . LeaseConnectionStringSetting = Context . GetMetadataValue < string > ( "leaseConnectionStringSetting " ) ;
117
116
118
117
attributes . Add ( attributeTrigger ) ;
119
118
}
@@ -130,7 +129,7 @@ public override Collection<Attribute> GetAttributes()
130
129
}
131
130
132
131
attribute . CreateIfNotExists = Context . GetMetadataValue < bool > ( "createIfNotExists" ) ;
133
- attribute . ConnectionStringSetting = connection ;
132
+ attribute . ConnectionStringSetting = Context . GetMetadataValue < string > ( " connection" ) ;
134
133
attribute . Id = Id ;
135
134
attribute . PartitionKey = Context . GetMetadataValue < string > ( "partitionKey" ) ;
136
135
attribute . CollectionThroughput = Context . GetMetadataValue < int > ( "collectionThroughput" ) ;
You can’t perform that action at this time.
0 commit comments