// Token: 0x06000202 RID: 514 RVA: 0x000098E6 File Offset: 0x00007AE6
 public AsyncResult(AsyncResultCallback callback, object asyncState, bool completedSynchronously)
 {
     this.AsyncResultCallback    = callback;
     this.AsyncState             = asyncState;
     this.completedSynchronously = completedSynchronously;
     this.IsCompleted            = this.completedSynchronously;
 }
 // Token: 0x06000200 RID: 512 RVA: 0x00009899 File Offset: 0x00007A99
 public AsyncResult(AsyncResultCallback callback, object asyncState)
 {
     this.AsyncResultCallback    = callback;
     this.AsyncState             = asyncState;
     this.IsCompleted            = false;
     this.completedSynchronously = false;
 }
 // Token: 0x0600021A RID: 538 RVA: 0x00009B9C File Offset: 0x00007D9C
 public AsyncResult(AsyncResultCallback <T> callback, object asyncState) : base(delegate(AsyncResult ar)
 {
     callback((AsyncResult <T>)ar);
 }, asyncState)
 {
     this.AsyncResultCallback = callback;
 }
 /// <summary>
 /// Displays a message box with the specified text and parameters.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <param name="title">The title.</param>
 /// <param name="helpFile">The help file.</param>
 /// <param name="helpTopic">The help topic.</param>
 /// <param name="initialization">The initialization.</param>
 /// <param name="buttons">The buttons.</param>
 /// <param name="icon">The icon.</param>
 /// <param name="customIcon">The custom icon.</param>
 /// <param name="defaultButton">The default button.</param>
 /// <param name="customButtons">The custom buttons.</param>
 /// <param name="buttonsLayout">The buttons layout.</param>
 /// <param name="autoSizeMode">The auto size mode.</param>
 /// <param name="position">The position.</param>
 /// <param name="showHelpButton">if set to <c>true</c> shows help button.</param>
 /// <param name="helpNavigator">The help navigator.</param>
 /// <param name="showDoNotShowAgainCheckBox">if set to <c>true</c> shows the do not show again check box.</param>
 /// <param name="style">The style.</param>
 /// <param name="autoClose">The auto close configuration.</param>
 /// <param name="design">The design.</param>
 /// <param name="titleStyle">The title style.</param>
 /// <param name="titleIcon">The title icon.</param>
 /// <param name="legacyButtons">The legacy buttons.</param>
 /// <param name="legacyIcon">The legacy icon.</param>
 /// <param name="legacyDefaultButton">The legacy default button.</param>
 /// <param name="behavior">The behavior.</param>
 /// <param name="callback">The callback.</param>
 /// <param name="opacity">The opacity.</param>
 /// <param name="parent">The parent form.</param>
 /// <param name="order">The z-order</param>
 /// <param name="sound">The sound configuration</param>
 /// <returns>One of the <see cref="InformationBoxResult"/> values.</returns>
 public static InformationBoxResult Show(string text,
                                         string title     = "",
                                         string helpFile  = "",
                                         string helpTopic = "",
                                         InformationBoxInitialization initialization = InformationBoxInitialization.FromScopeAndParameters,
                                         InformationBoxButtons buttons = InformationBoxButtons.OK,
                                         InformationBoxIcon icon       = InformationBoxIcon.None,
                                         Icon customIcon = null,
                                         InformationBoxDefaultButton defaultButton = InformationBoxDefaultButton.Button1,
                                         string[] customButtons = null,
                                         InformationBoxButtonsLayout buttonsLayout = InformationBoxButtonsLayout.GroupMiddle,
                                         InformationBoxAutoSizeMode autoSizeMode   = InformationBoxAutoSizeMode.None,
                                         InformationBoxPosition position           = InformationBoxPosition.CenterOnParent,
                                         bool showHelpButton         = false,
                                         HelpNavigator helpNavigator = HelpNavigator.TableOfContents,
                                         InformationBoxCheckBox showDoNotShowAgainCheckBox = 0,
                                         InformationBoxStyle style                   = InformationBoxStyle.Standard,
                                         AutoCloseParameters autoClose               = null,
                                         DesignParameters design                     = null,
                                         InformationBoxTitleIconStyle titleStyle     = InformationBoxTitleIconStyle.None,
                                         InformationBoxTitleIcon titleIcon           = null,
                                         MessageBoxButtons?legacyButtons             = null,
                                         MessageBoxIcon?legacyIcon                   = null,
                                         MessageBoxDefaultButton?legacyDefaultButton = null,
                                         InformationBoxBehavior behavior             = InformationBoxBehavior.Modal,
                                         AsyncResultCallback callback                = null,
                                         InformationBoxOpacity opacity               = InformationBoxOpacity.NoFade,
                                         Form parent = null,
                                         InformationBoxOrder order = InformationBoxOrder.Default,
                                         InformationBoxSound sound = InformationBoxSound.Default)
 {
     return(new InformationBoxForm(text, title, helpFile, helpTopic, initialization, buttons, icon, customIcon, defaultButton,
                                   customButtons, buttonsLayout, autoSizeMode, position, showHelpButton, helpNavigator, showDoNotShowAgainCheckBox,
                                   style, autoClose, design, titleStyle, titleIcon, legacyButtons, legacyIcon, legacyDefaultButton, behavior, callback, opacity, parent, order, sound).Show());
 }
 // Token: 0x060001F1 RID: 497 RVA: 0x00009740 File Offset: 0x00007940
 public AsyncEnumerator(AsyncResultCallback <T> callback, object asyncState, Func <AsyncEnumerator <T>, IEnumerator <int> > enumeratorCallback, bool startAsyncOperation)
 {
     base.AsyncResult = new AsyncResult <T>(this, callback, asyncState);
     this.enumerator  = enumeratorCallback(this);
     if (startAsyncOperation)
     {
         base.Begin();
     }
     base.ConstructorDone = true;
 }
