This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Dani.Samples.Internet.WebApi.Filters.Actions | |
| { | |
| using System; | |
| using System.Linq; | |
| using System.Collections.Concurrent; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Net.Http.Headers; | |
| using System.Text; | |
| using System.Web.Http.Controllers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module WebAdministration | |
| Set-WebConfigurationProperty -filter /system.webServer/security -name 'sections["ipSecurity"].OverrideModeDefault' -value Allow -pspath iis:\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module ServerManager | |
| Add-WindowsFeature Web-App-Dev | |
| Add-WindowsFeature Web-Net-Ext | |
| Add-WindowsFeature Web-Net-Ext45 | |
| Add-WindowsFeature Web-Asp | |
| Add-WindowsFeature Web-Asp-Net | |
| Add-WindowsFeature Web-Asp-Net45 | |
| Add-WindowsFeature Web-Http-Redirect | |
| Add-WindowsFeature Web-Windows-Auth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Sitecore.Analytics.Pipelines.TriggerCampaign; | |
| using Sitecore.Diagnostics; | |
| namespace Sitecore8rev150223.Website.Pipelines | |
| { | |
| public class AssociateCampaignToVisit : TriggerCampaignProcessor | |
| { | |
| public override void Process(TriggerCampaignArgs args) | |
| { | |
| Assert.ArgumentNotNull((object)args, "args"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cls | |
| Get-Content -Path "C:\Sites\Sample-Site\WebApplication\App_Data\Data\logs\log.20150507.174934.txt" -Tail 1 –Wait | Get-Content -Path "C:\Sites\Sample-Site\WebApplication\App_Data\Data\logs\audit.20150507.174934.txt" -Tail 1 –Wait |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get the list of features on a reference machine with this command: | |
| # Get-WindowsOptionalFeature -Online | where {$_.state -eq “Enabled”} | ft -Property featurename | |
| Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole | |
| Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer | |
| Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures | |
| Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ Page Language="C#" %> | |
| <%@ Import Namespace="System.Diagnostics" %> | |
| <%@ Import Namespace="System.Net" %> | |
| <%@ Import Namespace="Sitecore.ContentSearch" %> | |
| <%@ Import Namespace="Sitecore.Data" %> | |
| <%@ Import Namespace="Sitecore.Data.Items" %> | |
| <script runat="server"> | |
| #region Configure actual checks here | |
| ChecksSet ChecksRun { get; set; } | |
| string[] Tags { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TitleController : Controller | |
| { | |
| private readonly ISitecoreRenderingContext _renderingContext; | |
| private readonly ITitleService _TitleService; | |
| public TitleController(ISitecoreRenderingContext renderingContext, ITitleService TitleService) | |
| { | |
| _renderingContext = renderingContext; | |
| _TitleService = TitleService; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface ITitleService | |
| { | |
| TitleContextModel GetContextTitle(IPageTemplate contextPageTemplate); | |
| TitleDictionaryModel GetDictionaryTitle(IDictionaryTitleTemplate dictionaryTitleTemplate); | |
| TitleNormalModel GetNormalTitle(INormalTitleTemplate normalTitleTemplate); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TitleLogic : ITitleLogic | |
| { | |
| public TitleNormalModel GetNormalTitle(INormalTitleTemplate normalTitleTemplate) | |
| { | |
| var model = new TitleNormalModel(); | |
| var type = normalTitleTemplate.TitleTypeField.TargetItem<ITitleTypeItemTemplate>(); | |
| model.Title = normalTitleTemplate.TitleField.Render().ToString(); | |
| model.Secondary = normalTitleTemplate.SecondaryField.Render().ToString(); | |
| model.Type = type != null ? type.TypeField.Value : 2; |
OlderNewer