/// <summary> /// Get entity from lists by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMlist> GetByKeyAsync(this ILists operations, string listid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByKeyWithHttpMessagesAsync(listid, select, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get entities from lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// </param> /// <param name='skip'> /// </param> /// <param name='search'> /// </param> /// <param name='filter'> /// </param> /// <param name='count'> /// </param> /// <param name='orderby'> /// Order items by property values /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMlistCollection> GetAsync(this ILists operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Add new entity to lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMlist> CreateAsync(this ILists operations, MicrosoftDynamicsCRMlist body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// connects to task dependency injection /// </summary> /// <param name="tasks">which injection</param> public TasksController(ITasks tasks, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> sign, ILists lists) { _userManager = userManager; _tasks = tasks; _sign = sign; _lists = lists; }
internal MailChimp( IAutomations automations, ICampaigns campaigns, IConversations conversations, IEcomm ecomm, IFolders folders, IGallery gallery, IGoal goal, IHelper helper, ILists lists, IReports reports, ITemplates templates, IUsers users, IVip vip) { Automations = automations; Campaigns = campaigns; Conversations = conversations; Ecomm = ecomm; Folders = folders; Gallery = gallery; Goal = goal; Helper = helper; Lists = lists; Reports = reports; Templates = templates; Users = users; Vip = vip; }
public Lists_REP_LOCAL(ILists lists_REP, IConfiguration config) { _lists_REP = lists_REP; _config = config; _path = _config.GetSection("SERVER_PATH").Value.ToString(); _user = _config.GetSection("SERVER_USER").Value.ToString(); _pass = _config.GetSection("SERVER_PASSWORD").Value.ToString(); }
public ListSerializer(ISerializer serializer, ISerializers serializers, IMemberSerializer @default, IMemberSerializer item, IIdentity identity, ILists lists, TypeInfo type) { _serializer = serializer; _serializers = serializers; _default = @default; _item = item; _identity = identity; _lists = lists; _type = type; }
/// <summary> /// Update entity in lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='body'> /// New property values /// </param> public static void Update(this ILists operations, string listid, MicrosoftDynamicsCRMlist body) { operations.UpdateAsync(listid, body).GetAwaiter().GetResult(); }
/// <summary> /// Add reference to adoxio_workers /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='workerId'> /// key: adoxio_workerid /// </param> /// <param name='fieldname'> /// key: fieldname /// </param> /// <param name='entityId'> /// reference value /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AddMemberAsync(this ILists operations, string workerId, EntityIdReference entityId = default(EntityIdReference), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.AddMemberWithHttpMessagesAsync(workerId, entityId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Add reference to adoxio_workers /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listId'> /// key: adoxio_workerid /// </param> /// <param name='fieldname'> /// key: fieldname /// </param> /// <param name='entityId'> /// reference value /// </param> public static void AddMember(this ILists operations, string listId, EntityIdReference entityId = default(EntityIdReference)) { operations.AddMemberAsync(listId, entityId).GetAwaiter().GetResult(); }
public XmlListContentsActivator(ILists lists) => _lists = lists;
/// <summary> /// Get entities from lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// </param> /// <param name='skip'> /// </param> /// <param name='search'> /// </param> /// <param name='filter'> /// </param> /// <param name='count'> /// </param> /// <param name='orderby'> /// Order items by property values /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static MicrosoftDynamicsCRMlistCollection Get(this ILists operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.GetAsync(top, skip, search, filter, count, orderby, select, expand).GetAwaiter().GetResult()); }
/// <summary> /// Delete entity from lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='ifMatch'> /// ETag /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse DeleteWithHttpMessages(this ILists operations, string listid, string ifMatch = default(string), Dictionary <string, List <string> > customHeaders = null) { return(operations.DeleteWithHttpMessagesAsync(listid, ifMatch, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Delete entity from lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='ifMatch'> /// ETag /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this ILists operations, string listid, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(listid, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete entity from lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='ifMatch'> /// ETag /// </param> public static void Delete(this ILists operations, string listid, string ifMatch = default(string)) { operations.DeleteAsync(listid, ifMatch).GetAwaiter().GetResult(); }
public TasksController(ILists lists, IMapper mapper, UserManager <SignUp> sign) { this.lists = lists; this.mapper = mapper; this.sign = sign; }
private static void Main(string[] args) { Helper studentList = new Helper(); Console.WriteLine("****Query Syntax in Linq****"); Query.QuerySyntax(); Console.WriteLine("****Method Syntax in Linq****"); Method.MethodSyntax(); Console.WriteLine("****Lambda Expression Action Delegate****"); Lambda.ActionLinq(); Console.WriteLine("****Lambda Expression Func Delegate****"); Console.WriteLine(Lambda.FuncLinq()); Console.WriteLine("****Enum****"); Console.WriteLine("Day: {0} No: {1}", Week.Friday, (int)Week.Friday); Console.WriteLine("****Print out all week in enum****"); foreach (var name in System.Enum.GetNames(typeof(Week))) { Console.WriteLine(name); } Console.WriteLine("****Delegate****"); //Print delegates PrintNumber Delegates.Print printDel = Delegates.Printnumber; printDel(10000); printDel(200); //Print delegates Money printDel = Delegates.PrintMoney; printDel(10000); printDel(200); Console.WriteLine("****Delegates as parameters"); //delegate as parameter Delegates.PrintHelper(Delegates.Printnumber, 10000); Delegates.PrintHelper(Delegates.PrintMoney, 10000); Console.WriteLine("****Delegates multicast"); //multicast Delegates.Print printMulti = Delegates.Printnumber; printMulti += Delegates.PrintMoney; printMulti += Delegates.PrintHexadecimal; printMulti(10000); Console.WriteLine("****Generic****"); MyGenericClass <int> intGenericClass = new MyGenericClass <int>(10); int val = intGenericClass.GenericMethod(200); //string generic Console.WriteLine("***Generic String****"); var stringGenericClass = new MyGenericClass <string>("Hello generic world"); stringGenericClass.GenericProperty = "This is a generic property example"; string result = stringGenericClass.GenericMethod("Generic Parameter"); Console.WriteLine("****Generic Delegate"); GenericDelegates.Add <int> sum = GenericDelegates.Addnumber; Console.WriteLine(sum(10, 20)); GenericDelegates.Add <string> conct = GenericDelegates.Concate; Console.WriteLine(conct("Hello", "World")); Console.WriteLine("****Generic Collections****"); string[] strArray = { "Hello", "World" }; ILists.Print(strArray); List <string> strList = new List <string> { "Hello", "World" }; ILists.Print(strList); Console.WriteLine("****Filter Operators****"); FilteringOperators s = new FilteringOperators(); s.OfTypeClause(); Console.WriteLine("****Grouping Operators****"); GroupingOperators g = new GroupingOperators(); g.ToLookUpOperator(); Console.WriteLine("****Joining Operators****"); JoiningOperators j = new JoiningOperators(); j.InnerJoin(); Console.WriteLine("****Quantifier Operators****"); QuantifierOperators q = new QuantifierOperators(); Console.WriteLine(q.ContainsOperator(studentList.StudentData())); Console.WriteLine("****Intersect Operators****"); SetOperators p = new SetOperators(); p.IntersectOperator(); Console.WriteLine("****Union Operators****"); p.UnionOperator(); Console.ReadLine(); }
/// <summary> /// Get entity from lists by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMlist> GetByKeyWithHttpMessages(this ILists operations, string listid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), Dictionary <string, List <string> > customHeaders = null) { return(operations.GetByKeyWithHttpMessagesAsync(listid, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get entities from lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// </param> /// <param name='skip'> /// </param> /// <param name='search'> /// </param> /// <param name='filter'> /// </param> /// <param name='count'> /// </param> /// <param name='orderby'> /// Order items by property values /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMlistCollection> GetWithHttpMessages(this ILists operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), Dictionary <string, List <string> > customHeaders = null) { return(operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get entity from lists by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static MicrosoftDynamicsCRMlist GetByKey(this ILists operations, string listid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.GetByKeyAsync(listid, select, expand).GetAwaiter().GetResult()); }
/// <summary> /// Add new entity to lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMlist> CreateWithHttpMessages(this ILists operations, MicrosoftDynamicsCRMlist body, string prefer = "return=representation", Dictionary <string, List <string> > customHeaders = null) { return(operations.CreateWithHttpMessagesAsync(body, prefer, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Add new entity to lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> public static MicrosoftDynamicsCRMlist Create(this ILists operations, MicrosoftDynamicsCRMlist body, string prefer = "return=representation") { return(operations.CreateAsync(body, prefer).GetAwaiter().GetResult()); }
/// <summary> /// Update entity in lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateAsync(this ILists operations, string listid, MicrosoftDynamicsCRMlist body, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateWithHttpMessagesAsync(listid, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Update entity in lists /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='listid'> /// key: listid of list /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse UpdateWithHttpMessages(this ILists operations, string listid, MicrosoftDynamicsCRMlist body, Dictionary <string, List <string> > customHeaders = null) { return(operations.UpdateWithHttpMessagesAsync(listid, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
public ListContentSerializer(IMemberSerializer item, string name, ILists lists) { _item = item; _name = name; _lists = lists; }
public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ILists lists) { _userManager = userManager; _signInManager = signInManager; _lists = lists; }