Esempio n. 6
0
        public void HandleCommand(AsyncResultCallback <object> callback)
        {
            _commandCallback = callback;

            HttpClientOptions options     = BuildHttpOptions();
            string            requestData = null;

            if ((_verb == HttpVerb.POST) || (_verb == HttpVerb.PUT))
            {
                if (_webRequest.Data != null)
                {
                    string data;
                    if (_webRequest.Data.GetType() == typeof(string))
                    {
                        data = (string)_webRequest.Data;
                        if (options.Headers.ContainsKey("Content-Type") == false)
                        {
                            options.Headers["Content-Type"] = "text/plain";
                        }
                    }
                    else
                    {
                        data = Json.Stringify(_webRequest.Data);
                        options.Headers["Content-Type"] = "application/json";
                    }

                    Buffer requestBuffer = new Buffer(data);
                    requestData = requestBuffer.ToString(Encoding.UTF8);

                    options.Headers["Content-Length"] = requestData.Length.ToString();
                }
            }

            HttpClientRequest request;

            if (_urlData.Protocol == "http:")
            {
                request = Http.Request(options, HandleResponse);
            }
            else
            {
                request = Https.Request(options, HandleResponse);
            }

            if (requestData != null)
            {
                request.Write(requestData);
            }

            request.End();
        }
Esempio n. 7
0
 public AsyncEnumerator(AsyncResultCallback callback, object asyncState, Func <AsyncEnumerator, IEnumerator <int> > enumeratorCallback, bool startAsyncOperation)
 {
     this.abortFunctions   = new List <Action>();
     this.pendingResults   = new List <IAsyncResult>();
     this.completedResults = new List <IAsyncResult>();
     base..ctor();
     this.AsyncResult = new AsyncResult(this, callback, asyncState);
     this.enumerator  = enumeratorCallback(this);
     if (startAsyncOperation)
     {
         this.Begin();
     }
     this.ConstructorDone = true;
 }
 // Token: 0x0600021E RID: 542 RVA: 0x00009C24 File Offset: 0x00007E24
 public AsyncResult(AsyncEnumerator <T> enumerator, AsyncResultCallback <T> callback, object asyncState) : base(enumerator, null, asyncState)
 {
     this.AsyncResultCallback = callback;
 }
Esempio n. 9
0
 /// <summary>
 /// Execute and "return" (via callback) the results of the given Gremlin script, optionally passing along the given script parameters
 /// (recommended to avoid Gremlin injection security vulnerabilities). Any values in the returned results that represent nodes, relationships
 /// or paths are returned as <see cref="GraphNode"/>, <see cref="GraphRelationship"/> or <see cref="GraphPath"/> instances.
 /// </summary>
 /// <param name="script">The Gremlin script. Can be multi-line.</param>
 /// <param name="parameters">A map of parameters for the Gremlin script.</param>
 /// <param name="callback">Returns List&lt;object&gt;</param>
 /// <example>
 /// <code>
 ///     var script = "g.v(userId).out('likes')";
 ///
 ///     var params = {
 ///       userId: currentUser.id
 ///     };
 ///
 ///     db.execute(script, params, function (err, likes) {
 ///       if (err) throw err;
 ///       likes.forEach(function (node) {
 ///         // ...
 ///        });
 ///     });
 /// </code>
 /// </example>
 public void Execute(string script, Dictionary <string, object> parameters, AsyncResultCallback <List <object> > callback)
 {
 }
