Exemple #1
0
 private void SizeReady()
 {
     if (m_inProgress.UnsafeData != null)
     {
         // Write message body into the buffer.
         NextStep(new ByteArraySegment(m_inProgress.UnsafeData, m_inProgress.UnsafeOffset),
                  m_inProgress.Size, MessageReadyState, true);
     }
     else
     {
         Assumes.Equals(m_inProgress.Size, 0);
         NextStep(null, m_inProgress.Size, MessageReadyState, true);
     }
 }
Exemple #2
0
        public int ReadSolutionProps(IVsHierarchy pHierarchy, string pszProjectName, string pszProjectMk, string pszKey, int fPreLoad, IPropertyBag pPropBag)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            if (pHierarchy == null)
            {
                if (PackageGuidString.Equals(pszKey, StringComparison.OrdinalIgnoreCase))
                {
                    object propertyValue;
                    pPropBag.Read("PropertyName", out propertyValue, null, (uint)VarEnum.VT_BSTR, pPropBag);

                    Assumes.Is <string>(propertyValue);
                    Assumes.Equals("PropertyValue", (string)propertyValue);
                }
            }
            return(VSConstants.S_OK);
        }