Skip to content

Commit 64b0771

Browse files
committed
C#-ify
1 parent 939f316 commit 64b0771

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/ServiceStack.Server/AutoQueryFeature.AutoCrud.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ public class AutoCrudMetadata
256256
public GetMemberDelegate RowVersionGetter { get; set; }
257257
public bool SoftDelete { get; set; }
258258

259-
static readonly ConcurrentDictionary<Type, AutoCrudMetadata> cache =
260-
new ConcurrentDictionary<Type, AutoCrudMetadata>();
259+
static readonly ConcurrentDictionary<Type, AutoCrudMetadata> cache = new();
261260

262261
internal static AutoCrudMetadata Create(Type dtoType)
263262
{

src/ServiceStack/ProxyFeature.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class ProxyFeature : IPlugin, Model.IHasStringId
3737
/// </summary>
3838
public Func<IHttpResponse, Stream, Task<Stream>> TransformResponse { get; set; }
3939

40-
public HashSet<string> IgnoreResponseHeaders = new HashSet<string>(StringComparer.OrdinalIgnoreCase) {
40+
public HashSet<string> IgnoreResponseHeaders = new(StringComparer.OrdinalIgnoreCase) {
4141
HttpHeaders.TransferEncoding
4242
};
4343

@@ -81,7 +81,7 @@ public class ProxyFeatureHandler : HttpAsyncTaskHandler
8181
public Action<IHttpResponse, HttpWebResponse> ProxyResponseFilter { get; set; }
8282
public Func<IHttpRequest, Stream, Task<Stream>> TransformRequest { get; set; }
8383
public Func<IHttpResponse, Stream, Task<Stream>> TransformResponse { get; set; }
84-
public HashSet<string> IgnoreResponseHeaders { get; set; } = new HashSet<string>(StringComparer.OrdinalIgnoreCase) {
84+
public HashSet<string> IgnoreResponseHeaders { get; set; } = new(StringComparer.OrdinalIgnoreCase) {
8585
HttpHeaders.TransferEncoding
8686
};
8787

0 commit comments

Comments
 (0)