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 MakeTestAppointmentUpdate() | |
{ | |
string serviceUrl = "<your organization service endpoint>/web"; | |
string userName = "username"; | |
string password = "password"; | |
string logicalEntityName = "appointment"; | |
string activityId = "ba9f21c5-82ac-e411-95dc-005056be7c4c"; |
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> | |
/// Creates a SOAP payload to retrieve a list of deleted Appointment Ids for a given user | |
/// </summary> | |
/// <param name="userId">The GUID crm User Id</param> | |
/// <param name="dateFrom">From date</param> | |
/// <returns></returns> | |
private string CreateSoapPayloadForDeletedAppointments(string userId, string dateFrom) | |
{ | |
StringBuilder sb = new StringBuilder(); |
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.Threading; | |
using System.Threading.Tasks; | |
namespace YARG.Core.Utils | |
{ | |
internal delegate void TimerCallback(object state); | |
internal sealed class Timer : CancellationTokenSource, IDisposable | |
{ |
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 UTC datestamp to the local timezone | |
/// </summary> | |
/// <returns>The UTC to local time zone.</returns> | |
/// <param name="dateTimeUtc">Date time UTC.</param> | |
public DateTime ConvertUTCToLocalTimeZone(DateTime dateTimeUtc) { | |
// get the UTC/GMT Time Zone | |
Java.Util.TimeZone utcGmtTimeZone = Java.Util.TimeZone.GetTimeZone ("UTC"); |
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 UTC datestamp to the local timezone | |
/// </summary> | |
/// <returns>The UTC to local time zone.</returns> | |
/// <param name="dateTimeUtc">Date time UTC.</param> | |
public DateTime ConvertUTCToLocalTimeZone (DateTime dateTimeUtc) | |
{ | |
NSTimeZone sourceTimeZone = new NSTimeZone ("UTC"); | |
NSTimeZone destinationTimeZone = NSTimeZone.LocalTimeZone; | |
NSDate sourceDate = DateTimeToNativeDate (dateTimeUtc); |
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 X509Certificate2 GetCertificate(string thumbPrint) | |
{ | |
List<StoreLocation> locations = new List<StoreLocation> | |
{ | |
StoreLocation.CurrentUser, | |
StoreLocation.LocalMachine | |
}; | |
foreach (var location in locations) | |
{ |