public NamespaceSetup(IModHelper helper, IAssetTracker assetTracker, INamespaceRegistry namespaceRegistry) { this.helper = helper ?? throw new ArgumentNullException(nameof(helper)); this.assetTracker = assetTracker ?? throw new ArgumentNullException(nameof(assetTracker)); this.namespaceRegistry = namespaceRegistry ?? throw new ArgumentNullException(nameof(namespaceRegistry)); }
public static void FillFromAttributes(this INamespaceRegistry nsReg, IEnumerable <Assembly> assemblies) { var namespaces = XamlNamespace.DefinedInAssemblies(assemblies); foreach (var xamlNamespace in namespaces) { nsReg.AddNamespace(xamlNamespace); } }
public TypeRepository(INamespaceRegistry namespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider) { Guard.ThrowIfNull(namespaceRegistry, nameof(namespaceRegistry)); Guard.ThrowIfNull(typeTypeFactory, nameof(typeTypeFactory)); Guard.ThrowIfNull(featureProvider, nameof(featureProvider)); this.namespaceRegistry = namespaceRegistry; this.typeTypeFactory = typeTypeFactory; this.featureProvider = featureProvider; }
public TypeRepository(INamespaceRegistry namespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider) { Guard.ThrowIfNull(namespaceRegistry, nameof(namespaceRegistry)); Guard.ThrowIfNull(typeTypeFactory, nameof(typeTypeFactory)); Guard.ThrowIfNull(featureProvider, nameof(featureProvider)); this.namespaceRegistry = namespaceRegistry; this.typeTypeFactory = typeTypeFactory; this.featureProvider = featureProvider; }
public FishingHudRenderer( IModHelper helper, IFishingApi fishingApi, HudConfig hudConfig, INamespaceRegistry namespaceRegistry ) { this.helper = helper ?? throw new ArgumentNullException(nameof(helper)); this.fishingApi = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi)); this.hudConfig = hudConfig ?? throw new ArgumentNullException(nameof(hudConfig)); this.namespaceRegistry = namespaceRegistry; this.whitePixel = new(Game1.graphics.GraphicsDevice, 1, 1); this.whitePixel.SetData(new[] { Color.White }); }
public WpfTypeRepository(INamespaceRegistry namespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider) : base(namespaceRegistry, typeTypeFactory, featureProvider) { }
public RuntimeTypeSource(ITypeRepository typeRepository, INamespaceRegistry nsRegistry) { TypeRepository = typeRepository; NamespaceRegistry = nsRegistry; }
public DefaultContentReloader(IFishingApi fishingApi, INamespaceRegistry namespaceRegistry) { this.fishingApi = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi)); this.namespaceRegistry = namespaceRegistry ?? throw new ArgumentNullException(nameof(namespaceRegistry)); }
public AvaloniaTypeRepository(INamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeFactory, ITypeFeatureProvider featureProvider) : base(xamlNamespaceRegistry, typeFactory, featureProvider) { _typeFactory = typeFactory; }
public PerspexTypeRepository(INamespaceRegistry xamlNamespaceRegistry, ITypeFactory typeFactory, ITypeFeatureProvider featureProvider) : base(xamlNamespaceRegistry, typeFactory, featureProvider) { _typeFactory = typeFactory; }
public TestTypeRepository(INamespaceRegistry namespaceRegistry, ITypeFactory typeTypeFactory, ITypeFeatureProvider featureProvider) : base(namespaceRegistry, typeTypeFactory, featureProvider) { }
public RuntimeTypeSource(ITypeRepository typeRepository, INamespaceRegistry nsRegistry) { TypeRepository = typeRepository; NamespaceRegistry = nsRegistry; }