fixed the issue with loading dlls for service provider (#312)

* fixed the issue with loading dlls for service provider
This commit is contained in:
Leila Lali
2017-04-13 15:57:56 -07:00
committed by GitHub
parent d903ba56a9
commit a1bc1bc344
6 changed files with 28 additions and 12 deletions

View File

@@ -124,12 +124,12 @@ namespace Microsoft.SqlTools.Extensibility
/// <param name="configure">Function that returns the configuration to be used</param>
public ExtensionStore(Type contractType, Func<ConventionBuilder, ContainerConfiguration> configure)
{
Validate.IsNotNull(nameof(contractType), contractType);
Validate.IsNotNull(nameof(configure), configure);
this.contractType = contractType;
ConventionBuilder builder = GetExportBuilder();
ContainerConfiguration config = configure(builder);
host = config.CreateContainer();
Validate.IsNotNull(nameof(contractType), contractType);
Validate.IsNotNull(nameof(configure), configure);
this.contractType = contractType;
ConventionBuilder builder = GetExportBuilder();
ContainerConfiguration config = configure(builder);
host = config.CreateContainer();
}
/// <summary>
@@ -222,7 +222,7 @@ namespace Microsoft.SqlTools.Extensibility
{
var asl = new AssemblyLoader(apiApplicationFileInfo.DirectoryName);
return asl.LoadFromAssemblyPath(apiApplicationFileInfo.FullName);
}
}
}
return Assembly.Load(assemblyName);
}