-
Notifications
You must be signed in to change notification settings - Fork 8
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 #774 from storybuilder-org/semantic_kernel
Changes to expose ServiceCollection to Collaborator PR APPROVED
- Loading branch information
Showing
5 changed files
with
101 additions
and
80 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
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
This file was deleted.
Oops, something went wrong.
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,81 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using StoryCAD.DAL; | ||
using StoryCAD.Services.Backend; | ||
using StoryCAD.Services.Backup; | ||
using StoryCAD.Services.Navigation; | ||
using StoryCAD.Services.Search; | ||
using StoryCAD.ViewModels.Tools; | ||
using StoryCAD.Collaborator.ViewModels; | ||
using StoryCAD.Models.Tools; | ||
using StoryCAD.Services.Collaborator; | ||
using StoryCAD.Services.Ratings; | ||
|
||
namespace StoryCAD.Services.IoC | ||
{ | ||
public static class ServiceLocator | ||
{ | ||
public static ServiceCollection Services { get; private set; } | ||
|
||
static ServiceLocator() | ||
{ | ||
Services = new ServiceCollection(); | ||
} | ||
|
||
public static void Initialize() | ||
{ | ||
Services.AddSingleton<NavigationService>(); | ||
Services.AddSingleton<LogService>(); | ||
Services.AddSingleton<SearchService>(); | ||
Services.AddSingleton<ControlLoader>(); | ||
Services.AddSingleton<ListLoader>(); | ||
Services.AddSingleton<ToolLoader>(); | ||
Services.AddSingleton<ScrivenerIo>(); | ||
Services.AddSingleton<StoryReader>(); | ||
Services.AddSingleton<StoryWriter>(); | ||
Services.AddSingleton<MySqlIo>(); | ||
Services.AddSingleton<BackupService>(); | ||
Services.AddSingleton<AutoSaveService>(); | ||
Services.AddSingleton<DeletionService>(); | ||
Services.AddSingleton<BackendService>(); | ||
Services.AddSingleton<CollaboratorService>(); | ||
Services.AddSingleton<ListData>(); | ||
Services.AddSingleton<ToolsData>(); | ||
Services.AddSingleton<ControlData>(); | ||
Services.AddSingleton<AppState>(); | ||
Services.AddSingleton<Windowing>(); | ||
Services.AddSingleton<RatingService>(); | ||
Services.AddSingleton<ShellViewModel>(); | ||
Services.AddSingleton<PreferenceService>(); | ||
Services.AddSingleton<OverviewViewModel>(); | ||
Services.AddSingleton<CharacterViewModel>(); | ||
Services.AddSingleton<ProblemViewModel>(); | ||
Services.AddSingleton<SettingViewModel>(); | ||
Services.AddSingleton<SceneViewModel>(); | ||
Services.AddSingleton<FolderViewModel>(); | ||
Services.AddSingleton<WebViewModel>(); | ||
Services.AddSingleton<WizardViewModel>(); | ||
Services.AddSingleton<WizardStepViewModel>(); | ||
Services.AddSingleton<TrashCanViewModel>(); | ||
Services.AddSingleton<UnifiedVM>(); | ||
Services.AddSingleton<InitVM>(); | ||
Services.AddSingleton<FeedbackViewModel>(); | ||
Services.AddSingleton<TreeViewSelection>(); | ||
// Register ContentDialog ViewModels | ||
Services.AddSingleton<NewProjectViewModel>(); | ||
Services.AddSingleton<NewRelationshipViewModel>(); | ||
Services.AddSingleton<PrintReportDialogVM>(); | ||
Services.AddSingleton<NarrativeToolVM>(); | ||
Services.AddSingleton<ElementPickerVM>(); | ||
// Register Tools ViewModels | ||
Services.AddSingleton<KeyQuestionsViewModel>(); | ||
Services.AddSingleton<TopicsViewModel>(); | ||
Services.AddSingleton<MasterPlotsViewModel>(); | ||
Services.AddSingleton<StockScenesViewModel>(); | ||
Services.AddSingleton<DramaticSituationsViewModel>(); | ||
Services.AddSingleton<SaveAsViewModel>(); | ||
Services.AddSingleton<PreferencesViewModel>(); | ||
Services.AddSingleton<FlawViewModel>(); | ||
Services.AddSingleton<TraitsViewModel>(); | ||
} | ||
} | ||
} |
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