Esempio n. 10
0
 /// <summary>
 /// Fetch and "return" (via callback) the results of the given Cypher query, optionally passing along the given query parameters
 /// (recommended to avoid Cypher injection security vulnerabilities). The returned results are an array of "rows" (matches),
 /// where each row is a map from key name (as given in the query) to value. Any values that represent nodes, relationships or
 /// paths are returned as <see cref="GraphNode"/>, <see cref="GraphRelationship"/> or <see cref="GraphPath"/> instances.
 /// </summary>
 /// <param name="query">The Cypher query. Can be multi-line.</param>
 /// <param name="parameters">A map of parameters for the Cypher query.</param>
 /// <param name="callback">Returns List&lt;object&gt;</param>
 /// <example>
 /// <code>
 ///      var query = [
 ///       'START user=node({userId})',
 ///       'MATCH (user) -[:likes]-> (other)',
 ///       'RETURN other'
 ///     ].join('\n');
 ///
 ///     var params = {
 ///       userId: currentUser.id
 ///     };
 ///
 ///     db.query(query, params, function (err, results) {
 ///       if (err) throw err;
 ///       var likes = results.map(function (result) {
 ///         return result['other'];
 ///       });
 ///       // ...
 ///     });
 /// </code>
 /// </example>
 public void Query(string query, Dictionary <string, object> parameters, AsyncResultCallback <object> callback)
 {
 }
Esempio n. 11
0
 public void Count(object query, object options, AsyncResultCallback<int> callback)
 {
 }
Esempio n. 12
0
 public static void Connect(string url, object options, AsyncResultCallback <MongoDatabase> callback)
 {
 }
Esempio n. 13
0
 public static void Connect(string url, AsyncResultCallback<MongoClient> callback)
 {
 }
Esempio n. 14
0
 public static void Stat(string path, AsyncResultCallback<FileStats> callback)
 {
 }
Esempio n. 15
0
 public MongoCursor FindOne(object query, object options, AsyncResultCallback<object> callback)
 {
     return null;
 }
Esempio n. 16
0
 public void FindAndRemove(object query, object[] sort, object options, AsyncResultCallback<object> callback)
 {
 }
Esempio n. 17
0
 public void FindAndModify(object query, object[] sort, object document, object options, AsyncResultCallback<object> callback)
 {
 }
Esempio n. 18
0
 public void Distinct(string key, object query, object options, AsyncResultCallback<object[]> callback)
 {
 }
Esempio n. 19
0
 public void Distinct(string key, AsyncResultCallback<object[]> callback)
 {
 }
 public void GetNextPage(AsyncResultCallback <List <CloudTable>, CloudTableListContinuation> callback)
 {
 }
Esempio n. 21
0
 public void Render(string viewName, Dictionary <string, object> data, AsyncResultCallback <string> callback)
 {
 }
Esempio n. 22
0
 public static void ReadFileText(string fileName, Encoding encoding, AsyncResultCallback<string> callback)
 {
 }
Esempio n. 23
0
 public void Open(AsyncResultCallback<MongoClient> callback)
 {
 }
Esempio n. 24
0
 public void Count(AsyncResultCallback<int> callback)
 {
 }
 public void Delete(AsyncResultCallback<object> callback)
 {
 }
Esempio n. 26
0
 public void Each(AsyncResultCallback<object> callback)
 {
 }
Esempio n. 27
0
 /// <summary>
 /// Fetch and "return" (via callback) the Neo4j version as a float.
 /// </summary>
 /// <param name="callback">Returns Number</param>
 public void GetVersion(AsyncResultCallback <long> callback)
 {
 }
Esempio n. 28
0
 public void NextObject(AsyncResultCallback<object> callback)
 {
 }
Esempio n. 29
0
 /// <summary>
 /// Fetch and "return" (via callback) the nodes matching the given query (in Lucene syntax) from the given index. If no such nodes exist, an empty array is returned.
 /// </summary>
 /// <param name="index">The name of the index, e.g. node_auto_index.</param>
 /// <param name="query">The Lucene query, e.g. foo:bar AND hello:world.</param>
 /// <param name="callback">Returns List&lt;Node&gt;</param>
 public void QueryNodeIndex(string index, string query, AsyncResultCallback <List <GraphNode> > callback)
 {
 }
Esempio n. 30
0
 public void ToArray(AsyncResultCallback<object[]> callback)
 {
 }
Esempio n. 31
0
 /// <summary>
 /// Fetch and "return" (via callback) the nodes indexed under the given property and value in the given index. If no such nodes exist, an empty array is returned.
 /// Note: This method will return multiple nodes if there are multiple hits. See #getIndexedNode for returning at most one node.
 /// </summary>
 /// <param name="index">The name of the index, e.g. 'node_auto_index'.</param>
 /// <param name="property">The name of the property, e.g. 'platform'.</param>
 /// <param name="value">The value of the property, e.g. 'xbox'.</param>
 /// <param name="callback">Returns List&lt;Node&gt;</param>
 public void GetIndexedNodes(string index, string property, object value, AsyncResultCallback <List <GraphNode> > callback)
 {
 }
