public RenderingModule(IRenderingService renderingService) { this.renderingService = renderingService; this.Get["/"] = this.GetResponse; this.Get["/(.*)"] = this.GetResponse; this.Get["/{path*}"] = this.GetResponse; }
public Game1Proto6() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; //contentManager = new ContentManager(this.Services); PhysicsService = (IPhysicsService)new PhysicsComponent(this); PhysicsService.Simulator.Gravity.Y = 500; MessageSerivce = (IMessageService)new MessageDispatcher(this); RenderingService = (IRenderingService)new RenderingComponent(this); }
protected override void InitSubclass() { this.CoordinateType = CoordinateType.World; PhysicsService = (IPhysicsService)Owner.Game.Services.GetService(typeof(IPhysicsService)); farseerDebugView = new DemoBaseXNA.PhysicsSimulatorView(PhysicsService.Simulator); RenderingService = (IRenderingService)Owner.Game.Services.GetService(typeof(IRenderingService)); RenderingService.Register(this); this.DrawOrder = 0; this.Visible = true; farseerDebugView.LoadContent(Owner.Game.GraphicsDevice, Owner.Game.Content); farseerDebugView.EnablePerformancePanelBodyCount = true; farseerDebugView.LayerDepth = preLayer; }
public GetStyleSheetsToRenderCommand(IRenderingService renderingService) { this.renderingService = renderingService; }
//[Inject] public MessageService(ITemplateProvider templateProvider, IRenderingService renderingService) { this.templateProvider = templateProvider; this.renderingService = renderingService; }
public GetProcessorJsDataCommand(IRenderingService renderingService) { this.renderingService = renderingService; }
/// <summary> /// Initializes a new instance of the <see cref="ClientResourceRegister" /> class. /// </summary> /// <param name="renderingService">The Disqus service.</param> public ClientResourceRegister(IRenderingService renderingService) { _renderingService = renderingService; }
/// <summary> /// Initializes a new instance of the <see cref="GetMainJsDataCommand" /> class. /// </summary> /// <param name="renderingService">The rendering service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> public GetMainJsDataCommand(IRenderingService renderingService, ICmsConfiguration cmsConfiguration) { this.renderingService = renderingService; this.cmsConfiguration = cmsConfiguration; }