Skip to content

Commit

Permalink
Static property for formatter instance returned new instance everytime (
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Dec 10, 2019
1 parent c7cad81 commit 7e1fb2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public ElasticsearchNetFormatterResolver()
_fallbackFormatter = new DynamicObjectTypeFallbackFormatter(_innerFormatterResolver);
}

public static ElasticsearchNetFormatterResolver Instance => new ElasticsearchNetFormatterResolver();
public static ElasticsearchNetFormatterResolver Instance { get; } = new ElasticsearchNetFormatterResolver();

public IJsonFormatter<T> GetFormatter<T>() =>
typeof(T) == typeof(object)
Expand Down

0 comments on commit 7e1fb2a

Please sign in to comment.