371 references to AdministrationStrings
System.ServiceModel (371)
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (36)
33
if ((int)instance.GetProperty(
AdministrationStrings
.ProcessId) == AppDomainInfo.Current.ProcessId
34
&& String.Equals((string)instance.GetProperty(
AdministrationStrings
.Name), AppDomainInfo.Current.Name, StringComparison.Ordinal))
45
return String.Format(CultureInfo.InvariantCulture,
AdministrationStrings
.AppDomainInfo +
47
AdministrationStrings
.AppDomainId +
49
AdministrationStrings
.Name +
51
AdministrationStrings
.ProcessId +
62
instance.SetProperty(
AdministrationStrings
.Name, domainInfo.Name);
63
instance.SetProperty(
AdministrationStrings
.AppDomainId, domainInfo.Id);
64
instance.SetProperty(
AdministrationStrings
.PerformanceCounters, PerformanceCounters.Scope.ToString());
65
instance.SetProperty(
AdministrationStrings
.IsDefault, domainInfo.IsDefaultAppDomain);
66
instance.SetProperty(
AdministrationStrings
.ProcessId, domainInfo.ProcessId);
67
instance.SetProperty(
AdministrationStrings
.TraceLevel, DiagnosticUtility.Level.ToString());
68
instance.SetProperty(
AdministrationStrings
.LogMalformedMessages, MessageLogger.LogMalformedMessages);
69
instance.SetProperty(
AdministrationStrings
.LogMessagesAtServiceLevel, MessageLogger.LogMessagesAtServiceLevel);
70
instance.SetProperty(
AdministrationStrings
.LogMessagesAtTransportLevel, MessageLogger.LogMessagesAtTransportLevel);
71
instance.SetProperty(
AdministrationStrings
.ServiceConfigPath, AspNetEnvironment.Current.ConfigurationPath);
85
IWmiInstance traceListenerWmiInstance = instance.NewInstance(
AdministrationStrings
.TraceListener);
86
traceListenerWmiInstance.SetProperty(
AdministrationStrings
.Name, traceListener.Name);
90
string initializeData = (string)type.InvokeMember(
AdministrationStrings
.InitializeData, BindingFlags.GetField | BindingFlags.NonPublic | BindingFlags.Instance, null, traceListener, null, CultureInfo.InvariantCulture);
91
string[] supportedAttributes = (string[])type.InvokeMember(
AdministrationStrings
.GetSupportedAttributes, BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance, null, traceListener, null, CultureInfo.InvariantCulture);
93
IWmiInstance argumentWmiInstance = instance.NewInstance(
AdministrationStrings
.TraceListenerArgument);
94
argumentWmiInstance.SetProperty(
AdministrationStrings
.Name,
AdministrationStrings
.InitializeData);
95
argumentWmiInstance.SetProperty(
AdministrationStrings
.Value, initializeData);
102
argumentWmiInstance = instance.NewInstance(
AdministrationStrings
.TraceListenerArgument);
103
argumentWmiInstance.SetProperty(
AdministrationStrings
.Name, attribute);
104
argumentWmiInstance.SetProperty(
AdministrationStrings
.Value, traceListener.Attributes[attribute]);
108
traceListenerWmiInstance.SetProperty(
AdministrationStrings
.TraceListenerArguments, traceListenerArguments.ToArray());
121
instance.SetProperty(
AdministrationStrings
.ServiceModelTraceListeners, CreateListenersInfo(traceSource, instance));
126
instance.SetProperty(
AdministrationStrings
.MessageLoggingTraceListeners, CreateListenersInfo(traceSource, instance));
138
if ((int)instance.GetProperty(
AdministrationStrings
.ProcessId) == AppDomainInfo.Current.ProcessId
139
&& String.Equals((string)instance.GetProperty(
AdministrationStrings
.Name), AppDomainInfo.Current.Name, StringComparison.Ordinal))
143
SourceLevels newLevel = (SourceLevels)Enum.Parse(typeof(SourceLevels), (string)instance.GetProperty(
AdministrationStrings
.TraceLevel));
156
bool logMalformedMessages = (bool)instance.GetProperty(
AdministrationStrings
.LogMalformedMessages);
169
bool logMessagesAtServiceLevel = (bool)instance.GetProperty(
AdministrationStrings
.LogMessagesAtServiceLevel);
182
bool logMessagesAtTransportLevel = (bool)instance.GetProperty(
AdministrationStrings
.LogMessagesAtTransportLevel);
System\ServiceModel\Administration\ContractInstanceProvider.cs (46)
23
AdministrationStrings
.Contract +
25
AdministrationStrings
.Name +
27
AdministrationStrings
.ProcessId +
29
AdministrationStrings
.AppDomainId +
50
contract.SetProperty(
AdministrationStrings
.Type, contractDescription.ContractType.Name);
53
contract.SetProperty(
AdministrationStrings
.CallbackContract, ContractReference(contractDescription.CallbackContractType.Name));
56
contract.SetProperty(
AdministrationStrings
.Name, contractDescription.Name);
57
contract.SetProperty(
AdministrationStrings
.Namespace, contractDescription.Namespace);
58
contract.SetProperty(
AdministrationStrings
.SessionMode, contractDescription.SessionMode.ToString());
65
IWmiInstance operation = contract.NewInstance(
AdministrationStrings
.Operation);
70
contract.SetProperty(
AdministrationStrings
.Operations, operations);
76
operation.SetProperty(
AdministrationStrings
.Name, operationDescription.Name);
77
operation.SetProperty(
AdministrationStrings
.Action, FixWildcardAction(operationDescription.Messages[0].Action));
80
operation.SetProperty(
AdministrationStrings
.ReplyAction, FixWildcardAction(operationDescription.Messages[1].Action));
82
operation.SetProperty(
AdministrationStrings
.IsOneWay, operationDescription.IsOneWay);
83
operation.SetProperty(
AdministrationStrings
.IsInitiating, operationDescription.IsInitiating);
84
operation.SetProperty(
AdministrationStrings
.IsTerminating, operationDescription.IsTerminating);
85
operation.SetProperty(
AdministrationStrings
.AsyncPattern, null != operationDescription.BeginMethod);
90
operation.SetProperty(
AdministrationStrings
.ReturnType, operationDescription.SyncMethod.ReturnType.Name);
92
operation.SetProperty(
AdministrationStrings
.MethodSignature, operationDescription.SyncMethod.ToString());
99
operation.SetProperty(
AdministrationStrings
.ParameterTypes, parameterTypes);
101
operation.SetProperty(
AdministrationStrings
.IsCallback, operationDescription.Messages[0].Direction == MessageDirection.Output);
119
operation.SetProperty(
AdministrationStrings
.Behaviors, behaviorInstances.ToArray());
134
operation.SetProperty(
AdministrationStrings
.Behaviors, behaviorInstances.ToArray());
146
instance.SetProperty(
AdministrationStrings
.QueuedDeliveryRequirements, specificBehavior.QueuedDeliveryRequirements.ToString());
147
instance.SetProperty(
AdministrationStrings
.RequireOrderedDelivery, specificBehavior.RequireOrderedDelivery);
150
instance.SetProperty(
AdministrationStrings
.TargetContract, specificBehavior.TargetContract.ToString());
165
instance.SetProperty(
AdministrationStrings
.Type, behavior.GetType().FullName);
178
instance.SetProperty(
AdministrationStrings
.IgnoreExtensionDataObject, specificBehavior.IgnoreExtensionDataObject);
179
instance.SetProperty(
AdministrationStrings
.MaxItemsInObjectGraph, specificBehavior.MaxItemsInObjectGraph);
182
instance.SetProperty(
AdministrationStrings
.Style, specificBehavior.DataContractFormatAttribute.Style.ToString());
189
instance.SetProperty(
AdministrationStrings
.AutoDisposeParameters, specificBehavior.AutoDisposeParameters);
190
instance.SetProperty(
AdministrationStrings
.Impersonation, specificBehavior.Impersonation.ToString());
191
instance.SetProperty(
AdministrationStrings
.ReleaseInstanceMode, specificBehavior.ReleaseInstanceMode.ToString());
192
instance.SetProperty(
AdministrationStrings
.TransactionAutoComplete, specificBehavior.TransactionAutoComplete);
193
instance.SetProperty(
AdministrationStrings
.TransactionScopeRequired, specificBehavior.TransactionScopeRequired);
199
instance.SetProperty(
AdministrationStrings
.TransactionFlowOption, specificBehavior.Transactions.ToString());
207
instance.SetProperty(
AdministrationStrings
.Style, specificBehavior.XmlSerializerFormatAttribute.Style.ToString());
208
instance.SetProperty(
AdministrationStrings
.Use, specificBehavior.XmlSerializerFormatAttribute.Use.ToString());
209
instance.SetProperty(
AdministrationStrings
.SupportFaults, specificBehavior.XmlSerializerFormatAttribute.SupportFaults.ToString());
224
instance.SetProperty(
AdministrationStrings
.Type, behavior.GetType().FullName);
257
instance.SetProperty(
AdministrationStrings
.ProcessId, processId);
258
instance.SetProperty(
AdministrationStrings
.AppDomainId, appDomainId);
272
if ((int)contract.GetProperty(
AdministrationStrings
.ProcessId) == AppDomainInfo.Current.ProcessId
273
&& (int)contract.GetProperty(
AdministrationStrings
.AppDomainId) == AppDomainInfo.Current.Id)
275
string contractName = (string)contract.GetProperty(
AdministrationStrings
.Name);
System\ServiceModel\Administration\EndpointInstanceProvider.cs (194)
31
AdministrationStrings
.Endpoint +
33
AdministrationStrings
.ListenUri +
35
AdministrationStrings
.ContractName +
37
AdministrationStrings
.AppDomainId +
39
AdministrationStrings
.ProcessId +
53
if (!
AdministrationStrings
.Localhost.Equals(host, StringComparison.OrdinalIgnoreCase)
57
"\\\\{0}\\" +
AdministrationStrings
.IndigoNamespace + ":",
73
IWmiInstance binding = instance.NewInstance(
AdministrationStrings
.Binding);
81
binding.SetProperty(
AdministrationStrings
.BindingElements, bindings);
82
binding.SetProperty(
AdministrationStrings
.Name, endpoint.Binding.Name);
83
binding.SetProperty(
AdministrationStrings
.Namespace, endpoint.Binding.Namespace);
84
binding.SetProperty(
AdministrationStrings
.CloseTimeout, endpoint.Binding.CloseTimeout);
85
binding.SetProperty(
AdministrationStrings
.Scheme, endpoint.Binding.Scheme);
86
binding.SetProperty(
AdministrationStrings
.OpenTimeout, endpoint.Binding.OpenTimeout);
87
binding.SetProperty(
AdministrationStrings
.ReceiveTimeout, endpoint.Binding.ReceiveTimeout);
88
binding.SetProperty(
AdministrationStrings
.SendTimeout, endpoint.Binding.SendTimeout);
90
instance.SetProperty(
AdministrationStrings
.Binding, binding);
105
ProviderBase.FillCollectionInfo(headers, instance,
AdministrationStrings
.AddressHeaders);
106
instance.SetProperty(
AdministrationStrings
.Address, endpoint.Address == null ? String.Empty : endpoint.Address.ToString());
107
instance.SetProperty(
AdministrationStrings
.ListenUri, endpoint.ListenUri == null ? String.Empty : endpoint.ListenUri.ToString());
108
instance.SetProperty(
AdministrationStrings
.Identity, endpoint.Identity == null ? String.Empty : endpoint.Identity.ToString());
116
instance.SetProperty(
AdministrationStrings
.Contract, ContractInstanceProvider.ContractReference(endpoint.Contract.Name));
123
instance.SetProperty(
AdministrationStrings
.CounterInstanceName, PerformanceCounters.PerformanceCountersEnabled ? EndpointPerformanceCounters.GetFriendlyInstanceName(endpoint.ServiceName, endpoint.Contract.Name, endpoint.Address.AbsoluteUri.ToUpperInvariant()) : String.Empty);
124
instance.SetProperty(
AdministrationStrings
.Name, endpoint.Name);
125
instance.SetProperty(
AdministrationStrings
.ContractName, endpoint.Contract.Name);
152
instance.SetProperty(
AdministrationStrings
.ManualAddressing, transport.ManualAddressing);
153
instance.SetProperty(
AdministrationStrings
.MaxReceivedMessageSize, transport.MaxReceivedMessageSize);
154
instance.SetProperty(
AdministrationStrings
.MaxBufferPoolSize, transport.MaxBufferPoolSize);
155
instance.SetProperty(
AdministrationStrings
.Scheme, transport.Scheme);
160
instance.SetProperty(
AdministrationStrings
.ConnectionBufferSize, connectionOriented.ConnectionBufferSize);
161
instance.SetProperty(
AdministrationStrings
.HostNameComparisonMode, connectionOriented.HostNameComparisonMode.ToString());
162
instance.SetProperty(
AdministrationStrings
.ChannelInitializationTimeout, connectionOriented.ChannelInitializationTimeout);
163
instance.SetProperty(
AdministrationStrings
.MaxBufferSize, connectionOriented.MaxBufferSize);
164
instance.SetProperty(
AdministrationStrings
.MaxPendingConnections, connectionOriented.MaxPendingConnections);
165
instance.SetProperty(
AdministrationStrings
.MaxOutputDelay, connectionOriented.MaxOutputDelay);
166
instance.SetProperty(
AdministrationStrings
.MaxPendingAccepts, connectionOriented.MaxPendingAccepts);
167
instance.SetProperty(
AdministrationStrings
.TransferMode, connectionOriented.TransferMode.ToString());
172
instance.SetProperty(
AdministrationStrings
.ListenBacklog, tcp.ListenBacklog);
173
instance.SetProperty(
AdministrationStrings
.PortSharingEnabled, tcp.PortSharingEnabled);
174
instance.SetProperty(
AdministrationStrings
.TeredoEnabled, tcp.TeredoEnabled);
176
IWmiInstance connectionPool = instance.NewInstance(
AdministrationStrings
.TcpConnectionPoolSettings);
177
connectionPool.SetProperty(
AdministrationStrings
.GroupName, tcp.ConnectionPoolSettings.GroupName);
178
connectionPool.SetProperty(
AdministrationStrings
.IdleTimeout, tcp.ConnectionPoolSettings.IdleTimeout);
179
connectionPool.SetProperty(
AdministrationStrings
.LeaseTimeout, tcp.ConnectionPoolSettings.LeaseTimeout);
180
connectionPool.SetProperty(
AdministrationStrings
.MaxOutboundConnectionsPerEndpoint, tcp.ConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint);
182
instance.SetProperty(
AdministrationStrings
.ConnectionPoolSettings, connectionPool);
189
IWmiInstance connectionPool = instance.NewInstance(
AdministrationStrings
.NamedPipeConnectionPoolSettings);
191
connectionPool.SetProperty(
AdministrationStrings
.GroupName, namedPipe.ConnectionPoolSettings.GroupName);
192
connectionPool.SetProperty(
AdministrationStrings
.IdleTimeout, namedPipe.ConnectionPoolSettings.IdleTimeout);
193
connectionPool.SetProperty(
AdministrationStrings
.MaxOutboundConnectionsPerEndpoint, namedPipe.ConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint);
195
instance.SetProperty(
AdministrationStrings
.ConnectionPoolSettings, connectionPool);
201
instance.SetProperty(
AdministrationStrings
.AllowCookies, http.AllowCookies);
202
instance.SetProperty(
AdministrationStrings
.AuthenticationScheme, http.AuthenticationScheme.ToString());
204
instance.SetProperty(
AdministrationStrings
.BypassProxyOnLocal, http.BypassProxyOnLocal);
205
instance.SetProperty(
AdministrationStrings
.DecompressionEnabled, http.DecompressionEnabled);
206
instance.SetProperty(
AdministrationStrings
.HostNameComparisonMode, http.HostNameComparisonMode.ToString());
207
instance.SetProperty(
AdministrationStrings
.KeepAliveEnabled, http.KeepAliveEnabled);
208
instance.SetProperty(
AdministrationStrings
.MaxBufferSize, http.MaxBufferSize);
211
instance.SetProperty(
AdministrationStrings
.ProxyAddress, http.ProxyAddress.AbsoluteUri.ToString());
213
instance.SetProperty(
AdministrationStrings
.ProxyAuthenticationScheme, http.ProxyAuthenticationScheme.ToString());
214
instance.SetProperty(
AdministrationStrings
.Realm, http.Realm);
215
instance.SetProperty(
AdministrationStrings
.TransferMode, http.TransferMode.ToString());
216
instance.SetProperty(
AdministrationStrings
.UnsafeConnectionNtlmAuthentication, http.UnsafeConnectionNtlmAuthentication);
217
instance.SetProperty(
AdministrationStrings
.UseDefaultWebProxy, http.UseDefaultWebProxy);
224
instance.SetProperty(
AdministrationStrings
.RequireClientCertificate, https.RequireClientCertificate);
233
instance.SetProperty(
AdministrationStrings
.CustomDeadLetterQueue, msmq.CustomDeadLetterQueue.AbsoluteUri.ToString());
235
instance.SetProperty(
AdministrationStrings
.DeadLetterQueue, msmq.DeadLetterQueue);
236
instance.SetProperty(
AdministrationStrings
.Durable, msmq.Durable);
237
instance.SetProperty(
AdministrationStrings
.ExactlyOnce, msmq.ExactlyOnce);
238
instance.SetProperty(
AdministrationStrings
.MaxRetryCycles, msmq.MaxRetryCycles);
239
instance.SetProperty(
AdministrationStrings
.ReceiveContextEnabled, msmq.ReceiveContextEnabled);
240
instance.SetProperty(
AdministrationStrings
.ReceiveErrorHandling, msmq.ReceiveErrorHandling);
241
instance.SetProperty(
AdministrationStrings
.ReceiveRetryCount, msmq.ReceiveRetryCount);
242
instance.SetProperty(
AdministrationStrings
.RetryCycleDelay, msmq.RetryCycleDelay);
243
instance.SetProperty(
AdministrationStrings
.TimeToLive, msmq.TimeToLive);
244
instance.SetProperty(
AdministrationStrings
.UseSourceJournal, msmq.UseSourceJournal);
245
instance.SetProperty(
AdministrationStrings
.UseMsmqTracing, msmq.UseMsmqTracing);
246
instance.SetProperty(
AdministrationStrings
.ValidityDuration, msmq.ValidityDuration);
251
instance.SetProperty(
AdministrationStrings
.MaxPoolSize, msmqTransport.MaxPoolSize);
252
instance.SetProperty(
AdministrationStrings
.QueueTransferProtocol, msmqTransport.QueueTransferProtocol);
253
instance.SetProperty(
AdministrationStrings
.UseActiveDirectory, msmqTransport.UseActiveDirectory);
258
instance.SetProperty(
AdministrationStrings
.SerializationFormat, msmqIntegration.SerializationFormat.ToString());
264
instance.SetProperty(
AdministrationStrings
.ListenIPAddress, peer.ListenIPAddress);
265
instance.SetProperty(
AdministrationStrings
.Port, peer.Port);
267
IWmiInstance securitySettings = instance.NewInstance(
AdministrationStrings
.PeerSecuritySettings);
268
securitySettings.SetProperty(
AdministrationStrings
.PeerSecurityMode, peer.Security.Mode.ToString());
269
IWmiInstance transportSecuritySettings = securitySettings.NewInstance(
AdministrationStrings
.PeerTransportSecuritySettings);
270
transportSecuritySettings.SetProperty(
AdministrationStrings
.PeerTransportCredentialType, peer.Security.Transport.CredentialType.ToString());
271
securitySettings.SetProperty(
AdministrationStrings
.Transport, transportSecuritySettings);
272
instance.SetProperty(
AdministrationStrings
.Security, securitySettings);
278
instance.SetProperty(
AdministrationStrings
.ReferralPolicy, baseResolver.ReferralPolicy.ToString());
283
instance.SetProperty(
AdministrationStrings
.Address, specificElement.Address.ToString());
285
instance.SetProperty(
AdministrationStrings
.Binding, specificElement.Binding.ToString());
292
instance.SetProperty(
AdministrationStrings
.AcknowledgementInterval, specificElement.AcknowledgementInterval);
293
instance.SetProperty(
AdministrationStrings
.FlowControlEnabled, specificElement.FlowControlEnabled);
294
instance.SetProperty(
AdministrationStrings
.InactivityTimeout, specificElement.InactivityTimeout);
295
instance.SetProperty(
AdministrationStrings
.MaxPendingChannels, specificElement.MaxPendingChannels);
296
instance.SetProperty(
AdministrationStrings
.MaxRetryCount, specificElement.MaxRetryCount);
297
instance.SetProperty(
AdministrationStrings
.MaxTransferWindowSize, specificElement.MaxTransferWindowSize);
298
instance.SetProperty(
AdministrationStrings
.Ordered, specificElement.Ordered);
299
instance.SetProperty(
AdministrationStrings
.ReliableMessagingVersion, specificElement.ReliableMessagingVersion.ToString());
304
instance.SetProperty(
AdministrationStrings
.AllowInsecureTransport, specificElement.AllowInsecureTransport);
305
instance.SetProperty(
AdministrationStrings
.DefaultAlgorithmSuite, specificElement.DefaultAlgorithmSuite.ToString());
306
instance.SetProperty(
AdministrationStrings
.EnableUnsecuredResponse, specificElement.EnableUnsecuredResponse);
307
instance.SetProperty(
AdministrationStrings
.IncludeTimestamp, specificElement.IncludeTimestamp);
308
instance.SetProperty(
AdministrationStrings
.KeyEntropyMode, specificElement.KeyEntropyMode.ToString());
309
instance.SetProperty(
AdministrationStrings
.SecurityHeaderLayout, specificElement.SecurityHeaderLayout.ToString());
310
instance.SetProperty(
AdministrationStrings
.MessageSecurityVersion, specificElement.MessageSecurityVersion.ToString());
312
IWmiInstance localServiceSecuritySettings = instance.NewInstance(
AdministrationStrings
.LocalServiceSecuritySettings);
313
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.DetectReplays, specificElement.LocalServiceSettings.DetectReplays);
314
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.InactivityTimeout, specificElement.LocalServiceSettings.InactivityTimeout);
315
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.IssuedCookieLifetime, specificElement.LocalServiceSettings.IssuedCookieLifetime);
316
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.MaxCachedCookies, specificElement.LocalServiceSettings.MaxCachedCookies);
317
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.MaxClockSkew, specificElement.LocalServiceSettings.MaxClockSkew);
318
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.MaxPendingSessions, specificElement.LocalServiceSettings.MaxPendingSessions);
319
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.MaxStatefulNegotiations, specificElement.LocalServiceSettings.MaxStatefulNegotiations);
320
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.NegotiationTimeout, specificElement.LocalServiceSettings.NegotiationTimeout);
321
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.ReconnectTransportOnFailure, specificElement.LocalServiceSettings.ReconnectTransportOnFailure);
322
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.ReplayCacheSize, specificElement.LocalServiceSettings.ReplayCacheSize);
323
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.ReplayWindow, specificElement.LocalServiceSettings.ReplayWindow);
324
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.SessionKeyRenewalInterval, specificElement.LocalServiceSettings.SessionKeyRenewalInterval);
325
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.SessionKeyRolloverInterval, specificElement.LocalServiceSettings.SessionKeyRolloverInterval);
326
localServiceSecuritySettings.SetProperty(
AdministrationStrings
.TimestampValidityDuration, specificElement.LocalServiceSettings.TimestampValidityDuration);
327
instance.SetProperty(
AdministrationStrings
.LocalServiceSecuritySettings, localServiceSecuritySettings);
333
instance.SetProperty(
AdministrationStrings
.MessageProtectionOrder, specificElement1.MessageProtectionOrder.ToString());
334
instance.SetProperty(
AdministrationStrings
.RequireSignatureConfirmation, specificElement1.RequireSignatureConfirmation);
340
instance.SetProperty(
AdministrationStrings
.MessageProtectionOrder, specificElement1.MessageProtectionOrder.ToString());
341
instance.SetProperty(
AdministrationStrings
.RequireSignatureConfirmation, specificElement1.RequireSignatureConfirmation);
348
instance.SetProperty(
AdministrationStrings
.ProtectionLevel, specificElement.ProtectionLevel.ToString());
353
instance.SetProperty(
AdministrationStrings
.RequireClientCertificate, specificElement.RequireClientCertificate);
360
instance.SetProperty(
AdministrationStrings
.ClientBaseAddress, specificElement.ClientBaseAddress.AbsoluteUri);
366
IWmiInstance channelPoolSettings = instance.NewInstance(
AdministrationStrings
.ChannelPoolSettings);
367
channelPoolSettings.SetProperty(
AdministrationStrings
.IdleTimeout, oneWay.ChannelPoolSettings.IdleTimeout);
368
channelPoolSettings.SetProperty(
AdministrationStrings
.LeaseTimeout, oneWay.ChannelPoolSettings.LeaseTimeout);
369
channelPoolSettings.SetProperty(
AdministrationStrings
.MaxOutboundChannelsPerEndpoint, oneWay.ChannelPoolSettings.MaxOutboundChannelsPerEndpoint);
370
instance.SetProperty(
AdministrationStrings
.ChannelPoolSettings, channelPoolSettings);
371
instance.SetProperty(
AdministrationStrings
.PacketRoutable, oneWay.PacketRoutable);
372
instance.SetProperty(
AdministrationStrings
.MaxAcceptedChannels, oneWay.MaxAcceptedChannels);
378
instance.SetProperty(
AdministrationStrings
.MessageVersion, encodingElement.MessageVersion.ToString());
383
instance.SetProperty(
AdministrationStrings
.MaxSessionSize, specificElement.MaxSessionSize);
384
instance.SetProperty(
AdministrationStrings
.MaxReadPoolSize, specificElement.MaxReadPoolSize);
385
instance.SetProperty(
AdministrationStrings
.MaxWritePoolSize, specificElement.MaxWritePoolSize);
390
instance.SetProperty(
AdministrationStrings
.CompressionFormat, specificElement.CompressionFormat.ToString());
395
instance.SetProperty(
AdministrationStrings
.Encoding, specificElement.WriteEncoding.WebName);
396
instance.SetProperty(
AdministrationStrings
.MaxReadPoolSize, specificElement.MaxReadPoolSize);
397
instance.SetProperty(
AdministrationStrings
.MaxWritePoolSize, specificElement.MaxWritePoolSize);
406
instance.SetProperty(
AdministrationStrings
.Encoding, specificElement.WriteEncoding.WebName);
407
instance.SetProperty(
AdministrationStrings
.MessageVersion, specificElement.MessageVersion.ToString());
408
instance.SetProperty(
AdministrationStrings
.MaxReadPoolSize, specificElement.MaxReadPoolSize);
409
instance.SetProperty(
AdministrationStrings
.MaxWritePoolSize, specificElement.MaxWritePoolSize);
419
instance.SetProperty(
AdministrationStrings
.TransactionFlow, specificElement.Transactions);
420
instance.SetProperty(
AdministrationStrings
.TransactionProtocol, specificElement.TransactionProtocol.ToString());
421
instance.SetProperty(
AdministrationStrings
.AllowWildcardAction, specificElement.AllowWildcardAction);
426
instance.SetProperty(
AdministrationStrings
.Url, specificElement.Url.ToString());
427
instance.SetProperty(
AdministrationStrings
.PrivacyNoticeVersion, specificElement.Version);
445
instance.SetProperty(
AdministrationStrings
.Behaviors, behaviors.ToArray());
458
instance.SetProperty(
AdministrationStrings
.SupportInteractive, specificBehavior.SupportInteractive);
461
instance.SetProperty(
AdministrationStrings
.ClientCertificate, specificBehavior.ClientCertificate.Certificate.ToString());
467
AdministrationStrings
.CacheIssuedTokens, specificBehavior.IssuedToken.CacheIssuedTokens);
468
instance.SetProperty(
AdministrationStrings
.IssuedToken, result);
474
AdministrationStrings
.AllowedImpersonationLevel, specificBehavior.HttpDigest.AllowedImpersonationLevel.ToString());
475
instance.SetProperty(
AdministrationStrings
.HttpDigest, result);
479
instance.SetProperty(
AdministrationStrings
.Peer, specificBehavior.Peer.Certificate.ToString(true));
483
instance.SetProperty(
AdministrationStrings
.UserName, "********");
491
AdministrationStrings
.AllowedImpersonationLevel,
493
AdministrationStrings
.AllowNtlm,
497
instance.SetProperty(
AdministrationStrings
.Windows, result);
517
instance.SetProperty(
AdministrationStrings
.MaxBatchSize, ((TransactedBatchingBehavior)behavior).MaxBatchSize);
522
instance.SetProperty(
AdministrationStrings
.Uri, ((ClientViaBehavior)behavior).Uri.ToString());
536
instance.SetProperty(
AdministrationStrings
.Type, behavior.GetType().FullName);
544
IWmiInstance readerQuotasInstance = instance.NewInstance(
AdministrationStrings
.XmlDictionaryReaderQuotas);
545
readerQuotasInstance.SetProperty(
AdministrationStrings
.MaxArrayLength, readerQuotas.MaxArrayLength);
546
readerQuotasInstance.SetProperty(
AdministrationStrings
.MaxBytesPerRead, readerQuotas.MaxBytesPerRead);
547
readerQuotasInstance.SetProperty(
AdministrationStrings
.MaxDepth, readerQuotas.MaxDepth);
548
readerQuotasInstance.SetProperty(
AdministrationStrings
.MaxNameTableCharCount, readerQuotas.MaxNameTableCharCount);
549
readerQuotasInstance.SetProperty(
AdministrationStrings
.MaxStringContentLength, readerQuotas.MaxStringContentLength);
550
instance.SetProperty(
AdministrationStrings
.ReaderQuotas, readerQuotasInstance);
555
IWmiInstance extendedProtectionPolicy = instance.NewInstance(
AdministrationStrings
.ExtendedProtectionPolicy);
556
extendedProtectionPolicy.SetProperty(
AdministrationStrings
.PolicyEnforcement, policy.PolicyEnforcement.ToString());
557
extendedProtectionPolicy.SetProperty(
AdministrationStrings
.ProtectionScenario, policy.ProtectionScenario.ToString());
566
extendedProtectionPolicy.SetProperty(
AdministrationStrings
.CustomServiceNames, serviceNames.ToArray());
571
extendedProtectionPolicy.SetProperty(
AdministrationStrings
.CustomChannelBinding, policy.CustomChannelBinding.GetType().ToString());
574
instance.SetProperty(
AdministrationStrings
.ExtendedProtectionPolicy, extendedProtectionPolicy);
588
instance.SetProperty(
AdministrationStrings
.ProcessId, processId);
589
instance.SetProperty(
AdministrationStrings
.AppDomainId, appDomainId);
604
string address = (string)instance.GetProperty(
AdministrationStrings
.ListenUri);
605
string contractName = (string)instance.GetProperty(
AdministrationStrings
.ContractName);
624
if (method.MethodName ==
AdministrationStrings
.GetOperationCounterInstanceName)
626
object argument = method.GetParameter(
AdministrationStrings
.Operation);
630
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WbemInvalidParameterException(
AdministrationStrings
.Operation));
663
string address = (string)endpointInstance.GetProperty(
AdministrationStrings
.ListenUri);
664
string contractName = (string)endpointInstance.GetProperty(
AdministrationStrings
.ContractName);
679
return (int)instance.GetProperty(
AdministrationStrings
.ProcessId) == AppDomainInfo.Current.ProcessId
680
&& (int)instance.GetProperty(
AdministrationStrings
.AppDomainId) == AppDomainInfo.Current.Id;
System\ServiceModel\Administration\ManagementExtension.cs (8)
119
WbemProvider wmi = new WbemProvider(
AdministrationStrings
.IndigoNamespace,
AdministrationStrings
.IndigoAppName);
120
wmi.Register(
AdministrationStrings
.AppDomainInfo, new AppDomainInstanceProvider());
121
wmi.Register(
AdministrationStrings
.Service, new ServiceInstanceProvider());
122
wmi.Register(
AdministrationStrings
.Contract, new ContractInstanceProvider());
123
wmi.Register(
AdministrationStrings
.Endpoint, new EndpointInstanceProvider());
124
wmi.Register(
AdministrationStrings
.ServiceAppDomain, new ServiceAppDomainAssociationProvider());
125
wmi.Register(
AdministrationStrings
.ServiceToEndpointAssociation, new ServiceEndpointAssociationProvider());
System\ServiceModel\Administration\ServiceAppDomainAssociationProvider.cs (4)
19
instance.SetProperty(
AdministrationStrings
.AppDomainInfo, AppDomainInstanceProvider.GetReference());
20
instance.SetProperty(
AdministrationStrings
.Service, ServiceInstanceProvider.GetReference(info));
29
string serviceRef = instance.GetProperty(
AdministrationStrings
.Service) as string;
30
string appDomainInfoRef = instance.GetProperty(
AdministrationStrings
.AppDomainInfo) as string;
System\ServiceModel\Administration\ServiceEndpointAssociationProvider.cs (4)
26
instance.SetProperty(
AdministrationStrings
.Endpoint, endpointRef);
27
instance.SetProperty(
AdministrationStrings
.Service, serviceRef);
36
string serviceRef = instance.GetProperty(
AdministrationStrings
.Service) as string;
37
string endpointRef = instance.GetProperty(
AdministrationStrings
.Endpoint) as string;
System\ServiceModel\Administration\ServiceInstanceProvider.cs (79)
29
instance.SetProperty(
AdministrationStrings
.DistinguishedName, info.DistinguishedName);
30
instance.SetProperty(
AdministrationStrings
.ProcessId, processId);
41
if ((int)instance.GetProperty(
AdministrationStrings
.ProcessId) == AppDomainInfo.Current.ProcessId)
45
if (String.Equals((string)instance.GetProperty(
AdministrationStrings
.DistinguishedName), info.DistinguishedName, StringComparison.OrdinalIgnoreCase))
60
return String.Format(CultureInfo.InvariantCulture,
AdministrationStrings
.Service +
62
AdministrationStrings
.DistinguishedName +
64
AdministrationStrings
.ProcessId +
73
IWmiInstance appDomainInfo = instance.NewInstance(
AdministrationStrings
.AppDomainInfo);
95
instance.SetProperty(
AdministrationStrings
.Behaviors, behaviors.ToArray());
113
IWmiInstance channelInstance = instance.NewInstance(
AdministrationStrings
.Channel);
120
instance.SetProperty(
AdministrationStrings
.Channels, instances.ToArray());
127
ProviderBase.FillCollectionInfo(info.Service.Extensions, instance,
AdministrationStrings
.Extensions);
134
ProviderBase.FillCollectionInfo(info.Service.BaseAddresses, instance,
AdministrationStrings
.BaseAddresses);
135
instance.SetProperty(
AdministrationStrings
.CounterInstanceName, PerformanceCounters.PerformanceCountersEnabled ? ServicePerformanceCounters.GetFriendlyInstanceName(info.Service) : String.Empty);
136
instance.SetProperty(
AdministrationStrings
.ConfigurationName, info.ConfigurationName);
137
instance.SetProperty(
AdministrationStrings
.DistinguishedName, info.DistinguishedName);
138
instance.SetProperty(
AdministrationStrings
.Name, info.Name);
139
instance.SetProperty(
AdministrationStrings
.Namespace, info.Namespace);
140
instance.SetProperty(
AdministrationStrings
.Metadata, info.Metadata);
141
instance.SetProperty(
AdministrationStrings
.Opened, ManagementExtension.GetTimeOpened(info.Service));
158
instance.SetProperty(
AdministrationStrings
.RequirementsMode, specificBehavior.RequirementsMode.ToString());
168
instance.SetProperty(
AdministrationStrings
.ClientCertificate, result);
196
instance.SetProperty(
AdministrationStrings
.IssuedTokenAuthentication, result);
202
instance.SetProperty(
AdministrationStrings
.Peer, result);
214
instance.SetProperty(
AdministrationStrings
.SecureConversationAuthentication, result);
218
instance.SetProperty(
AdministrationStrings
.ServiceCertificate, specificBehavior.ServiceCertificate.Certificate.ToString());
222
instance.SetProperty(
AdministrationStrings
.UserNameAuthentication, String.Format(CultureInfo.InvariantCulture, "{0}: {1}",
AdministrationStrings
.ValidationMode, specificBehavior.UserNameAuthentication.UserNamePasswordValidationMode.ToString()));
226
instance.SetProperty(
AdministrationStrings
.WindowsAuthentication, String.Format(CultureInfo.InvariantCulture, "{0}: {1}",
AdministrationStrings
.AllowAnonymous, specificBehavior.WindowsAuthentication.AllowAnonymousLogons.ToString()));
233
instance.SetProperty(
AdministrationStrings
.ImpersonateCallerForAllOperations, specificBehavior.ImpersonateCallerForAllOperations);
234
instance.SetProperty(
AdministrationStrings
.ImpersonateOnSerializingReply, specificBehavior.ImpersonateOnSerializingReply);
237
instance.SetProperty(
AdministrationStrings
.RoleProvider, specificBehavior.RoleProvider.ToString());
241
instance.SetProperty(
AdministrationStrings
.ServiceAuthorizationManager, specificBehavior.ServiceAuthorizationManager.ToString());
243
instance.SetProperty(
AdministrationStrings
.PrincipalPermissionMode, specificBehavior.PrincipalPermissionMode.ToString());
249
instance.SetProperty(
AdministrationStrings
.AuditLogLocation, specificBehavior.AuditLogLocation.ToString());
250
instance.SetProperty(
AdministrationStrings
.SuppressAuditFailure, specificBehavior.SuppressAuditFailure);
251
instance.SetProperty(
AdministrationStrings
.ServiceAuthorizationAuditLevel, specificBehavior.ServiceAuthorizationAuditLevel.ToString());
252
instance.SetProperty(
AdministrationStrings
.MessageAuthenticationAuditLevel, specificBehavior.MessageAuthenticationAuditLevel.ToString());
258
instance.SetProperty(
AdministrationStrings
.AddressFilterMode, serviceBehavior.AddressFilterMode.ToString());
259
instance.SetProperty(
AdministrationStrings
.AutomaticSessionShutdown, serviceBehavior.AutomaticSessionShutdown);
260
instance.SetProperty(
AdministrationStrings
.ConcurrencyMode, serviceBehavior.ConcurrencyMode.ToString());
261
instance.SetProperty(
AdministrationStrings
.ConfigurationName, serviceBehavior.ConfigurationName);
262
instance.SetProperty(
AdministrationStrings
.EnsureOrderedDispatch, serviceBehavior.EnsureOrderedDispatch);
263
instance.SetProperty(
AdministrationStrings
.IgnoreExtensionDataObject, serviceBehavior.IgnoreExtensionDataObject);
264
instance.SetProperty(
AdministrationStrings
.IncludeExceptionDetailInFaults, serviceBehavior.IncludeExceptionDetailInFaults);
265
instance.SetProperty(
AdministrationStrings
.InstanceContextMode, serviceBehavior.InstanceContextMode.ToString());
266
instance.SetProperty(
AdministrationStrings
.MaxItemsInObjectGraph, serviceBehavior.MaxItemsInObjectGraph);
267
instance.SetProperty(
AdministrationStrings
.Name, serviceBehavior.Name);
268
instance.SetProperty(
AdministrationStrings
.Namespace, serviceBehavior.Namespace);
269
instance.SetProperty(
AdministrationStrings
.ReleaseServiceInstanceOnTransactionComplete, serviceBehavior.ReleaseServiceInstanceOnTransactionComplete);
270
instance.SetProperty(
AdministrationStrings
.TransactionAutoCompleteOnSessionClose, serviceBehavior.TransactionAutoCompleteOnSessionClose);
271
instance.SetProperty(
AdministrationStrings
.TransactionIsolationLevel, serviceBehavior.TransactionIsolationLevel.ToString());
274
instance.SetProperty(
AdministrationStrings
.TransactionTimeout, serviceBehavior.TransactionTimeoutTimespan);
276
instance.SetProperty(
AdministrationStrings
.UseSynchronizationContext, serviceBehavior.UseSynchronizationContext);
277
instance.SetProperty(
AdministrationStrings
.ValidateMustUnderstand, serviceBehavior.ValidateMustUnderstand);
285
instance.SetProperty(
AdministrationStrings
.HttpHelpPageUrl, specificBehavior.HttpHelpPageUrl.ToString());
287
instance.SetProperty(
AdministrationStrings
.HttpHelpPageEnabled, specificBehavior.HttpHelpPageEnabled);
290
instance.SetProperty(
AdministrationStrings
.HttpsHelpPageUrl, specificBehavior.HttpsHelpPageUrl.ToString());
292
instance.SetProperty(
AdministrationStrings
.HttpsHelpPageEnabled, specificBehavior.HttpsHelpPageEnabled);
293
instance.SetProperty(
AdministrationStrings
.IncludeExceptionDetailInFaults, specificBehavior.IncludeExceptionDetailInFaults);
301
instance.SetProperty(
AdministrationStrings
.ExternalMetadataLocation, metadataBehavior.ExternalMetadataLocation.ToString());
303
instance.SetProperty(
AdministrationStrings
.HttpGetEnabled, metadataBehavior.HttpGetEnabled);
306
instance.SetProperty(
AdministrationStrings
.HttpGetUrl, metadataBehavior.HttpGetUrl.ToString());
308
instance.SetProperty(
AdministrationStrings
.HttpsGetEnabled, metadataBehavior.HttpsGetEnabled);
311
instance.SetProperty(
AdministrationStrings
.HttpsGetUrl, metadataBehavior.HttpsGetUrl.ToString());
319
instance.SetProperty(
AdministrationStrings
.MaxConcurrentCalls, throttlingBehavior.MaxConcurrentCalls);
320
instance.SetProperty(
AdministrationStrings
.MaxConcurrentSessions, throttlingBehavior.MaxConcurrentSessions);
321
instance.SetProperty(
AdministrationStrings
.MaxConcurrentInstances, throttlingBehavior.MaxConcurrentInstances);
327
instance.SetProperty(
AdministrationStrings
.TransactionTimeout, specificBehavior.TransactionTimeout);
341
instance.SetProperty(
AdministrationStrings
.Type, behavior.GetType().FullName);
350
IWmiInstance metadataExporterInstance = instance.NewInstance(
AdministrationStrings
.MetadataExporter);
351
metadataExporterInstance.SetProperty(
AdministrationStrings
.PolicyVersion, exporter.PolicyVersion.ToString());
352
instance.SetProperty(
AdministrationStrings
.MetadataExportInfo, metadataExporterInstance);
360
instance.SetProperty(
AdministrationStrings
.Type, channel.GetType().ToString());
366
instance.SetProperty(
AdministrationStrings
.RemoteAddress, uri);
369
instance.SetProperty(
AdministrationStrings
.RemoteEndpoint, remoteEndpoint);
370
instance.SetProperty(
AdministrationStrings
.LocalAddress, serviceChannel.LocalAddress == null ? String.Empty : serviceChannel.LocalAddress.ToString());
371
instance.SetProperty(
AdministrationStrings
.SessionId, ((IContextChannel)serviceChannel).SessionId);