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
/// <summary> | |
/// Initializes a new instance of the LeadAllocationService class. | |
/// </summary> | |
/// <param name="leadAllocators">Array of Lead Allocators.</param> | |
public LeadAllocationService(params ILeadAllocator[] leadAllocators) | |
{ | |
this.LeadAllocators = leadAllocators; | |
} |
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
/// <summary> | |
/// Send an email to notify that accrual data has been successfully uploaded | |
/// </summary> | |
/// <param name="accrualUpload"></param> | |
/// <param name="recipientAddresses"></param> | |
public void SendSuccessfulUploadEmail(AccrualUpload accrualUpload, Collection<MailAddress> recipientAddresses) |
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
/// <summary> | |
/// Converts a month number into the name | |
/// </summary> | |
/// <param name="monthNumber"></param> | |
private string GetMonthName(int monthNumber) | |
{ | |
return String.Format("{0:MMMM}", new DateTime(1969, monthNumber, 1)); | |
} |
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
<appSettings> | |
<add key="SmtpServer" value="smtp.mycompany.com" /> | |
<add key="bgColor" value="lightsteelblue" /> | |
<!-- <add key="connstr" value="Server=TestDB;initial catalog=DBName;Integrated Security=SSPI" /> --> | |
<add key="connstr" value="Server=LiveDB;initial catalog=DBName;Integrated Security=SSPI" /> | |
<add key="PageSize" value="20" /> | |
<add key="Homepage" value="/default.aspx" /> | |
<add key="FooServiceLicenseKey" value="YR39-WN51-CB73-DF62" /> | |
<add key="SendEmails" value="True" /> | |
<add key="FontName" value="Arial" /> |
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
if (selectedDate > maxAvailableDay) { | |
alert ("Please note, your online service booking must be between 5 and 90 days from today. If you wish to book a service outside of this period, please contact your local Toyota Contre directly."); | |
return false; | |
} | |
if (selectedDate < nextAvailableDay) { | |
alert ("Please note, your online service booking must be between 2 and 90 days from today. If you wish to book a service outside of this period, please contact your local Toyota Centre directly."); | |
return false; | |
} |
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 StackExchange.Redis; | |
using WebApi.OutputCache.Core.Cache; | |
namespace IanNelsonSystems | |
{ | |
/// <summary> | |
/// An implementation of WebApi.OutputCache.Core.Cache.IApiOutputCache that uses Redis as the cache. |
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
static void Main(string[] args) | |
{ | |
var darkSky = new DarkSky.Services.DarkSkyService("API_KEY_HERE"); | |
var date = new DateTime(2020,1,1); | |
do | |
{ | |
var forecast = darkSky.GetForecast(53.812174, -1.096165, | |
new OptionalParameters{MeasurementUnits ="uk2", ForecastDateTime = date}).Result; |
OlderNewer