예제 #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);
    }
예제 #2
0
 private bool requiresAuthentication(HttpOperation operation)
 {
     return(operation.GetType().IsDefined(typeof(HttpBasicAuthorizationAttribute), inherit: false));
 }
예제 #3
0
 private bool requiresEncryption(HttpOperation operation)
 {
     return(operation.GetType().IsDefined(typeof(EncryptedAttribute), inherit: false));
 }