File tree 1 file changed +2
-2
lines changed
src/MongoDB.Driver.Encryption
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ public static CsfleSchemaBuilder Create(Action<CsfleSchemaBuilder> configure)
51
51
/// <param name="collectionNamespace">The namespace of the collection.</param>
52
52
/// <param name="configure">An action to configure the encrypted collection builder.</param>
53
53
/// <returns>The current <see cref="CsfleSchemaBuilder"/> instance.</returns>
54
- public CsfleSchemaBuilder Encrypt < T > ( string collectionNamespace , Action < EncryptedCollectionBuilder < T > > configure )
54
+ public CsfleSchemaBuilder Encrypt < T > ( CollectionNamespace collectionNamespace , Action < EncryptedCollectionBuilder < T > > configure )
55
55
{
56
56
var builder = new EncryptedCollectionBuilder < T > ( ) ;
57
57
configure ( builder ) ;
58
- _schemas . Add ( collectionNamespace , builder . Build ( ) ) ;
58
+ _schemas . Add ( collectionNamespace . FullName , builder . Build ( ) ) ;
59
59
return this ;
60
60
}
61
61
You can’t perform that action at this time.
0 commit comments