Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VisualStudioSourceInformationProvider" /> class.
        /// </summary>
        /// <param name="assemblyFileName">The assembly file name.</param>
        /// <param name="diagnosticMessageSink">The message sink which receives <see cref="_DiagnosticMessage"/> messages.</param>
        public VisualStudioSourceInformationProvider(
            string assemblyFileName,
            _IMessageSink diagnosticMessageSink)
        {
            Guard.ArgumentNotNullOrEmpty(assemblyFileName);

            session = new DiaSessionWrapper(assemblyFileName, diagnosticMessageSink);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="VisualStudioSourceInformationProvider" /> class.
 /// </summary>
 /// <param name="assemblyFileName">The assembly file name.</param>
 public VisualStudioSourceInformationProvider(string assemblyFileName)
 {
     session = new DiaSessionWrapper(assemblyFileName);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VisualStudioSourceInformationProvider" /> class.
 /// </summary>
 /// <param name="assemblyFileName">The assembly file name.</param>
 public VisualStudioSourceInformationProvider(string assemblyFileName)
 {
     session = new DiaSessionWrapper(assemblyFileName);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VisualStudioSourceInformationProvider" /> class.
 /// </summary>
 /// <param name="assemblyFileName">The assembly file name.</param>
 /// <param name="shadowCopy">Should apply Shadow Copy</param>
 /// <param name="configFileName">Configuration File Name</param>
 public VisualStudioSourceInformationProvider(string assemblyFileName, bool shadowCopy = true, string configFileName = null)
 {
     session = new DiaSessionWrapper(assemblyFileName, shadowCopy, configFileName);
 }