Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ScriptResourceDefinition.cs / 1305376 / ScriptResourceDefinition.cs
namespace System.Web.UI { using System; using System.Reflection; public class ScriptResourceDefinition : IScriptResourceDefinition { private string _path; private string _debugPath; private string _resourceName; private Assembly _resourceAssembly; private string _cdnPath; private string _cdnDebugPath; private string _cdnPathSecureConnection; private string _cdnDebugPathSecureConnection; private bool _cdnSupportsSecureConnection; public string CdnDebugPath { get { return _cdnDebugPath ?? String.Empty; } set { _cdnDebugPath = value; } } public string CdnPath { get { return _cdnPath ?? String.Empty; } set { _cdnPath = value; } } internal string CdnDebugPathSecureConnection { get { if (_cdnDebugPathSecureConnection == null) { _cdnDebugPathSecureConnection = GetSecureCdnPath(CdnDebugPath); } return _cdnDebugPathSecureConnection; } } internal string CdnPathSecureConnection { get { if (_cdnPathSecureConnection == null) { _cdnPathSecureConnection = GetSecureCdnPath(CdnPath); } return _cdnPathSecureConnection; } } public bool CdnSupportsSecureConnection { get { return _cdnSupportsSecureConnection; } set { _cdnSupportsSecureConnection = value; } } public string DebugPath { get { return _debugPath ?? String.Empty; } set { _debugPath = value; } } public string Path { get { return _path ?? String.Empty; } set { _path = value; } } public Assembly ResourceAssembly { get { return _resourceAssembly; } set { _resourceAssembly = value; } } public string ResourceName { get { return _resourceName ?? String.Empty; } set { _resourceName = value; } } private string GetSecureCdnPath(string unsecurePath) { string cdnPath = String.Empty; if (!String.IsNullOrEmpty(unsecurePath)) { if (_cdnSupportsSecureConnection) { // convert 'http' to 'https' if (unsecurePath.StartsWith("http://", StringComparison.OrdinalIgnoreCase)) { cdnPath = "https" + unsecurePath.Substring(4); } else { // cdnPath is not 'http' so we cannot determine the secure path cdnPath = String.Empty; } } else { cdnPath = String.Empty; } } return cdnPath; } string IScriptResourceDefinition.CdnPathSecureConnection { get { return CdnPathSecureConnection; } } string IScriptResourceDefinition.CdnDebugPathSecureConnection { get { return CdnDebugPathSecureConnection; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NegotiateStream.cs
- ConnectionOrientedTransportBindingElement.cs
- DefaultSection.cs
- Monitor.cs
- TypeResolver.cs
- HandleRef.cs
- CreateUserErrorEventArgs.cs
- UTF32Encoding.cs
- ChameleonKey.cs
- InfiniteIntConverter.cs
- TextDecorationUnitValidation.cs
- OleDbPropertySetGuid.cs
- validationstate.cs
- TemplateControlParser.cs
- X509CertificateCollection.cs
- ApplicationBuildProvider.cs
- IsolatedStorageFile.cs
- TabletDeviceInfo.cs
- StrongNameMembershipCondition.cs
- XamlDesignerSerializationManager.cs
- MultitargetingHelpers.cs
- XmlSchemaSimpleTypeUnion.cs
- UnicastIPAddressInformationCollection.cs
- CapabilitiesUse.cs
- ChangeProcessor.cs
- StatusBarDesigner.cs
- Int64Animation.cs
- DocumentSequenceHighlightLayer.cs
- PrintDialog.cs
- DNS.cs
- EventDescriptor.cs
- DataListItemCollection.cs
- SessionPageStatePersister.cs
- EventWaitHandle.cs
- XmlElementAttribute.cs
- QuaternionRotation3D.cs
- SqlCommand.cs
- ParallelLoopState.cs
- DocumentSequence.cs
- DocumentViewerAutomationPeer.cs
- StoreItemCollection.Loader.cs
- MenuItemCollection.cs
- ComponentResourceKey.cs
- Config.cs
- Privilege.cs
- SQLMoney.cs
- EntityTemplateUserControl.cs
- TransformationRules.cs
- ColorContextHelper.cs
- DiscoveryDocumentReference.cs
- HtmlHead.cs
- TextRangeEditTables.cs
- TrackingValidationObjectDictionary.cs
- DelegateSerializationHolder.cs
- WebPartTransformerAttribute.cs
- WebConfigurationHostFileChange.cs
- ChannelBinding.cs
- EventWaitHandle.cs
- ReadOnlyHierarchicalDataSource.cs
- HttpListenerContext.cs
- ColorTranslator.cs
- LocalFileSettingsProvider.cs
- ProfileService.cs
- SocketConnection.cs
- TreeNodeStyle.cs
- LinqDataSourceUpdateEventArgs.cs
- RegexMatch.cs
- DataListItemEventArgs.cs
- AnimationTimeline.cs
- SplineKeyFrames.cs
- TextPattern.cs
- XPathParser.cs
- WmlCommandAdapter.cs
- Schema.cs
- XpsResource.cs
- Help.cs
- LayoutSettings.cs
- ProtocolsConfigurationEntry.cs
- WebConvert.cs
- SqlBooleanizer.cs
- CustomCredentialPolicy.cs
- BitmapFrameEncode.cs
- IssuedTokenServiceElement.cs
- ViewSimplifier.cs
- GroupByExpressionRewriter.cs
- OdbcInfoMessageEvent.cs
- CodeValidator.cs
- ResourceManager.cs
- _AutoWebProxyScriptHelper.cs
- Brush.cs
- TabItemWrapperAutomationPeer.cs
- CustomBinding.cs
- WriteableBitmap.cs
- SimpleHandlerFactory.cs
- listviewsubitemcollectioneditor.cs
- ImageField.cs
- XamlPathDataSerializer.cs
- ColorKeyFrameCollection.cs
- TextureBrush.cs
- AdRotator.cs