Esempio n. 1
0
    protected override void sendOperation(HttpOperation operation, params string[] parameters)
    {
        RequestQueueAttribute[] array = (RequestQueueAttribute[])operation.GetType().GetCustomAttributes(typeof(RequestQueueAttribute), inherit: true);
        if (array.Length == 0)
        {
            base.sendOperation(operation, parameters);
            return;
        }
        QueuedOperation pending = new QueuedOperation(operation, parameters, array);

        addToQueue(pending);
        processQueue(pending);
    }
Esempio n. 2
0
 private bool requiresAuthentication(HttpOperation operation)
 {
     return(operation.GetType().IsDefined(typeof(HttpBasicAuthorizationAttribute), inherit: false));
 }
Esempio n. 3
0
 private bool requiresEncryption(HttpOperation operation)
 {
     return(operation.GetType().IsDefined(typeof(EncryptedAttribute), inherit: false));
 }