40 packages tagged with “Best”
Free yourself from async void! TaskMonitor is a task wrapper component helping you to deal with "fire and forget" Task (non awaited task) by implementing async/await best practices. Featuring: * Safe execution of your non awaited tasks * Delegates for all states of the loaded task * Builder pattern for more elegant construction and deferred execution * Support for task with result * Default handling of errors and statistics * Global configuration for statistics and errors handler * Consider globally or locally the cancel state as faulted to simplify your workflow
Simple analyzer that warns about the most common code smells related to excpetion handling.
The Cloud Application Framework & Extensions (CloudFx) is a Swiss Army knife for Windows Azure developers which offers a set of production quality components and building blocks intended to jump-start the implementation of feature-rich, reliable and extensible Windows Azure-based solutions and services.
Pacote de códigos utilitários, extensões e boas práticas usadas pela equipe de desenvolvimento da Leanwork
Microsoft.AspNetCore.Mvc.NewtonsoftJson services.AddControllers().AddNewtonsoftJson(o => o.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore); Dotnet controller [FromQuery] ?sort=asc using var transaction = Context.Database.BeginTransaction(); bike.Id = id; var c = await Context.Bikes.FindAsync(id); Context.Bikes.Remove(c); Context.Bikes.Add(bike); await Context.SaveChangesAsync(); await transaction.CommitAsync(); var startedRental = await Context.Rentals.FirstAsync(); startedRental.End = System.DateTime.Now; startedRental.TotalCosts = CostCalculation.CalculateTotalCost(startedRental); startedRental.Customer = await Context.Customers.FindAsync(rental.CustomerID); startedRental.Bike = await Context.Bikes.FindAsync(rental.BikeID); Context.Rentals.Update(startedRental); await Context.SaveChangesAsync(); var result=await unpaid .Include(c => c.Customer) .Select(item => new { item.CustomerID, item.Customer.LastName, item.Customer.FirstName, item.Id, item.Begin, item.End }) .ToListAsync(); return (await dataContext.Deposits.Include("Membership.Member").ToArrayAsync()) .GroupBy(d => new { d.Membership.Begin.Year, d.Membership.Member }) .Select(i => new DepositStatistics { Year = i.Key.Year, Member = i.Key.Member, TotalAmount = i.Sum(d => d.Amount) }); using var transaction = Database.BeginTransaction(); await Database.ExecuteSqlRawAsync("DELETE FROM Taxis"); await Database.ExecuteSqlRawAsync("DELETE FROM Drivers"); await Database.ExecuteSqlRawAsync("DELETE FROM Rides"); await transaction.CommitAsync(); var result = await Rides.Where(e => e.Start.Year == year and e.Start.Month == month).ToListAsync(); var drivers=result.GroupBy(d => d.Driver); var ret=drivers.Select(b => new DriverStatistics { DriverName = b.Key.Name, TotalCharge = b.Sum(d => d.Charge) ?? 0 }); public async Task T> GetFromServiceAsync T>(string path) { var response = await client.GetStringAsync(BASE_URL + path); return JsonSerializer.Deserialize T>(response, new JsonSerializerOptions { PropertyNameCaseInsensitive = true }); } public async Task HttpResponseMessage> PostToServiceAsync T>(string path, T payload ) { var body = new StringContent(JsonSerializer.Serialize T>(payload), Encoding.UTF8, "application/json"); var response = await client.PostAsync(BASE_URL + path,body); return response; } WPF GUI BindableBase Customers customers = new Customers(Customer, client); customers.Show(); MainWindow.Close.Execute(); ComboBox ItemsSource="{Binding Taxis}" DisplayMemberPath="LicensePlate" SelectedItem="{Binding SelectedTaxi}" /> UpdateSourceTrigger=PropertyChanged DataGrid Name="TaskTable" ItemsSource="{Binding Tasks}" RowEditEnding="TaskTable_RowEditEnding" AutoGenerateColumns="False" > DataGrid.Columns> DataGridTextColumn Header="TaskId" Binding="{Binding TaskId, UpdateSourceTrigger=LostFocus}"/> public async void TaskTable_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e) { var task = e.Row.Item as Task; await GetTasks(); if (task != null and task.Name == String.Empty) { var result = await client.DeleteToServiceAsync("Tasks/" + task.TaskId); MessageBox.Show("DELETE" + result.StatusCode.ToString()); } else if (Tasks.Any(b => b.TaskId == task.TaskId)) { var result = await client.PutToServiceAsync("Tasks/" +task.TaskId, task); MessageBox.Show("EDIT" + result.StatusCode.ToString()); } else { var result = await client.PostToServiceAsync("Tasks" , task); MessageBox.Show("ADD" + result.StatusCode.ToString()); } await GetTasks(); }
Templates for new projects based on best practices and personal opinions.
Best practices to configure a GenHTTP webserver instance for production
ParallelHelper is a static code analyzer that helps to identify concurrency related issues. Moreover, it provides hints to improve the robustness of code with concurrency in mind.
Lightning quick .NET Core Digital Experience Platform - Enterprise functionalities, quick, simple and hassle-free.
Easiest and fastest Micro ORM, you've got the queries, you've got the objects, take the best of two worlds ! This is only the core, you should reference an existing database provider.
The Cloud Application Framework & Extensions (CloudFx) is a Swiss Army knife for Windows Azure developers which offers a set of production quality components and building blocks intended to jump-start the implementation of feature-rich, reliable and extensible Windows Azure-based solutions and services. Note: this package includes the core assemblies only without dependencies. It is intended to be used in advanced scenarios. For a simple out-of-the-box experience, install the main package (Microsoft.Experience.CloudFx).
Easiest and fastest Micro ORM, you've got the queries, you've got the objects, take the best of two worlds ! This is the SQL Server database provider.
Best xml comment document parse utility for .NET Core and .NET 4.6+
.NET Utils Framework
Roslyn analyzers that help to harness the full power of the C# language to write exceptionally robust, efficient, and well-performing code.
State machine for Best.Htls
Easiest and fastest Micro ORM, you've got the queries, you've got the objects, take the best of two worlds ! This is the SQL Server Compact database provider.
Documentation module for SiteTriks CMS
SiteMap module for SiteTriks CMS
MarketingEmail module for SiteTriks CMS
SiteSync module for SiteTriks CMS
PerformanceCounter operate more simple
Blog module for SiteTriks CMS
RssFeed module for SiteTriks CMS
Java Tabmenu Datagrid public T> ListT> get(String path, Type t) throws Exception { return gs.fromJson(result, TypeToken.getParameterized(List.class, t).getType()); @ManagedBean(name = "slotController", eager = true) @ViewScoped p:growl id="growl" sticky="true" /> return gs.fromJson(result, TypeToken.getParameterized(List.class, t).getType()); p:selectOneMenu value="#{todoControl.addToDo.taskId}"> f:selectItem itemLabel="Select One" itemValue="" /> f:selectItems value="#{taskControl.taskList}" var="taskitem" itemLabel="#{taskitem.name} #{taskitem.taskId}" itemValue="#{taskitem.taskId}"/> p:column> #{taskitem.name} - #{taskitem.taskId} /p:column> /p:selectOneMenu> p:column headerText="Edit"> p:commandButton update=":todoform:display" value="Edit: #{todo.toDoId}" oncomplete="PF('tdlg').show()"> f:setPropertyActionListener value="#{todo}" target="#{todoControl.editToDo}" /> /p:commandButton> /p:column> p:dialog widgetVar="tdlg"> h:panelGrid id="display" columns="2"> h:outputText value="Edit"/> h:inputText value="#{todoControl.editToDo.name}" /> h:outputText value="Content" /> h:inputText value="#{todoControl.editToDo.content}" /> h:outputText value="Deadline"/> p:calendar value="#{todoControl.editToDo.deadLine}" pattern="MM/dd/yyyy HH:mm" /> h:outputText value="Taskid" /> h:inputText value="#{todoControl.editToDo.taskId}" /> p:commandButton value="Save" update="todoform" action="#{todoControl.updateToDo}" /> /h:panelGrid>
Error page module for SiteTriks CMS
Forum module for SiteTriks CMS
The Best Bank Portugal Connect is a open source C# library that helps to connect to the Best Bank's Open Banking PSD2 API, a bank based in Portugal. Features: -Authorization flow (OAuth 2) -Get Balances -Get Moviments -Make transferences -Make payments via portuguese standarts.
A description of the best package