本文整理汇总了C#中Db4objects.Db4o.Internal.Config4Impl类的典型用法代码示例。如果您正苦于以下问题:C# Config4Impl类的具体用法?C# Config4Impl怎么用?C# Config4Impl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Config4Impl类属于Db4objects.Db4o.Internal命名空间,在下文中一共展示了Config4Impl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestCSAliases
public void TestCSAliases()
{
Config4Impl config = new Config4Impl();
JavaSupport javaSupport = new JavaSupport();
javaSupport.Prepare(config);
string resolvedName = config.ResolveAliasRuntimeName(UnversionedNameFor(typeof(ClassInfo)));
Assert.AreEqual("com.db4o.cs.internal.ClassInfo", resolvedName);
}
示例2: IdSystemConfigurationImpl
public IdSystemConfigurationImpl(Config4Impl config)
{
_config = config;
}
示例3: ApplyRenames
protected override bool ApplyRenames(Config4Impl config)
{
LogMsg(58, null);
return false;
}
示例4: FileConfigurationImpl
public FileConfigurationImpl(Config4Impl config)
{
_config = config;
}
示例5: ConfigDeepCloneContext
public ConfigDeepCloneContext(Config4Impl orig, Config4Impl cloned)
{
_orig = orig;
_cloned = cloned;
}
示例6: ClassInfoHelper
public ClassInfoHelper(Config4Impl config)
{
_config = config;
}
示例7: Frequency
private int Frequency(Config4Impl config)
{
return Math.Min(config.TimeoutClientSocket(), config.TimeoutServerSocket()) / 4;
}
示例8: ApplyRenames
protected virtual bool ApplyRenames(Config4Impl config)
{
bool renamed = false;
IEnumerator i = config.Rename().GetEnumerator();
while (i.MoveNext())
{
Rename ren = (Rename)i.Current;
if (AlreadyApplied(ren))
{
continue;
}
if (ApplyRename(ren))
{
renamed = true;
}
}
return renamed;
}
示例9: CacheConfigurationImpl
public CacheConfigurationImpl(Config4Impl config)
{
_config = config;
}
示例10: Configure
public override void Configure(Config4Impl config)
{
config.Freespace().UseRamSystem();
}
示例11: Rename
internal virtual void Rename(Config4Impl config)
{
bool renamedOne = false;
if (config.Rename() != null)
{
renamedOne = ApplyRenames(config);
}
_classCollection.CheckChanges();
if (renamedOne)
{
Reboot();
}
}
示例12: ServerConfigurationImpl
public ServerConfigurationImpl(Config4Impl config) : base(config)
{
}
示例13: InitializeReferenceSystemFactory
private void InitializeReferenceSystemFactory(Config4Impl config)
{
_referenceSystemFactory = config.ReferenceSystemFactory();
}
示例14: PrepareConfig
private Config4Impl PrepareConfig(Config4Impl originalConfig, IStorage storage, bool
readOnly)
{
Config4Impl sourceConfig = (Config4Impl)originalConfig.DeepClone(null);
sourceConfig.WeakReferences(false);
sourceConfig.Storage = storage;
sourceConfig.ReadOnly(readOnly);
return sourceConfig;
}
示例15: TypeHandlerConfigurationDotNet
public TypeHandlerConfigurationDotNet(Config4Impl config) : base(config)
{
ListTypeHandler(new CollectionTypeHandler());
MapTypeHandler(new MapTypeHandler());
}