Skip to content

Commit 439929f

Browse files
Update documentation
1 parent e25e0c7 commit 439929f

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ who want to use dynamic code in their applications.
99
XS lowers the barrier for developers who want to leverage expression trees, eliminating the complexity of manually constructing,
1010
extending, and navigating expression tree syntax.
1111

12+
See [XS documentation](https://stillpoint-software.github.io/hyperbee.xs/) for more details.
13+
1214
---
1315

1416
### **Why Does XS Matter?**
@@ -290,8 +292,8 @@ lightweight design, and advanced extensibility, XS helps developers build robust
290292

291293
Special thanks to:
292294

293-
- [Parlot](https://github.com/sebastienros/parlot) for the fast .NET parser combinator.
294-
- [Fast Expression Compiler](https://github.com/dadhi/FastExpressionCompiler) for improved performance.
295+
- [Parlot](https://github.com/sebastienros/parlot) for the fast .NET parser combinator. :heart:
296+
- [Fast Expression Compiler](https://github.com/dadhi/FastExpressionCompiler) for improved performance. :heart:
295297
- [Just The Docs](https://github.com/just-the-docs/just-the-docs) for the documentation theme.
296298

297299
## Contributing

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ lightweight design, and advanced extensibility, XS helps developers build robust
292292

293293
Special thanks to:
294294

295-
- [Parlot](https://github.com/sebastienros/parlot) for the fast .NET parser combinator. :heart:
295+
- [Parlot](https://github.com/sebastienros/parlot) for the fast .NET parser combinator.
296+
- [Fast Expression Compiler](https://github.com/dadhi/FastExpressionCompiler) for improved performance.
296297
- [Just The Docs](https://github.com/just-the-docs/just-the-docs) for the documentation theme.
297298

298299
## Contributing

docs/language/config.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ This construct requires the `Hyperbee.XS.Extensions` package.
1313

1414
## Usage
1515

16+
With default type `string`:
1617
```
17-
config<string>("config_key");
18+
config::config_key;
1819
```
1920

20-
> Note: `config` is only allowed when using the `Compile( serviceProvider )` that takes an IServicesProvider as an argument.
21+
With type:
22+
```
23+
config<int>::port.number;
24+
```
25+
26+
> Note: `config` is only allowed when using the `lambda.Compile( serviceProvider )` that takes an IServicesProvider as an argument.
2127
> ```csharp
2228
> var host = Host
2329
> .CreateDefaultBuilder()
@@ -26,6 +32,7 @@ config<string>("config_key");
2632
> config.AddInMemoryCollection( new Dictionary<string, string>
2733
> {
2834
> {"config_key", "value"}
35+
> {"port:number", "5001"}
2936
> } );
3037
> } )
3138
> .Build();

docs/language/inject.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ This construct requires the `Hyperbee.XS.Extensions` package.
1717
With a type:
1818

1919
```
20-
var service = inject<IService>();
20+
var service = inject<IService>;
2121
```
2222

2323
Or with a key:
2424

2525
```
26-
var service = inject<IService>("key");
26+
var service = inject<IService>::key;
2727
```
2828

29-
> Note: `inject` is only allowed when using the `Compile( serviceProvider )` that takes an IServicesProvider as an argument.
29+
> Note: `inject` is only allowed when using the `lambda.Compile( serviceProvider )` that takes an IServicesProvider as an argument.
3030
> ```csharp
3131
> var host = Host
3232
> .CreateDefaultBuilder()

0 commit comments

Comments
 (0)