Граф коммитов

84 Коммитов

Автор SHA1 Сообщение Дата
Andrea Batina 6abb23390f Remove unneeded package references. 2024-05-17 12:23:50 +02:00
Andrea Batina 17def0b120 Switch client target framework to netstandard 2.0. 2024-05-17 12:23:49 +02:00
Andrea Batina 50dc2efcf2 Create a stronger test users password. 2024-05-17 12:23:49 +02:00
Andrea Batina 219ae9dd27 Undo new C# language features. 2024-05-17 12:23:49 +02:00
Stuart Padley d6aeaf9cc5 Remove ref for old version of SqlClient for .NetStandard 2.0 2024-02-16 02:27:16 -08:00
Stuart Padley df32fa23de Remove ref for old version of SqlClient for .NetStandard 2.0 2024-02-16 02:23:28 -08:00
Stuart Padley 3b51a3a8ea Merge branch 'master' into dotnet-8.0 2024-01-18 04:36:23 -08:00
Stuart Padley 64a7490364 Update nugets to latest (due to CVEs) 2024-01-18 04:26:48 -08:00
Stuart Padley 67d563255e Add .Net 8.0 Support 2023-11-21 06:21:59 -08:00
Stuart Padley 2b862a39b8 Increase wait to ensure pass on slower laptops 2023-10-06 06:05:27 -07:00
Stuart Padley 05842ba4da Update to net6.0 2023-10-06 05:58:00 -07:00
Amod Kumar Pandey 6f710b56aa clean up imports 2021-07-13 00:40:38 +01:00
Amod Kumar Pandey 4a04014092 upgrade from System.Data.SqlClient to Microsoft.Data.SqlClient 2021-07-13 00:39:30 +01:00
Amod Kumar Pandey 2f1cc310b6 update to net5.0 2021-07-12 23:35:34 +01:00
Jared Moore d7bdc198f7
Expose MultiShardConnection with AccessToken support (#201)
* Refresh ShardConnections access tokens
* Expose MultiShardConnection with SqlConnectionInfo
2019-11-06 19:31:12 -08:00
Jared Moore af882c0262
Expose SqlConnectionInfo with AccessToken support (#189)
* Add SqlConnectionInfo.AccessTokenFactory
* Make SqlConnectionInfo public
* Expose ShardMapManagerFactory methods with SqlConnectionInfo
* Expose SqlConnectionInfo methods for ShardMap
* Expose SqlConnectionInfo methods on ListShardMap and RangeShardMap
* Update release notes
* Update SqlShardMapManagerCredentials.EnsureCredentials to check AccessToken
* Throw NotSupportedException when using AccessToken on downlevel framework
2019-08-21 21:30:48 -07:00
Jared Moore 6fc00a7b29
Strong-name sign (#195) 2019-07-11 19:15:35 -07:00
Jared Moore 8338abd864
Cleanup redundant methods in ShardMapManagerFactory (#188)
* Inline CreateSqlShardMapManager which is only called in one place
* Remove CreateSqlShardMapManager whose unique param is always null
* Remove CreateSqlShardMapManager which is never called
* Upstack SqlConnectionInfo in CreateSqlShardMapManager
* Remove TryGetSqlShardMapManager whose unique value is always null
* Upstack SqlConnectionInfo in (Try)GetSqlShardMapManager
2019-05-30 18:40:54 -07:00
Jared Moore 76cc57895b
Introduce SqlConnectionInfo for plumbing conn str & credential (#186)
This is a new class that contains connection string and credential. This will make it easier to add access token into the mix.
2019-05-30 16:27:50 -07:00
Jared Moore 42acc4e416
Changed some ShardMapperTests to use Assert.Throws for better debuggability (#185) 2019-05-30 11:42:22 -07:00
Jared Moore 8a95a37b0b Minor fixes 2019-03-08 09:46:43 -08:00
Jared Moore 68399dc9cf Add test coverage for TryGetMapping methods 2018-12-03 03:20:23 -08:00
Jared Moore 6862c1eb55 Fix Delete test failure 2018-12-03 02:28:40 -08:00
Jared Moore a4a4b72e2a Invalidate cached mapping when not found in store 2018-12-03 02:28:39 -08:00
Jared Moore da4106a9ab Implemented LookupOptions
Implemented GetMappings and TryGetMappings with LookupOptions for ListShardMap and RangeShardMap with LookupOptions.LookupInStore as the default (for compabitility).
2018-12-03 02:28:38 -08:00
Jared Moore 55c5c879b9 Add unit tests for original behavior 2018-12-03 02:28:29 -08:00
Jared Moore 2f6ea94436 Fix netstandard build
This is done by bumping SqlClient dependency to new version that has
SqlCredential implemented.
2018-08-23 12:51:32 -07:00
Jared Moore c42d69bd53 Merge branch 'master' into stuartpa_SecureOverloads 2018-08-23 12:51:00 -07:00
Jared Moore 339f77f264 Ignore CS0619 warning.
This gets rid of a large number of warnings in code that was generated and not worth fixing.
2018-08-23 12:07:51 -07:00
Stuart Padley 7ff37ccc97 Enable passing of SecureString (via SqlCredential) to all APIs, as a non-breaking change, via overloads.
Add unit-tests for all overloads.
2018-03-22 13:25:58 -07:00
Jared Moore d50ed9d5fd Merge branch 'master' into MultiShardConnectionMultipleEnumeration 2018-02-15 17:46:30 -08:00
Jared Moore 9e90f9baee Fixed test discovery in VS 2017-11-17 12:33:58 -08:00
Jared Moore c750aa6f3a Fixed conditional compilation.
Building targeting net452 does not define NET451 (for example), so I added a NETFRAMEWORK defineconstant to represent any framework version (as opposed to .net standard).
2017-11-10 12:55:40 -08:00
Jared Moore 7f9b7c0395 Build both net452 and netstandard2.0 2017-11-10 12:32:50 -08:00
Jared Moore 5c315a4b9e Fixed msq test errors and SchemaInfoException serialization 2017-08-27 11:31:39 -07:00
Jared Moore 675d4528a4 Fixed failing smm tests 2017-08-27 00:34:01 -07:00
Jared Moore 6e209d558b Removed accidentally added empty unit test 2017-08-27 00:15:33 -07:00
Jared Moore 50245ac857 Switched client and smm test to dotnet SDK build
Also building these components against .net standard. Ripped out old build system.
2017-08-26 19:14:08 -07:00
Jared Moore 56cda9d8ec Merge branch 'master' into NetCore 2017-08-26 17:38:56 -07:00
Brian Blanchard 1d34ebac96 Adding common method for testing mapping options 2017-04-18 14:33:53 -04:00
Brian Blanchard 55e1e8b729 Add functional tests for offline mapping options 2017-04-17 16:13:38 -04:00
Brian Blanchard 96e65364b7 Provide MappingOptions when taking mapping offline
MappingOptions allow a user to specify if validation should be performed
on the affected shard in a mapping.  When a mapping is taken offline,
users can specify whether or not they want open connections
to affected shard from being killed.
2017-04-10 15:13:53 -04:00
Jared Moore 7d3259a7c4 Finished removing dependency on fakes 2016-10-01 16:58:42 -07:00
Jared Moore 1abce5f797 Added license headers 2016-10-01 16:38:15 -07:00
Jared Moore ac48078f62 Added explicit stub implementations.
These implementations are decompiled from the generated ElasticScale.Client.Fakes.dll. This is the first step in breaking our build dependency on fakes.
2016-10-01 16:37:03 -07:00
Jared Moore 2d5e9560c1 Delete dead IStub code.
These fakes-related classes are causing build headaches and can ben easily ripped out.
2016-10-01 16:11:03 -07:00
Anthony Rainer 1215fd7c5f Finished MSQ updates for Net Core.
- Unit tests fail to compile because they cannot properly reference the ElasticScale.Client Project.  They will have to be updated to use a xproj project file.
2016-09-23 12:45:40 -05:00
Anthony Rainer e806d3baf6 Combined Net451 and Core projects into one.
- Now the same project will produce outputs for both Net451 and NetStandard16.
- Unit tests failing to build.
- "dotnet pack" has incorrect package "id" <https://github.com/dotnet/cli/issues/2677>
2016-09-22 10:40:57 -05:00
Jared Moore b573a3aae3 Added SMM unit test core project. Build fails. 2016-09-21 17:32:38 -07:00
Jared Moore 2911abee3b Refactored MultiShardConnection constructor input validation and avoid multiply evaluating enumerables. Added unit tests verifying that enumerables are only evaluated once. Fixes #76. 2016-08-15 14:16:13 -07:00