﻿using System;
using System.ComponentModel.Composition;

namespace Cogito.Composition
{

    /// <summary>
    /// Attaches an Order metadata property to the export.
    /// </summary>
    [MetadataAttribute]
    public class ExportOrderAttribute :
        Attribute
    {

        readonly int order;

        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public ExportOrderAttribute(int order)
        {
            Priority = order;
        }

        public int Priority { get; set; }

    }

}

﻿using System;
using System.ComponentModel.Composition;

namespace Cogito.Composition
{

    /// <summary>
    /// Attaches an Order metadata property to the export.
    /// </summary>
    [MetadataAttribute]
    public class ExportOrderAttribute :
        Attribute,
        IOrderedExportMetadata
    {

        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public ExportOrderAttribute(int order)
        {
            Order = order;
        }

        public int Order { get; set; }

    }

}

Check Azure configuration more carefully. Add contracts for some base classes. Fix ExportOrder.
Check Azure configuration more carefully.
Add contracts for some base classes.
Fix ExportOrder.
