Inheritance: RequestResponse
コード例 #1
0
 internal override void ProcessRequest(Request request)
 {
     if (request.RequestInfo is ExtensionPagesRequestInfo)
     {
         ExtensionPagesRequestInfo requestInfo = request.RequestInfo as ExtensionPagesRequestInfo;
         PropertyPageCollection propertyPageCollection = new PropertyPageCollection();
         IRequestStatus requestStatus = request.RequestStatus;
         SyncStatus status2 = new SyncStatus(requestStatus);
         try
         {
             this.OnAddPropertyPages(propertyPageCollection);
             PropertyPagesResponse response = new PropertyPagesResponse();
             response.SetPropertyPages(propertyPageCollection.ToPropertyPageInfoArray());
             requestStatus.ProcessResponse(response);
         }
         finally
         {
             status2.Close();
         }
         this._extensionPropertySheet = SnapInBase.SnapInInstance.SheetManager.CreatePropertySheet(requestInfo.SheetId, propertyPageCollection, null);
     }
     else
     {
         base.ProcessRequest(request);
     }
 }
コード例 #2
0
ファイル: ScopeNode.cs プロジェクト: SiteView/ECC8.13
 internal void GetPropertyPages(int sheetId, IRequestStatus requestStatus)
 {
     if (requestStatus == null)
     {
         throw new ArgumentNullException("requestStatus", Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.ScopeNodeRequestInterfaceNull));
     }
     PropertyPageCollection propertyPageCollection = new PropertyPageCollection();
     SyncStatus status = new SyncStatus(requestStatus);
     try
     {
         this.OnAddPropertyPages(propertyPageCollection);
         PropertyPagesResponse response = new PropertyPagesResponse();
         response.SetPropertyPages(propertyPageCollection.ToPropertyPageInfoArray());
         requestStatus.ProcessResponse(response);
     }
     finally
     {
         status.Close();
     }
     SnapInBase.SnapInInstance.SheetManager.CreatePropertySheet(sheetId, propertyPageCollection, null);
 }
コード例 #3
0
ファイル: View.cs プロジェクト: SiteView/ECC8.13
 internal void GetPropertyPages(int sheetId, long selectionId, IRequestStatus requestStatus)
 {
     if (requestStatus == null)
     {
         throw new ArgumentNullException("requestStatus");
     }
     PropertyPageCollection propertyPageCollection = new PropertyPageCollection();
     SyncStatus status = new SyncStatus(requestStatus);
     try
     {
         if ((this.SelectionData.SelectionCardinality == SelectionCardinality.None) || (selectionId != this.SelectionData.Id))
         {
             TraceSources.ExecutiveSource.TraceEvent(TraceEventType.Warning, 12, "Request for pages for sheet {0} in view {1} selection id {2} ignored since selection has changed.", new object[] { sheetId, this._viewInstanceId, selectionId });
             requestStatus.ProcessResponse(new PropertyPagesResponse());
             return;
         }
         this.OnAddPropertyPages(propertyPageCollection);
         PropertyPagesResponse response = new PropertyPagesResponse();
         response.SetPropertyPages(propertyPageCollection.ToPropertyPageInfoArray());
         requestStatus.ProcessResponse(response);
     }
     finally
     {
         status.Close();
     }
     SnapInBase.SnapInInstance.SheetManager.CreatePropertySheet(sheetId, propertyPageCollection, new AuxiliarySelectionData(this.SelectionData));
 }