Microsoft.AspNet.SignalR.Messaging.Cursor.GetCursors C# (CSharp) Method

GetCursors() public static method

public static GetCursors ( string cursor, string prefix ) : List
cursor string
prefix string
return List
        public static List<Cursor> GetCursors(string cursor, string prefix)
        {
            return GetCursors(cursor, prefix, s => s);
        }

Same methods

Cursor::GetCursors ( string cursor, string prefix, Func keyMaximizer, object state ) : List
Cursor::GetCursors ( string cursor, string prefix, string>.Func keyMaximizer ) : List

Usage Example

Example #1
0
        public ScaleoutSubscription(string identity,
                                    IList <string> eventKeys,
                                    string cursor,
                                    IList <ScaleoutMappingStore> stores,
                                    Func <MessageResult, object, Task <bool> > callback,
                                    int maxMessages,
                                    IPerformanceCounterManager counters,
                                    object state)
            : base(identity, eventKeys, callback, maxMessages, counters, state)
        {
            if (stores == null)
            {
                throw new ArgumentNullException("stores");
            }

            _stores = stores;

            List <Cursor> cursors = null;

            if (String.IsNullOrEmpty(cursor))
            {
                cursors = new List <Cursor>(stores.Count);
                for (int i = 0; i < stores.Count; i++)
                {
                    cursors.Add(new Cursor(i.ToString(CultureInfo.InvariantCulture), stores[i].MaxKey));
                }
            }
            else
            {
                cursors = Cursor.GetCursors(cursor);
            }

            _cursors = cursors;
        }
All Usage Examples Of Microsoft.AspNet.SignalR.Messaging.Cursor::GetCursors