/// <nodoc /> public InternalDefaultDScriptResolverSettings(IInternalDefaultDScriptResolverSettings template, PathRemapper pathRemapper) : base(template, pathRemapper) { Contract.Assume(template != null); Contract.Assume(pathRemapper != null); Projects = template.Projects == null ? null : new List <AbsolutePath>(template.Projects); }
/// <inheritdoc/> public override bool TryInitialize(FrontEndHost host, FrontEndContext context, IConfiguration configuration, IResolverSettings resolverSettings) { Contract.Requires(context != null); Contract.Requires(host != null); Contract.Requires(configuration != null); Contract.Requires(resolverSettings != null); if (!base.TryInitialize(host, context, configuration, resolverSettings)) { return(false); } var defaultSourceResolverSettings = resolverSettings as IInternalDefaultDScriptResolverSettings; Contract.Assert(defaultSourceResolverSettings != null); m_defaultDScriptResolverSettings = defaultSourceResolverSettings; return(true); }