generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from Kentico/fix/69_samples_fix_assets
#69 fix of asset samples
- Loading branch information
Showing
34 changed files
with
3,160 additions
and
3,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
*.cs text=CRLF diff=csharp | ||
*.html text diff=html | ||
*.sql text | ||
*.md text=CRLF | ||
|
||
*.csproj text merge=union | ||
*.sln text merge=union eol=crlf | ||
|
||
# Ensure binary files are not treated as text https://stackoverflow.com/a/32278635/939634 | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.gif binary | ||
*.ico binary | ||
*.mov binary | ||
*.mp4 binary | ||
*.mp3 binary | ||
*.flv binary | ||
*.fla binary | ||
*.swf binary | ||
*.gz binary | ||
*.zip binary | ||
*.7z binary | ||
*.ttf binary | ||
*.eot binary | ||
*.woff binary | ||
*.pyc binary | ||
*.pdf binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
# Kentico.Xperience.UMT.Services.IImportService | ||
|
||
|
||
## Methods | ||
### SerializeToJson | ||
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(Kentico.Xperience.UMT.Model.UmtModel, System.Text.Json.JsonSerializerOptions?)` | ||
Serializes umt model to JSON | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|model|Kentico.Xperience.UMT.Model.UmtModel| | ||
|options|System.Text.Json.JsonSerializerOptions?| | ||
### SerializeToJson | ||
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>, System.Text.Json.JsonSerializerOptions?)` | ||
Serializes umt model to JSON | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|model|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>| | ||
|options|System.Text.Json.JsonSerializerOptions?| | ||
### FromJsonStream | ||
`Kentico.Xperience.UMT.Services.IImportService.FromJsonStream(System.IO.Stream)` | ||
Reads json from stream and returns enumerable of UmtModel | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|jsonStream|System.IO.Stream|Stream of data, content must be valid JSON array of UMT model | ||
### FromJsonString | ||
`Kentico.Xperience.UMT.Services.IImportService.FromJsonString(string)` | ||
Reads model from json string and returns enumerable of UmtModel | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|jsonString|string|String that contains valid JSON UMT model | ||
### StartImport | ||
`Kentico.Xperience.UMT.Services.IImportService.StartImport(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)` | ||
Starts import | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|importedObjects|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects | ||
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events | ||
### StartImportAsync | ||
`Kentico.Xperience.UMT.Services.IImportService.StartImportAsync(System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)` | ||
Starts import | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|importedObjects|System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects | ||
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events | ||
|
||
|
||
# Kentico.Xperience.UMT.Services.IImportService | ||
|
||
|
||
## Methods | ||
### SerializeToJson | ||
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(Kentico.Xperience.UMT.Model.UmtModel, System.Text.Json.JsonSerializerOptions?)` | ||
Serializes umt model to JSON | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|model|Kentico.Xperience.UMT.Model.UmtModel| | ||
|options|System.Text.Json.JsonSerializerOptions?| | ||
### SerializeToJson | ||
`Kentico.Xperience.UMT.Services.IImportService.SerializeToJson(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>, System.Text.Json.JsonSerializerOptions?)` | ||
Serializes umt model to JSON | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|model|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.UmtModel>| | ||
|options|System.Text.Json.JsonSerializerOptions?| | ||
### FromJsonStream | ||
`Kentico.Xperience.UMT.Services.IImportService.FromJsonStream(System.IO.Stream)` | ||
Reads json from stream and returns enumerable of UmtModel | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|jsonStream|System.IO.Stream|Stream of data, content must be valid JSON array of UMT model | ||
### FromJsonString | ||
`Kentico.Xperience.UMT.Services.IImportService.FromJsonString(string)` | ||
Reads model from json string and returns enumerable of UmtModel | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|jsonString|string|String that contains valid JSON UMT model | ||
### StartImport | ||
`Kentico.Xperience.UMT.Services.IImportService.StartImport(System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)` | ||
Starts import | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|importedObjects|System.Collections.Generic.IEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects | ||
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events | ||
### StartImportAsync | ||
`Kentico.Xperience.UMT.Services.IImportService.StartImportAsync(System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>, Kentico.Xperience.UMT.Services.ImportStateObserver?)` | ||
Starts import | ||
Parameters | ||
|Name|Type|Summary| | ||
|---|---|---| | ||
|importedObjects|System.Collections.Generic.IAsyncEnumerable<Kentico.Xperience.UMT.Model.IUmtModel>|UMT model, imported objects | ||
|importObserver|Kentico.Xperience.UMT.Services.ImportStateObserver?|Import state observer, stores current information about import with events | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# Kentico.Xperience.UMT.Services.ImportStateObserver | ||
|
||
## Properties | ||
### ImportCompletedTask | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportCompletedTask` | ||
|
||
Task completes when whole import processing ends, if not awaited undefined behavior may occur<br/> Property is set internally by IImportService when CreateImport is called | ||
|
||
|
||
## Delegates | ||
|Name|Summary| | ||
|---|---| | ||
|ImportedInfoDelegate|Delegate specifies callback method for event ImportedInfo| | ||
|ModelValidationError|Delegate specifies callback method for event ValidationError| | ||
|RaisedException|Delegate specifies callback method for event Exception| | ||
|
||
## Events | ||
### ImportedInfo | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportedInfo` | ||
Invoked when Kentico API Info object is successfully created | ||
### ValidationError | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.ValidationError` | ||
Invoked when format of model is incorrect | ||
### Exception | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.Exception` | ||
Invoked when exception related to one model instance | ||
# Kentico.Xperience.UMT.Services.ImportStateObserver | ||
|
||
## Properties | ||
### ImportCompletedTask | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportCompletedTask` | ||
|
||
Task completes when whole import processing ends, if not awaited undefined behavior may occur<br/> Property is set internally by IImportService when CreateImport is called | ||
|
||
|
||
## Delegates | ||
|Name|Summary| | ||
|---|---| | ||
|ImportedInfoDelegate|Delegate specifies callback method for event ImportedInfo| | ||
|ModelValidationError|Delegate specifies callback method for event ValidationError| | ||
|RaisedException|Delegate specifies callback method for event Exception| | ||
|
||
## Events | ||
### ImportedInfo | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.ImportedInfo` | ||
Invoked when Kentico API Info object is successfully created | ||
### ValidationError | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.ValidationError` | ||
Invoked when format of model is incorrect | ||
### Exception | ||
`Kentico.Xperience.UMT.Services.ImportStateObserver.Exception` | ||
Invoked when exception related to one model instance |
Oops, something went wrong.