Esempio n. 32
0
 public void CopyBlob(string sourceContainerName, string sourceBlobName, string targetContainerName, string targetBlobName, object options, AsyncResultCallback <CloudBlob> callback)
 {
 }
 // Token: 0x0600021C RID: 540 RVA: 0x00009BE6 File Offset: 0x00007DE6
 public AsyncResult(AsyncResultCallback <T> callback, object asyncState, T result) : base(asyncState, true)
 {
     this.AsyncResultCallback = callback;
     this.Result      = result;
     base.IsCompleted = true;
 }
Esempio n. 34
0
 public void CreateBlobSnapshot(string containerName, string blobName, object options, AsyncResultCallback <string> callback)
 {
 }
Esempio n. 35
0
 public static void ReadFile(string fileName, AsyncResultCallback<Buffer> callback)
 {
 }
Esempio n. 36
0
 public void CreateBlockBlobFromFile(string containerName, string blobName, string fileName, AsyncResultCallback <CloudBlockBlob> callback)
 {
 }
Esempio n. 37
0
 public void Render(string viewName, AsyncResultCallback <string> callback)
 {
 }
Esempio n. 38
0
 public void CreateBlockBlobFromStream(string containerName, string blobName, ReadableStream stream, object options, AsyncResultCallback <CloudBlockBlob> callback)
 {
 }
Esempio n. 39
0
 public void Open(AsyncResultCallback <MongoDatabase> callback)
 {
 }
Esempio n. 40
0
 public void CreateBlockBlobFromText(string containerName, string blobName, string text, object options, AsyncResultCallback <CloudBlockBlob> callback)
 {
 }
Esempio n. 41
0
 public static void Connect(string url, object options, AsyncResultCallback<MongoDatabase> callback)
 {
 }
 // Token: 0x060001EF RID: 495 RVA: 0x00009728 File Offset: 0x00007928
 public AsyncEnumerator(AsyncResultCallback <T> callback, object asyncState, Func <AsyncEnumerator <T>, IEnumerator <int> > enumeratorCallback) : this(callback, asyncState, enumeratorCallback, true)
 {
 }
Esempio n. 43
0
 public static void Connect(string url, AsyncResultCallback <MongoClient> callback)
 {
 }
 public void Render(string viewName, Dictionary<string, object> data, AsyncResultCallback<string> callback)
 {
 }
Esempio n. 45
0
 public void Open(AsyncResultCallback <MongoClient> callback)
 {
 }
Esempio n. 46
0
 public static void ReadDirectory(string path, AsyncResultCallback<string[]> callback)
 {
 }
Esempio n. 47
0
 /// <summary>
 /// Fetch and "return" (via callback) the relationships indexed under the given property and value in the given index. If no such
 /// relationships exist, an empty array is returned.
 /// Note: This method will return multiple relationships if there are multiple hits. See <see cref="GetIndexedRelationship"/> for returning at most one relationship.
 /// </summary>
 /// <param name="index">The name of the index, e.g. 'relationship_auto_index'.</param>
 /// <param name="property">The name of the property, e.g. 'favorite'.</param>
 /// <param name="value">The value of the property, e.g. true.</param>
 /// <param name="callback">Returns List&lt;Relationship&gt;</param>
 public void GetIndexedRelationships(string index, string property, object value, AsyncResultCallback <List <GraphRelationship> > callback)
 {
 }
Esempio n. 48
0
 public static void Write(FileDescriptor fd, Buffer buffer, int offset, int length, object position, AsyncResultCallback<int, Buffer> callback)
 {
 }
 public void Render(string viewName, AsyncResultCallback<string> callback)
 {
 }
Esempio n. 50
0
 /// <summary>
 /// Fetch and "return" (via callback) the node with the given Neo4j ID.
 /// </summary>
 /// <param name="id">The integer ID of the node: <example>1234</example></param>
 /// <param name="callback">Returns Node</param>
 /// <exception>If no node exists with this ID.</exception>
 public void GetNodeById(int id, AsyncResultCallback <GraphNode> callback)
 {
 }
Esempio n. 51
0
 /// <summary>
 /// Fetch and "return" (via callback) the relationship with the given Neo4j ID.
 /// </summary>
 /// <param name="id">The integer ID of the relationship, e.g. 1234.</param>
 /// <param name="callback">Returns Relationship</param>
 public void GetRelationshipById(int id, AsyncResultCallback <GraphRelationship> callback)
 {
 }
Esempio n. 52
0
 public static void Open(string path, FileAccess flags, int mode, AsyncResultCallback<FileDescriptor> callback)
 {
 }