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 TransitTimeCalculator | |
{ | |
public IList<TransitTimeResponse> UpsGround() | |
{ | |
var ret = new List<TransitTimeResponse>(); | |
Upsrates Rates1 = new Upsrates(); | |
Rates1.UPSAccount.AccessKey = {myKey}; //removed for security purposes | |
Rates1.UPSAccount.AccountNumber = {myAcctNumber}; |
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 UserRepository | |
{ | |
public UserRepository(IUnitOfWork uow) : (uow) | |
{ } | |
public bool Authenticate(UserLogin userLogin) | |
{ | |
var user = DbConnExec<User>((con) => | |
con.Select<User>(user => | |
user.UserName == userLogin.UserName && user.Password == userLogin.Password |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var appHost = new AppHost(); | |
appHost.Init(); | |
appHost.Start("http://*:1337/"); | |
System.Console.WriteLine("Listening on http://localhost:1337/ ..."); | |
System.Console.ReadLine(); | |
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite); |
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 clr | |
clr.AddReferenceToFile('ServiceStack.dll') | |
clr.AddReferenceToFile('ServiceStack.ServiceInterface.dll') | |
clr.AddReferenceToFile('ServiceStack.Text.dll') | |
clr.AddReferenceToFile('Services.dll') | |
from System import * | |
from ServiceStack.WebHost.Endpoints import AppHostHttpListenerBase | |
from MarkdownSharp import * | |
from ServiceStack.ServiceInterface import * |
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
<?xml version="1.0"?> | |
<configuration> | |
<!-- ServiceStack: Required to host at: /servicestack --> | |
<location path="servicestack"> | |
<system.web> | |
<httpHandlers> | |
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/> | |
</httpHandlers> | |
</system.web> |