private void ConfigureIPCMediator() { IPCMediator.UseTransport(IPCTransport.NamedPipe); IPCMediator .RegisterAssemblyTypes(typeof(AssemblyScan.AssemblyScan).Assembly) .WithAttribute <IPCRequestAttribute>(); IPCMediator .RegisterType <ApplicationStateQuery>(); }
static Tests() { IPCMediator.RegisterAssemblyTypes(Assembly.GetExecutingAssembly()); IPCMediator.UseTransport(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? IPCTransport.NamedPipe : IPCTransport.UnixDomainSocket); }