This file contains 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 System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Web; | |
using Google.GData.Analytics; | |
using Google.GData.Client; | |
using ServiceStack.Text; |
This file contains 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 System; | |
using System; | |
using System.Net.Http; | |
using System.Web.Http; | |
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
namespace Example.Controllers | |
{ | |
public class WebApiUmbracoController : ApiController |
This file contains 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 UpdateRenderingEngineToMvc() | |
{ | |
//Local variables | |
var path = GlobalSettings.FullpathToRoot + Path.DirectorySeparatorChar + "config" + Path.DirectorySeparatorChar; | |
var filePath = path + "umbracoSettings.config"; | |
var value = RenderingEngine.Mvc; | |
//Load the config file as xml | |
var xml = new XmlDocument(); | |
var settingsReader = new XmlTextReader(filePath); |
This file contains 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
internal class ServiceContextManager : IDisposable | |
{ | |
private readonly string _connectionString; | |
private readonly string _providerName; | |
private ServiceContext _serviceContext; | |
private readonly StandaloneApplication _application; | |
public ServiceContextManager(string connectionString, string providerName) | |
{ | |
_connectionString = connectionString; |
This file contains 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 System; | |
using Umbraco.Core; | |
using Umbraco.Core.Persistence; | |
using Umbraco.Core.Persistence.DatabaseAnnotations; | |
namespace Umbraco.Examples | |
{ | |
/// <summary> | |
/// Class that shows the use of creating a new table and inserting a new ArticlePoco. | |
/// This class is only intended for demo'ing and should not be used as it. |
This file contains 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 System; | |
using umbraco.BusinessLogic; | |
using umbraco.cms.presentation.Trees; | |
public class SecrectContent : ApplicationBase | |
{ | |
public SecrectContent() | |
{ | |
BaseContentTree.AfterNodeRender += BaseContentTree_AfterNodeRender; | |
} |
This file contains 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 Umbraco.Core.Configuration; | |
namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSix | |
{ | |
[Migration("6.0.0", 4, GlobalSettings.UmbracoMigrationName)] | |
public class NewCmsContentType2ContentTypeTable : MigrationBase | |
{ | |
public override void Up() | |
{ | |
Create.Table("cmsContentType2ContentType") |
This file contains 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 System; | |
using Umbraco.Core.Persistence; | |
using Umbraco.Core.Persistence.DatabaseAnnotations; | |
namespace Umbraco.Core.Models.Rdbms | |
{ | |
[TableName("umbracoNode")] | |
[PrimaryKey("id")] | |
[ExplicitColumns] | |
internal class NodeDto |
This file contains 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 System.Collections.Generic; | |
using Umbraco.Core.Models; | |
namespace Umbraco | |
{ | |
/// <summary> | |
/// Represents a Subpage which acts as the strongly typed model for a Doc Type | |
/// with alias "Subpage" and "Subpage" as the allowed child type. | |
/// | |
/// Similar to the Textpage this model could also be generated, but it could also |
This file contains 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 System; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Concorde.AzurePack.Domain.Websites.Preallocation.Settings; | |
using Concorde.Contracts.Processes; | |
using Concorde.Infrastructure.Messaging; | |
using Microsoft.ServiceBus.Messaging; | |
namespace Allocation |
OlderNewer