Posts

.NET Watcher in a .NET Core API

1. Set Up the .NET Core API If you don’t already have an API project, create one: dotnet new webapi -n FileWatcherApi  cd FileWatcherApi 2. Add the FileSystemWatcher Implementation Open the project in your favorite editor (e.g., Visual Studio, VS Code). Create a new service class to manage file watching. For example: Add a new folder named Services . Create a file named FileWatcherService.cs . Implement the FileWatcherService : using System; using System.IO; namespace FileWatcherApi.Services {     public class FileWatcherService     {         private readonly FileSystemWatcher _fileWatcher;         public FileWatcherService(string pathToWatch)         {             if (!Directory.Exists(pathToWatch))             {                 throw new DirectoryNotFoundException($"The directory '{pathToWatch}' does n...

Ag Grid Angular

Image
  Creating a Basic Grid Angular An introduction to the key concepts of AG Grid. Overview  In this tutorial you will: Create a basic grid Load external data to grid Configure columns Configure grid features Format cell values Add custom component to cell Hook into grid events Once complete, you'll have an interactive grid, with custom components and formatted data - Try it out for yourself by  sorting ,  filtering ,  resizing ,  selecting , or  editing  data in the grid: Create a Basic Grid  Complete our  Quick Start  (or open the example below in CodeSandbox / Plunker) to start with a basic grid, comprised of: Row Data:  The data to be displayed. Column Definition:  Defines & controls grid columns. Grid Component:  The  ag-grid-angular  component, with Dimensions, Row Data, and Column Definition attributes import  {  Component  }  from   "@angular/core" ; import  {  AgG...