本文整理汇总了C#中IUrlGenerator类的典型用法代码示例。如果您正苦于以下问题:C# IUrlGenerator类的具体用法?C# IUrlGenerator怎么用?C# IUrlGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUrlGenerator类属于命名空间,在下文中一共展示了IUrlGenerator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: MenuItemJsonConverter
public MenuItemJsonConverter(ControllerContext controllerContext, IUrlGenerator urlGenerator)
: base(controllerContext)
{
Guard.IsNotNull(urlGenerator, "urlGenerator");
UrlGenerator = urlGenerator;
}
开发者ID:timbooker,项目名称:telerikaspnetmvc,代码行数:7,代码来源:MenuItemJsonConverter.cs
示例2: RadialGauge
/// <summary>
/// Initializes a new instance of the <see cref="LinearGauge" /> class.
/// </summary>
/// <param name="viewContext">The view context.</param>
/// <param name="initializer">The javascript initializer.</param>
/// <param name="urlGenerator">The URL Generator.</param>
public RadialGauge(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer, urlGenerator)
{
Scale = new GaugeRadialScale(this);
Pointer = new GaugeRadialPointer();
Pointers = new List<GaugeRadialPointer>();
}
开发者ID:jstevenson81,项目名称:wodgeaux,代码行数:13,代码来源:RadialGauge.cs
示例3: Editor
public Editor(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
UrlGenerator = urlGenerator;
DefaultToolGroup = new EditorToolGroup(this);
Template = new HtmlTemplate();
Messages = new EditorMessages();
StyleSheets = new List<string>();
Pdf = new PDFSettings();
new EditorToolFactory(DefaultToolGroup)
.Formatting()
.Bold().Italic().Underline()
.JustifyLeft().JustifyCenter().JustifyRight()
.InsertUnorderedList().InsertOrderedList()
.Outdent().Indent()
.CreateLink().Unlink()
.InsertImage()
.TableEditing();
TagName = "textarea";
ImageBrowserSettings = new EditorImageBrowserSettings(Messages.ImageBrowserMessages);
FileBrowserSettings = new EditorFileBrowserSettings(Messages.FileBrowserMessages);
//>> Initialization
Resizable = new EditorResizableSettings();
Serialization = new EditorSerializationSettings();
//<< Initialization
}
开发者ID:jstevenson81,项目名称:wodgeaux,代码行数:35,代码来源:Editor.cs
示例4: DiagnosticRequestHandler
public DiagnosticRequestHandler(BundleCollection bundles, CassetteSettings settings, IUrlGenerator urlGenerator, IBundleCacheRebuilder bundleCacheRebuilder)
{
this.bundles = bundles;
this.settings = settings;
this.urlGenerator = urlGenerator;
this.bundleCacheRebuilder = bundleCacheRebuilder;
}
开发者ID:prabirshrestha,项目名称:Cassette.Nancy,代码行数:7,代码来源:DiagnosticRequestHandler.cs
示例5: ComboBox
public ComboBox(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
: base(viewContext, clientSideObjectWriterFactory)
{
ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.list.js", "telerik.combobox.js" });
UrlGenerator = urlGenerator;
ClientEvents = new DropDownClientEvents();
DataBinding = new AutoCompleteDataBindingConfiguration();
DropDownHtmlAttributes = new RouteValueDictionary();
HiddenInputHtmlAttributes = new RouteValueDictionary();
InputHtmlAttributes = new RouteValueDictionary();
Effects = new Effects();
defaultEffects.Each(el => Effects.Container.Add(el));
Filtering = new ComboBoxFilterSettings();
Items = new List<DropDownItem>();
SelectedIndex = -1;
Enabled = true;
Encoded = true;
OpenOnFocus = false;
IgnoreCase = true;
}
开发者ID:vialpando09,项目名称:RallyPortal2,代码行数:25,代码来源:ComboBox.cs
示例6: ViewComponentFactory
public ViewComponentFactory(HtmlHelper htmlHelper, IUrlGenerator urlGenerator)
: base(htmlHelper.ViewContext)
{
Guard.IsNotNull(urlGenerator, "urlGenerator");
this.urlGenerator = urlGenerator;
}
开发者ID:timbooker,项目名称:telerikaspnetmvc,代码行数:7,代码来源:ViewComponentFactory.cs
示例7: Editor
public Editor(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
UrlGenerator = urlGenerator;
DefaultToolGroup = new EditorToolGroup(this);
Template = new HtmlTemplate();
Messages = new EditorMessages();
StyleSheets = new List<string>();
new EditorToolFactory(DefaultToolGroup)
.Bold().Italic().Underline().Strikethrough()
.FontName()
.FontSize()
.FontColor().BackColor()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.InsertUnorderedList().InsertOrderedList()
.Outdent().Indent()
.FormatBlock()
.CreateLink().Unlink()
.InsertImage();
ImageBrowserSettings = new EditorImageBrowserSettings(Messages.ImageBrowserMessages);
}
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:25,代码来源:Editor.cs
示例8: Gauge
/// <summary>
/// Initializes a new instance of the <see cref="Gauge" /> class.
/// </summary>
/// <param name="viewContext">The view context.</param>
/// <param name="initializer">The javascript initializer.</param>
/// <param name="urlGenerator">The URL Generator.</param>
public Gauge(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
UrlGenerator = urlGenerator;
GaugeArea = new GaugeArea();
Transitions = true;
}
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:13,代码来源:Gauge.cs
示例9: Menu
public Menu(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
: base(viewContext, clientSideObjectWriterFactory)
{
Guard.IsNotNull(urlGenerator, "urlGenerator");
UrlGenerator = urlGenerator;
Items = new LinkedObjectCollection<MenuItem>(null);
}
开发者ID:timbooker,项目名称:telerikaspnetmvc,代码行数:8,代码来源:Menu.cs
示例10: MobileSwitch
public MobileSwitch(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
//>> Initialization
//<< Initialization
}
开发者ID:wanaxe,项目名称:Study,代码行数:8,代码来源:MobileSwitch.cs
示例11: DropDownListBase
public DropDownListBase(ViewContext viewContext, IJavaScriptInitializer initializer, ViewDataDictionary viewData, IUrlGenerator urlGenerator)
: base(viewContext, initializer, viewData)
{
Animation = new PopupAnimation();
DataSource = new DataSource();
UrlGenerator = urlGenerator;
}
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:9,代码来源:DropDownListBase.cs
示例12: ReadOnlyDataSourceBuilder
public ReadOnlyDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
{
this.viewContext = viewContext;
this.urlGenerator = urlGenerator;
this.dataSource = dataSource;
dataSource.Schema.Data = "";
dataSource.Schema.Total = "";
}
开发者ID:akhuang,项目名称:Zing,代码行数:9,代码来源:ReadOnlyDataSourceBuilder.cs
示例13: Calendar
public Calendar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
MonthTemplate = new MonthTemplate();
SelectionSettings = new CalendarSelectionSettings();
}
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:9,代码来源:Calendar.cs
示例14: Spreadsheet
public Spreadsheet(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
//>> Initialization
Sheets = new List<SpreadsheetSheet>();
//<< Initialization
}
开发者ID:mparsin,项目名称:Elements,代码行数:10,代码来源:Spreadsheet.cs
示例15: MobileSplitView
public MobileSplitView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
this.urlGenerator = urlGenerator;
//>> Initialization
Panes = new List<MobileSplitViewPane>();
//<< Initialization
}
开发者ID:akhuang,项目名称:Zing,代码行数:10,代码来源:MobileSplitView.cs
示例16: ScriptPipeline_Tests
public ScriptPipeline_Tests()
{
minifier = Mock.Of<IJavaScriptMinifier>();
urlGenerator = Mock.Of<IUrlGenerator>();
var container = new TinyIoCContainer();
settings = new CassetteSettings();
container.Register(minifier);
container.Register(urlGenerator);
container.Register(settings);
pipeline = new ScriptPipeline(container, settings);
}
开发者ID:jlopresti,项目名称:cassette,代码行数:11,代码来源:ScriptPipeline.cs
示例17: Upload
/// <summary>
/// Initializes a new instance of the <see cref="Upload" /> class.
/// </summary>
/// <param name="viewContext">The view context.</param>
/// <param name="initializer">The javascript initializer.</param>
/// <param name="urlGenerator">The URL Generator.</param>
public Upload(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
: base(viewContext, initializer)
{
Enabled = true;
Multiple = true;
ShowFileList = true;
Async = new UploadAsyncSettings(this);
Messages = new UploadMessages();
UrlGenerator = urlGenerator;
}
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:17,代码来源:Upload.cs
示例18: ProjectNotifier
public ProjectNotifier(IMembershipRepository membershipRepository, IEmailQueue emailQueue, IRazorTemplateRepository razorTemplateRepository, IUrlGenerator urlGenerator, ISystemSettings systemSettings, INotificationResourceViews notificationResourceViews, IDeployRepository deployRepository, IDeployStateRepository deployStateRepository)
{
_membershipRepository = DIHelper.VerifyParameter(membershipRepository);
_emailQueue = DIHelper.VerifyParameter(emailQueue);
_razorTemplateRepository = DIHelper.VerifyParameter(razorTemplateRepository);
_urlGenerator = DIHelper.VerifyParameter(urlGenerator);
_systemSettings = DIHelper.VerifyParameter(systemSettings);
_notificationResourceViews = DIHelper.VerifyParameter(notificationResourceViews);
_deployRepository = DIHelper.VerifyParameter(deployRepository);
_deployStateRepository = DIHelper.VerifyParameter(deployStateRepository);
}
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:11,代码来源:ProjectNotifier.cs
示例19: PreviewEmailController
public PreviewEmailController(IDeployRepository deployRepository, IDeployStateRepository deployStateRepository, IBuildRepository buildRepository, IProjectRepository projectRepository, ISystemSettings systemSettings, IUrlGenerator urlGenerator, IRazorTemplateRepository razorTemplateRepository, INotificationResourceViews notificationResourceViews)
{
_deployRepository = DIHelper.VerifyParameter(deployRepository);
_deployStateRepository = DIHelper.VerifyParameter(deployStateRepository);
_buildRepository = DIHelper.VerifyParameter(buildRepository);
_projectRepository = DIHelper.VerifyParameter(projectRepository);
_systemSettings = DIHelper.VerifyParameter(systemSettings);
_urlGenerator = DIHelper.VerifyParameter(urlGenerator);
_razorTemplateRepository = DIHelper.VerifyParameter(razorTemplateRepository);
_notificationResourceViews = DIHelper.VerifyParameter(notificationResourceViews);
}
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:11,代码来源:PreviewEmailController.cs
示例20: SiteMapHandler
/// <summary>
/// Initializes a new instance of the <see cref="SiteMapHandler"/> class.
/// </summary>
/// <param name="siteMaps">The site maps.</param>
/// <param name="httpResponseCompressor">The HTTP response compressor.</param>
/// <param name="httpResponseCacher">The HTTP response cacher.</param>
/// <param name="urlGenerator">The URL generator.</param>
public SiteMapHandler(SiteMapDictionary siteMaps, IHttpResponseCompressor httpResponseCompressor, IHttpResponseCacher httpResponseCacher, IUrlGenerator urlGenerator)
{
Guard.IsNotNull(siteMaps, "siteMaps");
Guard.IsNotNull(httpResponseCompressor, "httpResponseCompressor");
Guard.IsNotNull(httpResponseCacher, "httpResponseCacher");
Guard.IsNotNull(urlGenerator, "urlGenerator");
this.siteMaps = siteMaps;
this.httpResponseCompressor = httpResponseCompressor;
this.httpResponseCacher = httpResponseCacher;
this.urlGenerator = urlGenerator;
}
开发者ID:juanplopes,项目名称:simple-telerik,代码行数:19,代码来源:SiteMapHandler.cs
注:本文中的IUrlGenerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论