(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
public class EmailBackgroundService : BackgroundService | |
{ | |
private readonly IServiceProvider _serviceProvider; | |
private readonly ILogger<EmailBackgroundService> _logger; | |
public EmailBackgroundService(IServiceProvider serviceProvider, ILogger<EmailBackgroundService> logger) | |
{ | |
_serviceProvider = serviceProvider; | |
_logger = logger; | |
} |
public static IServiceCollection InitDatabaseContext(this IServiceCollection services, string connectionString) | |
{ | |
services.AddDbContext<AppDbContext>(opts => | |
{ | |
opts.UseSqlServer(connectionString); | |
opts.ReplaceService<IConventionSetBuilder, CustomSetBuilder>(); | |
}); | |
return services; | |
} |
var commandExists = require('command-exists'); | |
const execSync = require('child_process').execSync; | |
const rimraf = require('rimraf'); | |
function runCoverageReport() { | |
console.log('started code coverage'); | |
rimraf.sync('TestResults'); | |
let result = execSync('dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./TestResults/'); | |
console.log(result.toString()); | |
console.log('finished code coverage'); |
import {File} from '@ionic-native/file'; | |
import { DocumentViewer } from '@ionic-native/document-viewer'; | |
export class DocumentViewer | |
{ | |
constructor(private file : File, private documentViewer: DocumentViewer) | |
{ | |
} | |
public openDocument(document: Document) |
import {Http, Headers, RequestOptions, Response, ResponseContentType, URLSearchParams} from "@angular/http"; | |
@Injectable() | |
export class DocumentService | |
{ | |
constructor(private http: Http) | |
{ | |
} | |
loadDocuments(folderId: number, currentPage: number) : Observable<Response> |
namespace EntityFrameworkXmlDemo | |
{ | |
internal class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Welcome"); | |
bool retrieve = true; | |
var context = new SampleContext("connection string here"); |
<configuration> | |
<system.webServer> | |
<handlers> | |
<add name="iisnode" path="server/index.js" verb="*" modules="iisnode" /> | |
</handlers> | |
<rewrite> | |
<rules> | |
<rule name="sample"> | |
<match url="api/*" /> |
<configuration> | |
<system.webServer> | |
<handlers> | |
<add name="iisnode" path="app.js" verb="*" modules="iisnode" /> | |
</handlers> | |
<rewrite> | |
<rules> | |
<rule name="sample"> | |
<match url="/*" /> |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.