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
var service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); | |
service.Url = new Uri("https://serv/EWS/exchange.asmx"); | |
service.Credentials = new NetworkCredential("001234", "PasswordForUser001234", "Domain"); | |
//Never use this part in production!! | |
//ServicePointManager.ServerCertificateValidationCallback = (object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) => | |
// { | |
// return true; | |
// }; |
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
using System; | |
using MonoTouch.UIKit; | |
namespace MonoTouch.Dialog | |
{ | |
public class TintImageStringElement : ImageStringElement | |
{ | |
public UIColor TintColor { get; set; } | |
public TintImageStringElement (string caption, UIImage image):base(caption,image.ImageWithRenderingMode (UIImageRenderingMode.AlwaysTemplate)) | |
{ | |
TintColor = UIColor.FromRGB (102, 51, 102); |
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
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => { | |
Console.WriteLine("Certificaat: {0}",certificate.Subject); | |
Console.WriteLine("SslPolicy: {0}",sslPolicyErrors); | |
return true; //This row is the problem. If you don't know why, I wouldn't use apps from your company! | |
}; |
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
return { | |
"name": "Ping Presence", | |
"deviceMap": [ | |
{deviceId:264}, | |
{deviceId:261} | |
] | |
} |
NewerOlder