本文整理汇总了C#中ISpawnProvider类的典型用法代码示例。如果您正苦于以下问题:C# ISpawnProvider类的具体用法?C# ISpawnProvider怎么用?C# ISpawnProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISpawnProvider类属于命名空间,在下文中一共展示了ISpawnProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Initialise
/// <summary>
/// Initialise Fortis with a spawn provider and item factory and verifies the initialisation.
/// </summary>
/// <param name="spawnProvider"></param>
/// <param name="itemFactory"></param>
public static void Initialise(ISpawnProvider spawnProvider, IItemFactory itemFactory)
{
SpawnProvider = spawnProvider;
ItemFactory = itemFactory;
Verify();
}
开发者ID:kamsar,项目名称:fortis,代码行数:12,代码来源:Global.cs
示例2: Verify
/// <summary>
/// Verifies that Fortis has been correctly set up.
/// </summary>
/// <param name="itemFactory"></param>
/// <param name="spawnProvider"></param>
/// <param name="itemSearchFactory"></param>
public static void Verify(IItemFactory itemFactory, ISpawnProvider spawnProvider, IItemSearchFactory itemSearchFactory)
{
var verificationFailed = false;
var errorMessages = new StringBuilder();
errorMessages.AppendLine("Fortis intialise verification failed:");
errorMessages.AppendLine();
if (!VerifySpawnProvider(spawnProvider))
{
errorMessages.AppendLine("SpawnProvider is not initialised");
verificationFailed = true;
}
if (!VerifyItemFactory(itemFactory))
{
errorMessages.AppendLine("ItemFactory is not initialised");
verificationFailed = true;
}
if (!VerifyItemSearchFactory(itemSearchFactory))
{
errorMessages.AppendLine("ItemSearchFactory is not initialised");
verificationFailed = true;
}
if (verificationFailed)
{
throw new Exception(errorMessages.ToString());
}
}
开发者ID:tdelplace,项目名称:fortis,代码行数:37,代码来源:Global.cs
示例3: FieldWrapper
public FieldWrapper(Field field, ISpawnProvider spawnProvider)
{
Sitecore.Diagnostics.Assert.ArgumentNotNull(field, "field");
_modified = false;
_field = field;
SpawnProvider = spawnProvider;
}
开发者ID:tdelplace,项目名称:fortis,代码行数:9,代码来源:FieldWrapper.cs
示例4: NameValueListFieldWrapper
public NameValueListFieldWrapper(string key, ref ItemWrapper item, ISpawnProvider spawnProvider, ArrayList value = null)
: base(key, ref item, string.Empty, spawnProvider)
{
if (value == null)
{
return;
}
_value = new NameValueCollection();
foreach (object val in value)
{
if (val is ArrayList)
{
var tmp = val as ArrayList;
_value.Add(tmp[0].ToString(), tmp[1].ToString());
}
}
this._rawValue = _value.ToString();
}
开发者ID:tdelplace,项目名称:fortis,代码行数:20,代码来源:NameValueListFieldWrapper.cs
示例5: VerifySpawnProvider
/// <summary>
/// Verifies the spawn provider is correctly set up.
/// </summary>
/// <param name="spawnProvider"></param>
/// <returns></returns>
public static bool VerifySpawnProvider(ISpawnProvider spawnProvider)
{
return spawnProvider != null && spawnProvider.TemplateMapProvider != null;
}
开发者ID:tdelplace,项目名称:fortis,代码行数:9,代码来源:Global.cs
示例6: RenderingParameterWrapper
public RenderingParameterWrapper(Dictionary<string, string> parameters, ISpawnProvider spawnProvider)
{
_parameters = parameters;
SpawnProvider = spawnProvider;
}
开发者ID:mikaelnet,项目名称:fortis,代码行数:6,代码来源:RenderingParameterWrapper.cs
示例7: BooleanFieldWrapper
public BooleanFieldWrapper(string key, ref ItemWrapper item, ISpawnProvider spawnProvider, bool value)
: base(key, ref item, value ? "1" : "", spawnProvider)
{
_boolean = value;
}
开发者ID:tdelplace,项目名称:fortis,代码行数:5,代码来源:BooleanFieldWrapper.cs
示例8: OrderingOptions
public OrderingOptions(Dictionary<string, string> parameters, ISpawnProvider spawnProvider)
: base(parameters, spawnProvider)
{
}
开发者ID:khanafshan19,项目名称:Demo,代码行数:4,代码来源:Model.cs
示例9: RulesFieldWrapper
public RulesFieldWrapper(string key, ref ItemWrapper item, ISpawnProvider spawnProvider, string value = null)
: base(key, ref item, value, spawnProvider)
{
}
开发者ID:tdelplace,项目名称:fortis,代码行数:4,代码来源:RulesFieldWrapper.cs
示例10: IntegerFieldWrapper
public IntegerFieldWrapper(string key, ref ItemWrapper item, ISpawnProvider spawnProvider, long value)
: base(key, ref item, value.ToString(), spawnProvider)
{
_value = value;
}
开发者ID:tdelplace,项目名称:fortis,代码行数:5,代码来源:IntegerFieldWrapper.cs
示例11: FieldWrapper
public FieldWrapper(string value, ISpawnProvider spawnProvider)
{
_value = value;
SpawnProvider = spawnProvider;
}
开发者ID:tdelplace,项目名称:fortis,代码行数:6,代码来源:FieldWrapper.cs
示例12: FileFieldWrapper
public FileFieldWrapper(Field field, ISpawnProvider spawnProvider)
: base(field, spawnProvider)
{
}
开发者ID:mikaelnet,项目名称:fortis,代码行数:4,代码来源:FileFieldWrapper.cs
示例13: CallToActionListOptions
public CallToActionListOptions(Dictionary<string, string> parameters, ISpawnProvider spawnProvider)
: base(parameters, spawnProvider)
{
}
开发者ID:khanafshan19,项目名称:Demo,代码行数:4,代码来源:Model.cs
示例14: ContentPage
public ContentPage(Guid id, Dictionary<string, object> lazyFields, ISpawnProvider spawnProvider)
: base(id, lazyFields, spawnProvider)
{
}
开发者ID:khanafshan19,项目名称:Demo,代码行数:4,代码来源:Model.cs
示例15: NavigationLink
public NavigationLink(Item item, ISpawnProvider spawnProvider)
: base(item, spawnProvider)
{
_item = item;
}
开发者ID:khanafshan19,项目名称:Demo,代码行数:5,代码来源:Model.cs
示例16: BooleanFieldWrapper
public BooleanFieldWrapper(string value, ISpawnProvider spawnProvider)
: base(value, spawnProvider)
{
}
开发者ID:tdelplace,项目名称:fortis,代码行数:4,代码来源:BooleanFieldWrapper.cs
示例17: NumberFieldWrapper
public NumberFieldWrapper(string key, ref ItemWrapper item, ISpawnProvider spawnProvider, float value)
: base(key, ref item, value.ToString(), spawnProvider)
{
_value = value;
}
开发者ID:tdelplace,项目名称:fortis,代码行数:5,代码来源:NumberFieldWrapper.cs
示例18: CustomItemFactory
public CustomItemFactory(IContextProvider contextProvider, ISpawnProvider spawnProvider)
: base(contextProvider, spawnProvider)
{
}
开发者ID:Fortis-Collection,项目名称:fortis.codegen.transitus.rainbow,代码行数:4,代码来源:CustomItemFactory.cs
示例19: NumberFieldWrapper
public NumberFieldWrapper(string value, ISpawnProvider spawnProvider)
: base(value, spawnProvider)
{
}
开发者ID:tdelplace,项目名称:fortis,代码行数:4,代码来源:NumberFieldWrapper.cs
示例20: Initialise
public void Initialise()
{
// Create mock objects
_modelAssemblyProvider = new ModelAssemblyProvider();
_templateMappingProvider = new TemplateMapProvider(_modelAssemblyProvider);
_spawnProvider = new SpawnProvider(_templateMappingProvider);
}
开发者ID:tdelplace,项目名称:fortis,代码行数:7,代码来源:SpawnProviderTests.cs
注:本文中的ISpawnProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论