|
From: <jer...@us...> - 2009-01-19 18:57:40
|
Revision: 225
http://structuremap.svn.sourceforge.net/structuremap/?rev=225&view=rev
Author: jeremydmiller
Date: 2009-01-19 18:57:33 +0000 (Mon, 19 Jan 2009)
Log Message:
-----------
some attribute changes for Azure support
Modified Paths:
--------------
trunk/Source/StructureMap/ObjectFactory.cs
trunk/Source/StructureMap/Properties/AssemblyInfo.cs
trunk/Source/StructureMap.Testing/Configuration/ProfileBuilderTester.cs
Modified: trunk/Source/StructureMap/ObjectFactory.cs
===================================================================
--- trunk/Source/StructureMap/ObjectFactory.cs 2009-01-19 18:49:29 UTC (rev 224)
+++ trunk/Source/StructureMap/ObjectFactory.cs 2009-01-19 18:57:33 UTC (rev 225)
@@ -12,7 +12,7 @@
/// <summary>
/// The main static Facade for the StructureMap container
/// </summary>
- [EnvironmentPermission(SecurityAction.Assert, Read = "COMPUTERNAME")]
+ //[EnvironmentPermission(SecurityAction.Assert, Read = "COMPUTERNAME")]
public static class ObjectFactory
{
private static readonly object _lockObject = new object();
Modified: trunk/Source/StructureMap/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Source/StructureMap/Properties/AssemblyInfo.cs 2009-01-19 18:49:29 UTC (rev 224)
+++ trunk/Source/StructureMap/Properties/AssemblyInfo.cs 2009-01-19 18:57:33 UTC (rev 225)
@@ -1,5 +1,6 @@
using System.Reflection;
using System.Runtime.CompilerServices;
+using System.Security;
//
// General Information about an assembly is controlled through the following
@@ -16,4 +17,6 @@
[assembly:
InternalsVisibleTo(
"StructureMap.Testing, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d9a2a76e43cd9b1b1944b1f3b489a046b33f0bcd755b25cc5d3ed7b18ded38240d6db7578cd986c72d3feb4f94a7ab26fcfa41e3e4f41cf2c029fba91159db05c44d63f0b2bfac24353a07f4a1230dd3d4240340adafa2275277fa083c75958062cd0e60016701db6af7ae718efdf1e802a840595b49c290964255b3c60c494"
- )]
\ No newline at end of file
+ )]
+
+[assembly: AllowPartiallyTrustedCallers]
\ No newline at end of file
Modified: trunk/Source/StructureMap.Testing/Configuration/ProfileBuilderTester.cs
===================================================================
--- trunk/Source/StructureMap.Testing/Configuration/ProfileBuilderTester.cs 2009-01-19 18:49:29 UTC (rev 224)
+++ trunk/Source/StructureMap.Testing/Configuration/ProfileBuilderTester.cs 2009-01-19 18:57:33 UTC (rev 225)
@@ -22,6 +22,12 @@
private PluginGraph _graph;
private ProfileBuilder _builder;
private const string THE_MACHINE_NAME = "TheMachineName";
+
+ [Test]
+ public void smoke_test_get_machine_name()
+ {
+ ProfileBuilder.GetMachineName().ShouldNotBeEmpty();
+ }
[Test]
public void Do_not_register_a_machine_override_if_it_is_NOT_the_matching_machine()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|