Ejemplo n.º 1
0
        public override object GetExportedObject(ExportDefinition definition)
        {
            Guard.Against(!definition.Equals(_export.Definition),
                          Resources.Error_PartDoesNotContainAnExportForContract,
                          definition.ContractName);

            return _export.GetExportedObject();
        }
Ejemplo n.º 2
0
        public override object GetExportedValue(ExportDefinition definition)
        {
            if (!definition.Equals(ExportDefinition))
            {
                throw new NotImplementedException(string.Format("Wrong export definition. Is '{0}', should be '{1}'",
                                                                definition, ExportDefinition));
            }

            return ConfigurationInstance;
        }