PersistenceMetadataNamespace.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / PersistenceMetadataNamespace.cs / 1305376 / PersistenceMetadataNamespace.cs

                            //---------------------------------------------------------------- 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//---------------------------------------------------------------

namespace System.Runtime 
{
    using System.Xml.Linq; 
 
    [Fx.Tag.XamlVisible(false)]
    static class PersistenceMetadataNamespace 
    {
        const string baseNamespace = "urn:schemas-microsoft-com:System.Runtime.DurableInstancing/4.0/metadata";
        static readonly XNamespace persistenceMetadataNamespace = XNamespace.Get(baseNamespace);
 
        static XName instanceType;
        static XName activationType; 
 
        public static XName InstanceType
        { 
            get
            {
                if (instanceType == null)
                { 
                    instanceType = persistenceMetadataNamespace.GetName("InstanceType");
                } 
 
                return instanceType;
            } 
        }

        public static XName ActivationType
        { 
            get
            { 
                if (activationType == null) 
                {
                    activationType = persistenceMetadataNamespace.GetName("ActivationType"); 
                }

                return activationType;
            } 
        }
 
        public static class ActivationTypes 
        {
            const string baseNamespace = "urn:schemas-microsoft-com:System.ServiceModel.Activation"; 
            static readonly XNamespace activationNamespace = XNamespace.Get(baseNamespace);

            static XName was;
 
            public static XName WAS
            { 
                get 
                {
                    if (was == null) 
                    {
                        was = activationNamespace.GetName("WindowsProcessActivationService");
                    }
 
                    return was;
                } 
            } 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------- 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//---------------------------------------------------------------

namespace System.Runtime 
{
    using System.Xml.Linq; 
 
    [Fx.Tag.XamlVisible(false)]
    static class PersistenceMetadataNamespace 
    {
        const string baseNamespace = "urn:schemas-microsoft-com:System.Runtime.DurableInstancing/4.0/metadata";
        static readonly XNamespace persistenceMetadataNamespace = XNamespace.Get(baseNamespace);
 
        static XName instanceType;
        static XName activationType; 
 
        public static XName InstanceType
        { 
            get
            {
                if (instanceType == null)
                { 
                    instanceType = persistenceMetadataNamespace.GetName("InstanceType");
                } 
 
                return instanceType;
            } 
        }

        public static XName ActivationType
        { 
            get
            { 
                if (activationType == null) 
                {
                    activationType = persistenceMetadataNamespace.GetName("ActivationType"); 
                }

                return activationType;
            } 
        }
 
        public static class ActivationTypes 
        {
            const string baseNamespace = "urn:schemas-microsoft-com:System.ServiceModel.Activation"; 
            static readonly XNamespace activationNamespace = XNamespace.Get(baseNamespace);

            static XName was;
 
            public static XName WAS
            { 
                get 
                {
                    if (was == null) 
                    {
                        was = activationNamespace.GetName("WindowsProcessActivationService");
                    }
 
                    return was;
                } 
            } 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK