Example #1
0
 private static void ConfigureContainer(HostBuilderContext context, ResolverConfig config)
 {
     config
     .UseAutoBinding()
     .UseArrayBinding()
     .UseAssignableBinding();
 }
Example #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();
        }