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 ReaderService : GoogleService | |
{ | |
/// <summary> | |
/// Current username. | |
/// </summary> | |
private string username; | |
/// <summary> | |
/// Initialize the Google reader. | |
/// </summary> |
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) | |
{ | |
// Empty line. | |
Console.WriteLine(""); | |
// Get username. | |
Console.Write(" Enter your Google username: "); | |
string username = Console.ReadLine(); |
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" encoding="utf-8"?> | |
<access-policy> | |
<cross-domain-access> | |
<policy> | |
<allow-from http-request-headers="*"> | |
<domain uri="http://*" /> | |
<domain uri="https://*" /> | |
</allow-from> | |
<grant-to> | |
<resource path="/" include-subpaths="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
<system.serviceModel> | |
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" | |
multipleSiteBindingsEnabled="true" /> | |
</system.serviceModel> | |
<system.webServer> | |
<validation validateIntegratedModeConfiguration="false" /> | |
<rewrite> | |
<rules> | |
<rule name="Reverse Proxy to Business Logic Tier" stopProcessing="true"> | |
<match url="^riaservices/(.*)" /> |
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 contacts = from c in context.ContactSet | |
where c.FirstName == "Sandrino" | |
select c; | |
foreach (var contact in contacts) | |
{ | |
Console.WriteLine(contact.FullName); | |
} |
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> | |
<system.net> | |
<defaultProxy enabled="true" useDefaultCredentials="true"/> | |
</system.net> | |
</configuration> |
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
<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"> | |
<TraceIdentifier>http://msdn.microsoft.com/nl-BE/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier> | |
<Description>Throwing an exception.</Description> | |
<AppDomain>/LM/W3SVC/2/ROOT-1-129423140458251760</AppDomain> | |
<Exception> | |
<ExceptionType>System.ComponentModel.Win32Exception, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType> | |
<Message>The Security Support Provider Interface (SSPI) negotiation failed.</Message> | |
<StackTrace> | |
at System.ServiceModel.Security.WindowsSspiNegotiation.GetOutgoingBlob(Byte[] incomingBlob, ChannelBinding channelbinding, ExtendedProtectionPolicy protectionPolicy) | |
> at System.ServiceModel.Security.SspiNegotiationTokenAuthenticator.ProcessNegotiation(SspiNegotiationTokenAuthenticatorState negotiationState, Message incomingMessage, BinaryNegotiation incomingNego)> |
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
try | |
{ | |
BEID_ReaderSet readerSet = BEID_ReaderSet.instance(); | |
BEID_ReaderContext reader = readerSet.getReader(); | |
if (reader.isCardPresent()) | |
{ | |
BEID_EIDCard card = reader.getEIDCard(); | |
BEID_EId doc = card.getID(); | |
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
void APL_EIDCard::askWarningLevel() | |
{ | |
APL_AccessWarningLevel lWarningLevel=getWarningLevel(); | |
if(lWarningLevel==APL_ACCESSWARNINGLEVEL_REFUSED) | |
throw CMWEXCEPTION(EIDMW_ERR_NOT_ALLOW_BY_USER); | |
if(lWarningLevel==APL_ACCESSWARNINGLEVEL_BEING_ASKED) | |
throw CMWEXCEPTION(EIDMW_ERR_USER_MUST_ANSWER); | |
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" encoding="utf-8"?> | |
<jnlp codebase="https://localhost:100/" href="beid.jnlp"> | |
<information> | |
<title>Java Binding to Belgium eID Middleware 3.5</title> | |
<vendor>Fedict</vendor> | |
<offline-allowed/> | |
</information> | |
<security> | |
<all-permissions/> | |
</security> |