Inheritance: System.MarshalByRefObject
Ejemplo n.º 1
0
 internal override void ProcessRequest(Request request)
 {
     if (request == null)
     {
         throw new ArgumentNullException("request");
     }
     if (request.RequestInfo is PersistenceKeyRequestInfo)
     {
         PersistenceKeyRetrievalCompletedResponse response = new PersistenceKeyRetrievalCompletedResponse();
         IRequestStatus requestStatus = request.RequestStatus;
         SyncStatus status2 = new SyncStatus(requestStatus);
         try
         {
             string str = this.OnRetrievePersistenceKey();
             response.PersistenceKey = str;
             requestStatus.ProcessResponse(response);
         }
         finally
         {
             status2.Close();
         }
     }
     else
     {
         base.ProcessRequest(request);
     }
 }
Ejemplo n.º 2
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);
     }
 }
Ejemplo n.º 3
0
 void IMessageClient.ProcessRequest(Request request)
 {
     SynchronizationContextCache.RestoreOriginalContext();
     if (this._onProcessRequest != null)
     {
         this._onProcessRequest(request);
     }
 }
Ejemplo n.º 4
0
 internal override void ProcessRequest(Request request)
 {
     if (request.RequestInfo is ShowInitializationWizardRequestInfo)
     {
         ShowInitializationWizardResponse response = new ShowInitializationWizardResponse();
         IRequestStatus requestStatus = request.RequestStatus;
         SyncStatus status2 = new SyncStatus(requestStatus);
         try
         {
             response.AddSnapInToConsole = this.OnShowInitializationWizard();
             requestStatus.ProcessResponse(response);
         }
         finally
         {
             status2.Close();
         }
     }
     else
     {
         base.ProcessRequest(request);
     }
 }
Ejemplo n.º 5
0
 internal override void ProcessRequest(Request request)
 {
     if (request == null)
     {
         throw new ArgumentNullException("request");
     }
     if (request.RequestInfo is NodeRequestInfo)
     {
         this._nodeSyncManager.ProcessRequest((NodeRequestInfo) request.RequestInfo, request.RequestStatus);
     }
     else if (request.RequestInfo is LoadDataRequestInfo)
     {
         this.LoadCustomData(request.RequestStatus, (request.RequestInfo as LoadDataRequestInfo).GetDataBlob());
     }
     else if (request.RequestInfo is SaveDataRequestInfo)
     {
         SaveDataRequestInfo requestInfo = request.RequestInfo as SaveDataRequestInfo;
         this.SaveCustomData(request.RequestStatus, requestInfo.ClearModified);
     }
     else
     {
         base.ProcessRequest(request);
     }
 }
Ejemplo n.º 6
0
 internal virtual void ProcessRequest(Request request)
 {
     if (request.RequestInfo is ShutdownRequestInfo)
     {
         AsyncStatus status = new AsyncStatus(request.RequestStatus);
         this.OnShutdown(status);
     }
     else
     {
         if (!(request.RequestInfo is PropertyPageMessageRequestInfo))
         {
             throw new NotImplementedException();
         }
         this._sheetManager.ProcessRequestMessage((PropertyPageMessageRequestInfo) request.RequestInfo, request.RequestStatus);
     }
 }
Ejemplo n.º 7
0
 internal override void ProcessRequest(Request request)
 {
     RequestInfo requestInfo = request.RequestInfo;
     if (requestInfo is ChangeSelectionDataViewRequestInfo)
     {
         ChangeSelectionDataViewRequestInfo info2 = (ChangeSelectionDataViewRequestInfo) requestInfo;
         this.HandleSelectionChange(info2.GetScopeNodeIds(), info2.GetResultNodeIds(), request.RequestStatus);
     }
     else if (requestInfo is SortListViewRequestInfo)
     {
         SortListViewRequestInfo info3 = (SortListViewRequestInfo) requestInfo;
         this.HandleSortRequest(info3.ColumnIndex, info3.Descending, request.RequestStatus);
     }
     else
     {
         base.ProcessRequest(request);
     }
 }
