Skip to content

Commit eb0430b

Browse files
committed
Update README.md fix typo
1 parent 70b2b8c commit eb0430b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Dax Formatter [![NuGet](https://github.com/sql-bi/DaxFormatter/actions/workflows/dotnet.yml/badge.svg)](https://github.com/sql-bi/DaxFormatter/actions/workflows/dotnet.yml)
33

4-
DAX Formatter is a service available at https://www.daxformatter.com
4+
DAX Formatter is a service available at https://www.daxformatter.com.
55
The service receives DAX expressions and format them according to rules for [DAX code formatting](https://www.sqlbi.com/articles/rules-for-dax-code-formatting/).
66
The NuGet package contains a client library to invoke the serivce from your .NET application.
77
All the requests are designed to be asynchronous.
@@ -13,13 +13,12 @@ Invoke the `FormatAsync` method for each request.
1313
Possibly, use the `DaxFormatterMultipleRequest` structure to provide more statistical details about the database and the server (all the names are anonymized and used only to count the number of unique servers/databases serviced).
1414

1515
# DaxFormatterClient
16-
1716
The default constructor creates an instance of the client using the current assembly name and version to identify the client. You can specify an application name and version in the constructor arguments.
1817
The client instance resolve the server endpoint just once and reuse it in following requests.
1918
It is suggested to reuse the same instance in multiple requests to minimize the latency.
2019
```csharp
2120
var formatter = new DaxFormatterClient();
22-
var response1 = await formatter.FormatAsync( "evaluate('Table') order by 'Table'[Column]" );
21+
var response = await formatter.FormatAsync( "evaluate('Table') order by 'Table'[Column]" );
2322
```
2423
# DaxFormatterMultipleRequest
2524
Use the `DaxFormatterMultipleRequest` class to send multiple DAX expressions in a single API call.
@@ -33,7 +32,7 @@ var request = new DaxFormatterMultipleRequest
3332
// Format arguments (you can skip all of them to keep the default values)
3433
ListSeparator = ',',
3534
DecimalSeparator = '.',
36-
MaxLineLenght = DaxFormatterLineStyle.LongLine,
35+
MaxLineLength = DaxFormatterLineStyle.LongLine,
3736
SkipSpaceAfterFunctionName = DaxFormatterSpacingStyle.BestPractice,
3837

3938
// Identify the server type using the corresponding enum values
@@ -70,7 +69,7 @@ var request = new DaxFormatterSingleRequest
7069
// Format arguments (you can skip all of them to keep the default values)
7170
ListSeparator = ',',
7271
DecimalSeparator = '.',
73-
MaxLineLenght = DaxFormatterLineStyle.LongLine,
72+
MaxLineLength = DaxFormatterLineStyle.LongLine,
7473
SkipSpaceAfterFunctionName = DaxFormatterSpacingStyle.BestPractice,
7574

7675
// Identify the server type using the corresponding enum values

0 commit comments

Comments
 (0)