当前位置: 首页>>代码示例>>C#>>正文


C# IConfiguration.AddAlias方法代码示例

本文整理汇总了C#中IConfiguration.AddAlias方法的典型用法代码示例。如果您正苦于以下问题:C# IConfiguration.AddAlias方法的具体用法?C# IConfiguration.AddAlias怎么用?C# IConfiguration.AddAlias使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IConfiguration的用法示例。


在下文中一共展示了IConfiguration.AddAlias方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddQueryAliases

 private static void AddQueryAliases(IConfiguration config)
 {
     config.AddAlias(new TypeAlias("com.db4o.query.Evaluation", FullyQualifiedName(typeof (IEvaluation))));
     config.AddAlias(new TypeAlias("com.db4o.query.Candidate", FullyQualifiedName(typeof (ICandidate))));
     config.AddAlias(new WildcardAlias("com.db4o.internal.query.processor.*",
         "Db4objects.Db4o.Internal.Query.Processor.*, Db4objects.Db4o"));
 }
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:JavaSupport.cs

示例2: AddExceptionAliases

		private static void AddExceptionAliases(IConfiguration config)
		{
			config.AddAlias(new TypeAlias("com.db4o.foundation.ChainedRuntimeException", FullyQualifiedName(typeof(Exception))));
			config.AddAlias(new TypeAlias("java.lang.Throwable", FullyQualifiedName(typeof(Exception))));
			config.AddAlias(new TypeAlias("java.lang.RuntimeException", FullyQualifiedName(typeof(Exception))));
			config.AddAlias(new TypeAlias("java.lang.Exception", FullyQualifiedName(typeof(Exception))));
		}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:JavaSupport.cs

示例3: AddClientServerAliases

		private static void AddClientServerAliases(IConfiguration config)
		{
#if !SILVERLIGHT
			config.AddAlias(new TypeAlias("com.db4o.User", FullyQualifiedName(typeof(User))));
			config.AddAlias(new TypeAlias("com.db4o.cs.internal.messages.MUserMessage$UserMessagePayload", "Db4objects.Db4o.CS.Internal.Messages.MUserMessage+UserMessagePayload, Db4objects.Db4o.CS"));
			config.AddAlias(new TypeAlias("com.db4o.internal.TransportObjectContainer$KnownObjectIdentity", "Db4objects.Db4o.Internal.TransportObjectContainer+KnownObjectIdentity, Db4objects.Db4o"));
			config.AddAlias(new WildcardAlias("com.db4o.cs.internal.*", "Db4objects.Db4o.CS.Internal.*, Db4objects.Db4o.CS"));
#endif
		}
开发者ID:erdincay,项目名称:db4o,代码行数:9,代码来源:JavaSupport.cs

示例4: Apply

			public void Apply(IConfiguration config)
			{
				config.AddAlias(
					// Person1 instances should be read as Person2 objects
					new TypeAlias(
					GetTypeName(typeof(Person1)),
					GetTypeName(typeof(Person2))));
			}
开发者ID:superyfwy,项目名称:db4o,代码行数:8,代码来源:TypeAliasesTestCase.cs

示例5: AddCollectionAliases

 private static void AddCollectionAliases(IConfiguration config)
 {
     config.AddAlias(new TypeAlias("com.db4o.foundation.Collection4", FullyQualifiedName(typeof (Collection4))));
     config.AddAlias(new TypeAlias("com.db4o.foundation.List4", FullyQualifiedName(typeof (List4))));
 }
开发者ID:masroore,项目名称:db4o,代码行数:5,代码来源:JavaSupport.cs

示例6: AddDb4OBasicAliases

 private static void AddDb4OBasicAliases(IConfiguration config)
 {
     config.AddAlias(new WildcardAlias("com.db4o.ext.*", "Db4objects.Db4o.Ext.*, Db4objects.Db4o"));
     config.AddAlias(new TypeAlias("com.db4o.StaticField", FullyQualifiedName(typeof (StaticField))));
     config.AddAlias(new TypeAlias("com.db4o.StaticClass", FullyQualifiedName(typeof (StaticClass))));
 }
开发者ID:masroore,项目名称:db4o,代码行数:6,代码来源:JavaSupport.cs

示例7: AddAlias

 private static void AddAlias(IConfiguration config, string storedType, Type runtimeType)
 {
     config.AddAlias(new TypeAlias(storedType, TypeReference.FromType(runtimeType).GetUnversionedName()));
 }
开发者ID:masroore,项目名称:db4o,代码行数:4,代码来源:JavaServerCrossplatformTestCase.cs

示例8: ConfigureAliases

        private static void ConfigureAliases(IConfiguration config)
        {
            config.Add(new JavaSupport());

            AddAlias(config, "com.db4o.crossplatform.test.server.StartServer$Person", typeof (Person));
            AddAlias(config, "com.db4o.crossplatform.test.server.StartServer$Movies", typeof (Movies));
            AddAlias(config, "com.db4o.crossplatform.test.server.StartServer$UnoptimizideJoeFinder",
                typeof (UnoptimizideJoeFinder));
            AddAlias(config, "com.db4o.crossplatform.test.server.StartServer$StopServer", typeof (StopServer));
            AddAlias(config, "com.db4o.crossplatform.test.server.StartServer$PersonEvaluator", typeof (PersonEvaluator));

            config.AddAlias(
                (new TypeAlias("com.db4o.crossplatform.test.server.StartServer$SortByYear",
                    "Db4objects.Db4o.Tests.CLI1.CrossPlatform.Person+SortByYearImpl, Db4objects.Db4o.Tests")));
        }
开发者ID:masroore,项目名称:db4o,代码行数:15,代码来源:JavaServerCrossplatformTestCase.cs

示例9: Apply

			public void Apply(IConfiguration config)
			{
				config.AddAlias(this._enclosing.alias);
			}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:4,代码来源:AliasesTestCase.cs

示例10: ConfigureAliases

 private void ConfigureAliases(IConfiguration configuration)
 {
     configuration.AddAlias(new TypeAlias("com.db4o.test.aliases.Person2", GetTypeName(GetAliasedDataType())));
     //	        configuration.AddAlias(
     //	            new WildcardAlias(
     //	                "com.db4o.test.aliases.*",
     //	                CurrentNamespace + ".*, " + CurrentAssemblyName));
     configuration.AddAlias(
         new TypeAlias("com.db4o.ext.Db4oDatabase", GetTypeName(typeof (Db4oDatabase))));
 }
开发者ID:masroore,项目名称:db4o,代码行数:10,代码来源:JavaFromNetAliasesTestCase.cs


注:本文中的IConfiguration.AddAlias方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。