public static IScopeBuilder WithXAudio(this IScopeBuilder builder) { return(builder .WithType <XAudioEngine>().AsSelf().AsSingleton() .WithType <DxSoundClip>().As <SoundClip>() .WithType <DxSoundClipInstance>().As <SoundClipInstance>()); }
public static IScopeBuilder WithSkia(this IScopeBuilder builder) { return(builder .WithType <SkiaImage>().As <Image>() .WithType <SkiaCanvas>().As <Canvas>().As <ISkiaCanvas>() .WithType <SkiaVertexBuffer>().As <VertexBuffer>() .WithType <SkiaFont>().As <Font>() .WithType <SkiaFontManager>().As <IFontManager>().AsSingleton() .WithType <SkiaEffectsFactory>().As <IEffectsFactory>().AsSingleton()); }
public static IScopeBuilder WithCrossTypes(this IScopeBuilder scopeBuilder) { return(scopeBuilder .WithType <NavigationImpl>().As <INavigation>() .WithType <ImageCache>().As <IImageCache>().AsSingleton()); }