Ejemplo n.º 8
0
 internal virtual void ProcessRequest(Request request)
 {
     RequestInfo requestInfo = request.RequestInfo;
     if (requestInfo is ActionViewRequestInfo)
     {
         ActionViewRequestInfo info2 = (ActionViewRequestInfo) requestInfo;
         this.DoAction(info2.ActionId, info2.SelectionDependent, info2.SelectionId, request.RequestStatus);
     }
     else if (requestInfo is ReadSharedDataViewRequestInfo)
     {
         ReadSharedDataViewRequestInfo info3 = (ReadSharedDataViewRequestInfo) requestInfo;
         this.GetSharedData(info3.RequestedClipboardFormatId, info3.SelectionId, request.RequestStatus);
     }
     else if (requestInfo is UpdateSharedDataViewRequestInfo)
     {
         UpdateSharedDataViewRequestInfo info4 = (UpdateSharedDataViewRequestInfo) requestInfo;
         this.RequestSharedDataUpdate(info4.RequestedValue, info4.SelectionId, request.RequestStatus);
     }
     else if (requestInfo is PagesForViewRequestInfo)
     {
         PagesForViewRequestInfo info5 = (PagesForViewRequestInfo) requestInfo;
         this.GetPropertyPages(info5.SheetId, (long) info5.SelectionId, request.RequestStatus);
     }
     else if ((((requestInfo is DeleteViewSelectionRequestInfo) || (requestInfo is RefreshViewSelectionRequestInfo)) || ((requestInfo is PrintViewSelectionRequestInfo) || (requestInfo is RenameViewSelectionRequestInfo))) || ((requestInfo is PasteViewSelectionRequestInfo) || (requestInfo is CutOrMoveViewSelectionRequestInfo)))
     {
         this.DoVerb(requestInfo, request.RequestStatus);
     }
     else if (requestInfo is InitializeViewRequestInfo)
     {
         this.HandleInitializationRequest(request.RequestStatus);
     }
     else if (requestInfo is ShutdownViewRequestInfo)
     {
         this.HandleShutdownRequest(request.RequestStatus);
     }
     else if (requestInfo is LoadViewDataRequestInfo)
     {
         this.HandleLoadViewDataRequest(request.RequestStatus, (requestInfo as LoadViewDataRequestInfo).GetDataBlob());
     }
     else if (requestInfo is SaveViewDataRequestInfo)
     {
         SaveViewDataRequestInfo info7 = requestInfo as SaveViewDataRequestInfo;
         this.HandleSaveViewDataRequest(request.RequestStatus, info7.ClearModified);
     }
     else if (requestInfo is KeepAliveViewSelectionRequestInfo)
     {
         KeepAliveViewSelectionRequestInfo info8 = requestInfo as KeepAliveViewSelectionRequestInfo;
         this.HandleKeepAliveRequest(info8.SelectionId, info8.KeepAlive, info8.Purpose, request.RequestStatus);
     }
     else if (requestInfo is CompareViewSelectionsRequestInfo)
     {
         CompareViewSelectionsRequestInfo info9 = requestInfo as CompareViewSelectionsRequestInfo;
         this.ComparePropertySheetSelectionObjects(info9.SelectionId, info9.SelectionIdToCompare, request.RequestStatus);
     }
     else
     {
         TraceSources.ExecutiveSource.TraceEvent(TraceEventType.Warning, 12, "The request of type {0} is not handled by view {1}.", new object[] { requestInfo.GetType().FullName, this._viewInstanceId });
     }
 }
Ejemplo n.º 9
0
 public void ProcessRequest(Request request)
 {
     SynchronizationContextCache.RestoreOriginalContext();
     this._view.ProcessRequest(request);
 }