pmalmsten / cosmosdb-extensions-sessiontokens-aspnet

Cosmos DB extensions for managing session tokens with ASP.NET
MIT License
0 stars 2 forks source link

Switch to method-name convention for determining read vs write #21

Closed pmalmsten closed 1 year ago

pmalmsten commented 1 year ago

Instead of explicitly classifying all Cosmos DB Container methods as representing a Read or a Write, this classification is now done just by looking at whether the method name starts with "Read" or not. All of the relevant methods on Container follow a naming convention of "\\", so that enables this library to be more tolerant of new Cosmos DB SDK versions that introduce new methods on Container that did not exist at the time that this library was last published.