Esempio n. 1
0
 public void NoDefaultConstructor()
 {
     Assert.ThrowsException <TypeInitializationException>(() => Ambient.GetService <INoDefaultConstructor>());
 }
Esempio n. 2
0
 public void NonInterfaceType()
 {
     AmbientService <DefaultTest> defaultTest = Ambient.GetService <DefaultTest>();
     DefaultTest test = defaultTest.Global;
 }
Esempio n. 3
0
    static SetupApplication()
    {
        AmbientService <IAmbientSettingsSet> SettingsSet = Ambient.GetService <IAmbientSettingsSet>();

        SettingsSet.Global = new AppConfigAmbientSettings();
    }