I hereby claim:
- I am gertjvr on github.
- I am gertjvr (https://keybase.io/gertjvr) on keybase.
- I have a public key whose fingerprint is A0CD F749 4489 EA44 44BC 65BB 077F BBDA 6174 2A01
To claim this, I am signing this object:
using System; | |
using System.Runtime.InteropServices; | |
namespace Things | |
{ | |
public static class LandLordExtensions | |
{ | |
public static LandLord<TWrapped> AsDisposable<TWrapped>(this TWrapped tenant) | |
{ | |
return new LandLord<TWrapped>(tenant); |
using System; | |
using Serilog; | |
using Serilog.Configuration; | |
namespace ConsoleApplication8 | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ |
I hereby claim:
To claim this, I am signing this object:
SignalR generates a hub for each method invoke ie onConnected, onDisconnect or any other methods on the hub. Autofac.SignalR all hub dependencies are resolved from the root container making them singletons.
I did find another solutions https://github.com/lethek/SignalR.Extras.Autofac but this required inheriting from a special lifetimehub, retro fitting this into an large existing solution would take a lot of work an re-testing.
The solutions below allows you to scope all dependencies per hub instance.
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.Remoting.Messaging; | |
using System.Threading.Tasks; | |
using MassTransit; | |
using MassTransit.Configurators; | |
using MassTransit.PipeBuilders; | |
using MassTransit.PipeConfigurators; | |
using MassTransit.Pipeline; |
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | |
# yarn lockfile v1 | |
accepts@~1.3.3: | |
version "1.3.3" | |
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca" | |
dependencies: | |
mime-types "~2.1.11" | |
negotiator "0.6.1" |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
/// <summary> | |
/// Extends <see cref="IServiceCollection"/> with Serilog configuration methods. | |
/// </summary> | |
public static class SerilogLoggerServicesExtensions | |
{ | |
/// <summary> | |
/// Add Serilog to the logging pipeline. | |
/// </summary> | |
/// <param name="services">The <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" /> to add services to.</param> | |
/// <param name="logger">The Serilog logger; if not supplied, the static <see cref="Serilog.Log"/> will be used.</param> |