Implemented interface member:
property
Site
System.ComponentModel.IComponent.Site
149 references to Site
System.Workflow.Activities (47)
CorrelationValidator.cs (1)
55
if (activity.
Site
== null)
Designers\EventSinkActivityDesigner.cs (4)
65
if (Activity.
Site
!= null)
69
new ExternalDataExchangeInterfaceTypeFilterProvider(Activity.
Site
).CanFilterType(interfaceType, true);
72
PropertyDescriptorUtils.SetPropertyValue(Activity.
Site
, TypeDescriptor.GetProperties(Activity)["EventName"], Activity, String.Empty);
74
IExtendedUIService extUIService = (IExtendedUIService)Activity.
Site
.GetService(typeof(IExtendedUIService));
Designers\InvokeMethodActivityDesigner.cs (4)
64
if (Activity.
Site
!= null)
68
new ExternalDataExchangeInterfaceTypeFilterProvider(Activity.
Site
).CanFilterType(interfaceType, true);
71
PropertyDescriptorUtils.SetPropertyValue(Activity.
Site
, TypeDescriptor.GetProperties(Activity)["MethodName"], Activity, String.Empty);
73
IExtendedUIService extUIService = (IExtendedUIService)Activity.
Site
.GetService(typeof(IExtendedUIService));
Designers\InvokeWebServiceDesigner.cs (8)
76
properties["URL"] = new WebServiceUrlPropertyDescriptor(Activity.
Site
, TypeDescriptor.CreateProperty(this.GetType(), "URL", typeof(string), DesignOnlyAttribute.Yes, MergablePropertyAttribute.No));
99
IExtendedUIService extUIService = (IExtendedUIService)Activity.
Site
.GetService(typeof(IExtendedUIService));
115
IExtendedUIService extUIService = (IExtendedUIService)Activity.
Site
.GetService(typeof(IExtendedUIService));
121
IDesignerHost host = Activity.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
126
PropertyDescriptorUtils.SetPropertyValue(Activity.
Site
, TypeDescriptor.GetProperties(Activity)["ProxyClass"], Activity, string.IsNullOrEmpty(this.url) ? null : extUIService.GetProxyClassForUrl(new Uri(this.url)));
147
if (Activity.
Site
!= null)
150
PropertyDescriptorUtils.SetPropertyValue(Activity.
Site
, TypeDescriptor.GetProperties(Activity)["MethodName"], Activity, String.Empty);
152
IExtendedUIService extUIService = (IExtendedUIService)Activity.
Site
.GetService(typeof(IExtendedUIService));
Designers\StateDesigner.cs (6)
696
return (this.Activity.
Site
!= null) &&
1613
if (activity.
Site
!= null)
2239
if (activity != null && activity.
Site
!= null)
2241
service = activity.
Site
.GetService(serviceType);
2251
if (activity != null && activity.
Site
!= null)
2253
IDesignerHost designerHost = activity.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
Designers\StateMachineDesignerPaint.cs (1)
427
if (designer == GetSafeRootDesigner(designer.Activity.
Site
) && ((IWorkflowRootDesigner)designer).InvokingDesigner == null)
Designers\WebServiceReceiveDesigner.cs (3)
34
properties["InterfaceType"] = new WebServiceInterfacePropertyDescriptor(Activity.
Site
, properties["InterfaceType"] as PropertyDescriptor);
46
if (this.Activity.
Site
!= null)
50
new InterfaceTypeFilterProvider(Activity.
Site
).CanFilterType(interfaceType, true);
Rules\DeclarativeExpressionConditionDeclaration.cs (3)
372
if (activity.
Site
!= null)
373
rules = ConditionHelper.Load_Rules_DT(activity.
Site
, declaringActivity);
407
if (activity.
Site
!= null)
Rules\Design\Dialogs\BasicBrowserDialog.cs (6)
52
serviceProvider = activity.
Site
;
55
IUIService uisvc = (IUIService)activity.
Site
.GetService(typeof(IUIService));
159
DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.
Site
);
182
DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.
Site
);
205
DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.
Site
);
240
DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.
Site
);
Rules\Design\Dialogs\ConditionBrowserDialog.cs (3)
37
RuleDefinitions rules = ConditionHelper.Load_Rules_DT(activity.
Site
, Helpers.GetRootActivity(activity));
95
using (RenameRuleObjectDialog dlg = new RenameRuleObjectDialog(this.Activity.
Site
, declarativeRuleDefinition.Name, new RenameRuleObjectDialog.NameValidatorDelegate(IsUniqueName), this))
119
ITypeProvider typeProvider = (ITypeProvider)this.Activity.
Site
.GetService(typeof(ITypeProvider));
Rules\Design\Dialogs\RuleConditionDialog.cs (1)
37
serviceProvider = activity.
Site
;
Rules\Design\Dialogs\RuleSetBrowserDialog.cs (3)
26
RuleDefinitions rules = ConditionHelper.Load_Rules_DT(activity.
Site
, Helpers.GetRootActivity(activity));
81
using (RenameRuleObjectDialog dlg = new RenameRuleObjectDialog(this.Activity.
Site
, ruleSet.Name, new RenameRuleObjectDialog.NameValidatorDelegate(IsUniqueName), this))
105
ValidationManager manager = new ValidationManager(this.Activity.
Site
);
Rules\Design\Dialogs\RuleSetDialog.cs (1)
43
this.serviceProvider = activity.
Site
;
Rules\RuleSetReference.cs (3)
127
if (activity.
Site
!= null)
128
rules = ConditionHelper.Load_Rules_DT(activity.
Site
, declaringActivity);
162
if (activity.
Site
!= null)
System.Workflow.ComponentModel (88)
AuthoringOM\Compiler\Validation\BindValidator.cs (1)
18
if (refActivity.
Site
!= null && !string.IsNullOrEmpty(typeName))
AuthoringOM\DependencyObject.cs (3)
706
if (this.
Site
!= null && this.
Site
.Container != null)
707
this.
Site
.Container.Remove(this);
AuthoringOM\Design\ActivityDesigner.cs (24)
197
IWorkflowRootDesigner rootDesigner = ActivityDesigner.GetSafeRootDesigner(Activity.
Site
) as IWorkflowRootDesigner;
439
if (activity.Enabled && !isNestedInComment && !IsLocked && activity.
Site
!= null && !debugMode)
444
ValidationManager validationManager = new ValidationManager(Activity.
Site
, false);
658
return new ActivityRootLayout(Activity.
Site
);
725
if (Activity.
Site
!= null)
727
foreach (PropertyDescriptor propertyDescriptor in PropertyDescriptorFilter.GetPropertiesForEvents(Activity.
Site
, Activity))
1053
if (Activity.
Site
== null)
1062
GlyphManager glyphManager = (Activity != null && Activity.
Site
!= null) ? GetService(typeof(IDesignerGlyphProviderService)) as GlyphManager : null;
1138
DesignerHelpers.MakePropertiesReadOnly(activity.
Site
, activity);
1295
PropertyDescriptorFilter.FilterProperties(Activity.
Site
, Activity, properties);
1318
if (this.activity != null && this.activity.
Site
!= null)
1319
return this.activity.
Site
.GetService(serviceType);
1638
WorkflowView workflowView = new WorkflowView(Activity.
Site
as IServiceProvider);
1648
if (Activity != null && Activity.
Site
!= null)
1932
if (activity != null && activity.
Site
!= null)
1934
IDesignerHost designerHost = activity.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
2085
Type rtType = PropertyDescriptorUtils.GetBaseType(propertyDescriptor, Activity, Activity.
Site
);
2141
CustomProperty newCustomProperty = CustomProperty.CreateCustomProperty(Activity.
Site
, DesignerHelpers.GenerateUniqueIdentifier(Activity.
Site
, Activity.Name + "_" + propertyDescriptor.Name, customPropertyNames.ToArray()), propertyDescriptor, Activity);
2269
DesignerHelpers.RefreshDesignerActions(Activity.
Site
);
2478
IWorkflowRootDesigner rootDesigner = ActivityDesigner.GetSafeRootDesigner(Activity.
Site
) as IWorkflowRootDesigner;
2487
rootDesigner = ActivityDesigner.GetSafeRootDesigner(rootDesigner.InvokingDesigner.Activity.
Site
) as IWorkflowRootDesigner;
2545
Activity[] activities = CompositeActivityDesigner.DeserializeActivitiesFromToolboxItem(Activity.
Site
, toolboxItem, false);
2554
activities = CompositeActivityDesigner.DeserializeActivitiesFromToolboxItem(Activity.
Site
, toolboxItem, true);
AuthoringOM\Design\ActivityDesignerAccessibleObject.cs (2)
210
if (this.ActivityDesigner.Activity != null && this.ActivityDesigner.Activity.
Site
!= null)
211
return this.ActivityDesigner.Activity.
Site
.GetService(serviceType);
AuthoringOM\Design\CommandSet.cs (2)
366
if (activity.
Site
!= null)
368
designerHost = activity.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
AuthoringOM\Design\CompositeActivityDesigner.cs (13)
429
compositeActivityDesigner.Activity.
Site
== null ||
439
ISite site = compositeActivityDesigner.Activity.
Site
;
541
if (nextSelectableActivity != null && nextSelectableActivity.
Site
!= null)
543
ISelectionService selectionService = nextSelectableActivity.
Site
.GetService(typeof(ISelectionService)) as ISelectionService;
768
if (activity.
Site
!= null)
771
IDesignerHost designerHost = activity.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
786
designerToInsert = ActivityDesigner.CreateDesigner(Activity.
Site
, activity);
835
WorkflowDesignerLoader.AddActivityToDesigner(Activity.
Site
, activity);
845
ExtenderHelpers.FilterDependencyProperties(this.Activity.
Site
, walkerEventArgs.CurrentActivity);
975
ExtenderHelpers.FilterDependencyProperties(this.Activity.
Site
, walkerEventArgs.CurrentActivity);
1036
WorkflowDesignerLoader.RemoveActivityFromDesigner(Activity.
Site
, activity);
1530
IDesignerHost designerHost = compositeActivity.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
1540
ISelectionService selectionService = compositeActivity.
Site
.GetService(typeof(ISelectionService)) as ISelectionService;
AuthoringOM\Design\Connector.cs (4)
432
Point[] newSegments = ActivityDesignerConnectorRouter.Route(Source.AssociatedDesigner.Activity.
Site
, Source, Target, ExcludedRoutingRectangles);
506
if (this.parentDesigner != null && this.parentDesigner.Activity != null && this.parentDesigner.Activity.
Site
!= null)
507
service = this.parentDesigner.Activity.
Site
.GetService(serviceType);
809
this.serviceProvider = this.editedConnector.Source.AssociatedDesigner.Activity.
Site
;
AuthoringOM\Design\CustomActivityDesigner.cs (2)
235
CustomActivityDesignerHelper.SetBaseTypeName(baseActivityTypeName, activity.
Site
);
246
if (activity != null && activity.
Site
!= null && activity == Helpers.GetRootActivity(activity))
AuthoringOM\Design\DesignerHelpers.cs (5)
563
if (designer == ActivityDesigner.GetSafeRootDesigner(designer.Activity.
Site
) && ((IWorkflowRootDesigner)designer).InvokingDesigner == null)
1538
IMenuCommandService menuCommandService = designer.Activity.
Site
.GetService(typeof(IMenuCommandService)) as IMenuCommandService;
1740
PropertyDescriptor namePropertyDescriptor = TypeDescriptor.GetConverter(value).GetProperties(new TypeDescriptorContext(activity.
Site
, null, value), value)["ConditionName"];
1741
PropertyDescriptor expressionPropertyDescriptor = TypeDescriptor.GetConverter(value).GetProperties(new TypeDescriptorContext(activity.
Site
, null, value), value)["Expression"];
1748
string rulesText = (expression != null) ? expressionPropertyDescriptor.Converter.ConvertTo(new TypeDescriptorContext(activity.
Site
, null, value), System.Threading.Thread.CurrentThread.CurrentUICulture, expression, typeof(string)) as string : null;
AuthoringOM\Design\DesignerWidgets.cs (6)
2899
if (this.parentDesigner != null && parentDesigner.Activity.
Site
!= null)
2901
WorkflowView workflowView = parentDesigner.Activity.
Site
.GetService(typeof(WorkflowView)) as WorkflowView;
2951
WorkflowView workflowView = this.itemStrip.parentDesigner.Activity.
Site
.GetService(typeof(WorkflowView)) as WorkflowView;
3174
if (this.itemStrip.parentDesigner.Activity != null || this.itemStrip.parentDesigner.Activity.
Site
!= null)
3175
return this.itemStrip.parentDesigner.Activity.
Site
.GetService(serviceType);
3206
this.serviceProvider = this.parentDesigner.Activity.
Site
;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1124
designer = ActivityDesigner.CreateDesigner(activity.
Site
, activity);
AuthoringOM\Design\FreeFormDesigner.cs (6)
388
return new WorkflowRootLayout(Activity.
Site
);
874
if (activity.
Site
== null || activity.Parent != Activity)
877
if (activity.
Site
== null)
1041
if (designer == null || designer.Activity == null || designer.Activity.
Site
== null)
1058
WorkflowView workflowView = designer.Activity.
Site
.GetService(typeof(WorkflowView)) as WorkflowView;
1074
if (connectorContainer != null && Activity != null && Activity.
Site
!= null)
AuthoringOM\Design\Glyphs\ConnectionPointGlyph.cs (3)
22
if (designer.Activity != null && designer.Activity.
Site
!= null && this.connectionPoint != null)
24
WorkflowView workflowView = designer.Activity.
Site
.GetService(typeof(WorkflowView)) as WorkflowView;
27
ConnectionManager connectionManager = designer.Activity.
Site
.GetService(typeof(ConnectionManager)) as ConnectionManager;
AuthoringOM\Design\PropertyDescriptors.cs (5)
91
IIdentifierCreationService identifierCreationService = activity.
Site
.GetService(typeof(IIdentifierCreationService)) as IIdentifierCreationService;
98
bool isVB = (CompilerHelpers.GetSupportedLanguage(activity.
Site
) == SupportedLanguages.VB);
99
Type designedType = Helpers.GetDataSourceClass(Helpers.GetRootActivity(activity), activity.
Site
);
106
IMemberCreationService memberCreationService = activity.
Site
.GetService(typeof(IMemberCreationService)) as IMemberCreationService;
110
IDesignerHost host = activity.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
AuthoringOM\Design\SecondaryViewProvider.cs (3)
51
if (designer.Activity.
Site
!= null)
53
WorkflowDesignerLoader loader = designer.Activity.
Site
.GetService(typeof(WorkflowDesignerLoader)) as WorkflowDesignerLoader;
197
IUIService uiService = this.parentDesigner.Activity.
Site
.GetService(typeof(IUIService)) as IUIService;
AuthoringOM\Design\SequenceDesignerAccessibleObject.cs (2)
242
if (this.connectorHitInfo.AssociatedDesigner != null && this.connectorHitInfo.AssociatedDesigner.Activity.
Site
!= null)
243
return this.connectorHitInfo.AssociatedDesigner.Activity.
Site
.GetService(serviceType);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
200
return new WorkflowRootLayout(Activity.
Site
);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
151
DesignerHelpers.RefreshDesignerActions(Activity.
Site
);
729
if (activity.
Site
!= null)
AuthoringOM\Design\WorkflowInlining.cs (1)
200
this.containedDesignSurface = new ContainedDesignSurface(Activity.
Site
, this);
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (2)
225
if (activity != null && activity.
Site
!= null && activity.
Site
.Container != null &&
System.WorkflowServices (14)
System\Workflow\Activities\ReceiveActivity.cs (2)
305
this.operationHelper = new ReceiveOperationInfoHelper(this.
Site
, this);
1092
parameters = serviceOperationInfo.GetParameters(this.
Site
);
System\Workflow\Activities\ReceiveActivityDesigner.cs (3)
175
if (ServiceOperationUIEditor.TryPickOperation(this.Activity.
Site
, this.Activity, this.ReceiveActivity.ServiceOperationInfo, out pickedServiceOperation))
177
PropertyDescriptorUtils.SetPropertyValue(this.Activity.
Site
, ServiceOperationHelpers.GetServiceOperationInfoPropertyDescriptor(this.Activity), this.Activity, pickedServiceOperation);
194
isOneWay = this.ReceiveActivity.ServiceOperationInfo.GetIsOneWay(this.Activity.
Site
as IServiceProvider);
System\Workflow\Activities\SendActivity.cs (2)
257
this.operationHelper = new SendOperationInfoHelper(this.
Site
, this);
514
parameters = serviceOperationInfo.GetParameters(this.
Site
);
System\Workflow\Activities\SendActivityDesigner.cs (3)
126
if (ServiceOperationUIEditor.TryPickOperation(this.Activity.
Site
, this.Activity, this.SendActivity.ServiceOperationInfo, out pickedServiceOperation))
128
PropertyDescriptorUtils.SetPropertyValue(this.Activity.
Site
, ServiceOperationHelpers.GetServiceOperationInfoPropertyDescriptor(this.Activity), this.Activity, pickedServiceOperation);
147
isOneWay = operation.GetIsOneWay(this.Activity.
Site
as IServiceProvider);
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
37
if (owner.Activity != null && owner.Activity.
Site
!= null)
39
return owner.Activity.
Site
.GetService(serviceType);
System\Workflow\ComponentModel\Design\FindSimilarActivitiesVerb.cs (2)
72
if (owner.Activity != null && owner.Activity.
Site
!= null)
74
return owner.Activity.
Site
.GetService(serviceType);