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 ServiceStack; | |
using System.Text; | |
using ServiceStack.Web; | |
namespace ComplexIdTest | |
{ | |
class MainClass | |
{ | |
public static void Main() |
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 ServiceStack; | |
using System.Runtime.Remoting; | |
using NUnit.Framework; | |
namespace MyApp.Tests | |
{ | |
public class AppHost : AppSelfHostBase | |
{ | |
public AppHost(): base("My ServiceStack Service", typeof(AppHost).Assembly) |
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
/// <reference path="angular.d.ts" /> | |
/// <reference path="angular-resource.d.ts" /> | |
interface IEmployee extends ng.resource.IResource<IEmployee> | |
{ | |
id: number; | |
firstName : string; | |
lastName : string; | |
} | |
interface IEmployeeResource extends ng.resource.IResourceClass<IEmployee> |
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 ServiceStack; | |
namespace Tests.Recipe | |
{ | |
class MainClass | |
{ | |
public static void Main() | |
{ | |
// Very basic console host |
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
/// <reference path="angular.d.ts" /> | |
/// <reference path="angular-route.d.ts" /> | |
'use strict'; | |
// Create and register modules | |
var modules = ['app.controllers','app.directives', 'app.filters', 'app.services']; | |
modules.forEach((module) => angular.module(module, [])); | |
// *** Push ngRoute or $routeProvider won't work *** |
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 ServiceStack; | |
using ServiceStack.Web; | |
using ServiceStack.Text; | |
namespace v4 | |
{ | |
class MainClass | |
{ | |
public static void Main() |
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 void CheckDatabaseModel(Type modelType) | |
{ | |
// Get the referenced model version | |
string modelVersion = Assembly.GetAssembly(modelType).GetName().Version.ToString(); | |
// Determine the last model version number from the configuration | |
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); | |
var lastModelVersion = config.AppSettings.Settings["DatabaseModelVersion"]; | |
// Determine if the model has changed |
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.Linq; | |
using ServiceStack; | |
using ServiceStack.Auth; | |
using ServiceStack.Web; | |
using System.Net; | |
using System.Text; | |
using System.Collections.Generic; | |
namespace Testv4 |
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.Linq; | |
using ServiceStack.ServiceInterface; | |
using ServiceStack.ServiceHost; | |
using ServiceStack.WebHost.Endpoints; | |
using ServiceStack.Common.Web; | |
using ServiceStack.Logging; | |
using ServiceStack.FluentValidation.Results; | |
using ServiceStack.Text; | |
using ServiceStack.ServiceInterface.Validation; |
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 ServiceStack; | |
namespace Testv4 | |
{ | |
class MainClass | |
{ | |
public static void Main() | |
{ | |
var appHost = new AppHost(500); |
NewerOlder