コード例 #1
0
ファイル: App.xaml.cs プロジェクト: build2021/example-client
 private static void ConfigureContainer(HostBuilderContext context, ResolverConfig config)
 {
     config
     .UseAutoBinding()
     .UseArrayBinding()
     .UseAssignableBinding();
 }
コード例 #2
0
        private void RegisterComponents(ResolverConfig config)
        {
            config.UseAutoBinding();
            config.UseNavigator();
            config.Bind <ISettingService>().To <SettingService>().InSingletonScope();
            config.Bind <IDialogService>().To <DialogService>().InSingletonScope();
            config.Bind <IPlatformService>().To <PlatformService>().InSingletonScope();
            config.Bind <INetworkClient>().To <NetworkClient>().InSingletonScope();

            config.Bind <ItemService>().ToSelf().InSingletonScope();
            config.Bind <EntryService>().ToSelf().InSingletonScope();
            config.Bind <InspectionService>().ToSelf().InSingletonScope();

            config.Bind <Session>().ToSelf().InSingletonScope();
        }