/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Events = new Events(this); BaseUri = "{Endpoint}/personalizer/v1.0"; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); }
public Plugin(TS3Functions functions, IEvents events) { TSFuncs = functions; TSEvents = events; TSEvents.onClientSelfVariableUpdateEvent += TSEvents_onClientSelfVariableUpdateEvent; }
/// <summary> /// Get entity from adoxio_events by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='adoxioEventid'> /// key: adoxio_eventid of adoxio_event /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMadoxioEvent> GetByKeyAsync(this IEvents operations, string adoxioEventid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByKeyWithHttpMessagesAsync(adoxioEventid, select, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public Incidents(List <IValuable> allValuables, IEvents eventNotification, IFactory <ThiefTeam> thiefTeamFactory) { _allValuables = allValuables; _eventNotification = eventNotification; _thiefTeamFactory = thiefTeamFactory; eventNotification.Subscribe <GameStartEvent>(OnGameStart); }
/// <summary> /// Get OData metadata /// </summary> /// <remarks> /// Gets OData EDMX metadata describing the event data model /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='appId'> /// ID of the application. This is Application ID from the API Access settings /// blade in the Azure portal. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetOdataMetadataAsync(this IEvents operations, string appId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetOdataMetadataWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get an event /// </summary> /// <remarks> /// Gets the data for a single event /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='appId'> /// ID of the application. This is Application ID from the API Access settings /// blade in the Azure portal. /// </param> /// <param name='eventType'> /// The type of events to query; either a standard event type (`traces`, /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, /// `availabilityResults`) or `$all` to query across all event types. Possible /// values include: '$all', 'traces', 'customEvents', 'pageViews', /// 'browserTimings', 'requests', 'dependencies', 'exceptions', /// 'availabilityResults', 'performanceCounters', 'customMetrics' /// </param> /// <param name='eventId'> /// ID of event. /// </param> /// <param name='timespan'> /// Optional. The timespan over which to retrieve events. This is an ISO8601 /// time period value. This timespan is applied in addition to any that are /// specified in the Odata expression. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <EventsResults> GetAsync(this IEvents operations, string appId, string eventType, string eventId, string timespan = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(appId, eventType, eventId, timespan, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Execute OData query /// </summary> /// <remarks> /// Executes an OData query for events /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='appId'> /// ID of the application. This is Application ID from the API Access settings /// blade in the Azure portal. /// </param> /// <param name='eventType'> /// The type of events to query; either a standard event type (`traces`, /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, /// `availabilityResults`) or `$all` to query across all event types. Possible /// values include: '$all', 'traces', 'customEvents', 'pageViews', /// 'browserTimings', 'requests', 'dependencies', 'exceptions', /// 'availabilityResults', 'performanceCounters', 'customMetrics' /// </param> /// <param name='timespan'> /// Optional. The timespan over which to retrieve events. This is an ISO8601 /// time period value. This timespan is applied in addition to any that are /// specified in the Odata expression. /// </param> /// <param name='filter'> /// An expression used to filter the returned events /// </param> /// <param name='search'> /// A free-text search expression to match for whether a particular event /// should be returned /// </param> /// <param name='orderby'> /// A comma-separated list of properties with \"asc\" (the default) or \"desc\" /// to control the order of returned events /// </param> /// <param name='select'> /// Limits the properties to just those requested on each returned event /// </param> /// <param name='skip'> /// The number of items to skip over before returning events /// </param> /// <param name='top'> /// The number of events to return /// </param> /// <param name='format'> /// Format for the returned events /// </param> /// <param name='count'> /// Request a count of matching items included with the returned events /// </param> /// <param name='apply'> /// An expression used for aggregation over returned events /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <EventsResults> GetByTypeAsync(this IEvents operations, string appId, string eventType, string timespan = default(string), string filter = default(string), string search = default(string), string orderby = default(string), string select = default(string), int?skip = default(int?), int?top = default(int?), string format = default(string), bool?count = default(bool?), string apply = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByTypeWithHttpMessagesAsync(appId, eventType, timespan, filter, search, orderby, select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public override void when(IEvents myEvent) { switch (myEvent.EventType) { case "OrderCreated": this.Customer = ((OrderCreated)myEvent).Customer; this.Orderdate = ((OrderCreated)myEvent).OrderDate; this.OrderItems = ((OrderCreated)myEvent).OrderItems; this.Orderid = ((OrderCreated)myEvent).OrderId; break; case "OrderUpdated": this.Orderdate = ((OrderUpdated)myEvent).OrderDate; this.Orderid = ((OrderUpdated)myEvent).OrderId; break; case "OrderRejcted": break; case "OrderFullfilled": break; default: break; } }
public Library(IBookDao dao) { this.catalog = new CatalogBasicImpl(dao); this.processState = new LibraryState(dao); this.users = new UsersBasicImpl(); this.events = new EventsBasicImpl(); }
/// <summary> /// A Personalizer rank request. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='rankRequest'> /// A Personalizer request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RankResponse> RankAsync(this IEvents operations, RankRequest rankRequest, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RankWithHttpMessagesAsync(rankRequest, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <EventModel> GetEventAsync(this IEvents operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetEventWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static void AddChangedEvent <TModel>( this IEvents events, params string[] changedPropertyNames) where TModel : Aggregate { var @event = new ModelChanged <TModel>(changedPropertyNames); events.Add(@event); }
/// <summary> /// Initializes a new instance of the <see cref="InstancesController"/> class /// </summary> public InstancesController( ILogger <InstancesController> logger, IRegister registerService, IInstance instanceService, IData dataService, IAppResources appResourcesService, IAltinnApp altinnApp, IProcess processService, IPDP pdp, IEvents eventsService, IOptions <AppSettings> appSettings, IPrefill prefillService) { _logger = logger; _instanceService = instanceService; _dataService = dataService; _appResourcesService = appResourcesService; _registerService = registerService; _altinnApp = altinnApp; _processService = processService; _pdp = pdp; _eventsService = eventsService; _appSettings = appSettings.Value; _prefillService = prefillService; }
/// <summary> /// Enable Debug Adapter Protocol for the running adapter. /// </summary> /// <param name="botAdapter">The <see cref="BotAdapter"/> to enable.</param> /// <param name="port">port to listen on.</param> /// <param name="sourceMap">ISourceMap to use (default will be SourceMap()).</param> /// <param name="breakpoints">IBreakpoints to use (default will be SourceMap()).</param> /// <param name="terminate">Termination function (Default is Environment.Exit().</param> /// <param name="events">IEvents to use (Default is Events).</param> /// <param name="codeModel">ICodeModel to use (default is internal implementation).</param> /// <param name="dataModel">IDataModel to use (default is internal implementation).</param> /// <param name="logger">ILogger to use (Default is NullLogger).</param> /// <param name="coercion">ICoercion to use (default is internal implementation).</param> /// <returns>The <see cref="BotAdapter"/>.</returns> public static BotAdapter UseDebugger( this BotAdapter botAdapter, int port, ISourceMap sourceMap = null, IBreakpoints breakpoints = null, Action terminate = null, IEvents events = null, ICodeModel codeModel = null, IDataModel dataModel = null, ILogger logger = null, ICoercion coercion = null) { codeModel = codeModel ?? new CodeModel(); DebugSupport.SourceMap = sourceMap ?? new DebuggerSourceMap(codeModel); return(botAdapter.Use( new DialogDebugAdapter( port: port, sourceMap: DebugSupport.SourceMap, breakpoints: breakpoints ?? DebugSupport.SourceMap as IBreakpoints, terminate: terminate, events: events, codeModel: codeModel, dataModel: dataModel, logger: logger))); }
public EventManager(GenThreadManager genThreadManager, IEvents energyEvents) : base(genThreadManager, GlobalSettings.SystemServices) { EnergyEvents = energyEvents; LastEventTypeList = DateTime.MinValue; InitialEventRun = true; }
public LibraryClass(IBookDao dao) { this.catalog = new Catalog(dao); this.processState = new ProcessState(dao); this.users = new Users(); this.events = new Events(); }
/// <summary> /// Add new entity to adoxio_events /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMadoxioEvent> CreateAsync(this IEvents operations, MicrosoftDynamicsCRMadoxioEvent body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Enable Debug Adapter Protocol for the running adapter. /// </summary> /// <param name="botAdapter">The <see cref="BotAdapter"/> to enable.</param> /// <param name="port">port to listen on.</param> /// <param name="sourceMap">ISourceMap to use (default will be SourceMap()).</param> /// <param name="breakpoints">IBreakpoints to use (default will be SourceMap()).</param> /// <param name="terminate">Termination function (Default is Environment.Exit().</param> /// <param name="events">IEvents to use (Default is Events).</param> /// <param name="codeModel">ICodeModel to use (default is internal implementation).</param> /// <param name="dataModel">IDataModel to use (default is internal implementation).</param> /// <param name="logger">ILogger to use (Default is NullLogger).</param> /// <returns>The <see cref="BotAdapter"/>.</returns> public static BotAdapter UseDebugger( this BotAdapter botAdapter, int port, ISourceMap sourceMap = null, IBreakpoints breakpoints = null, Action terminate = null, IEvents events = null, ICodeModel codeModel = null, IDataModel dataModel = null, ILogger logger = null) { codeModel = codeModel ?? new CodeModel(); DebugSupport.SourceMap = sourceMap ?? new DebuggerSourceMap(codeModel); return(botAdapter.Use( #pragma warning disable CA2000 // Dispose objects before losing scope (excluding, the object ownership is transferred to the adapter and the adapter should dispose it) new DialogDebugAdapter( port: port, sourceMap: DebugSupport.SourceMap, breakpoints: breakpoints ?? DebugSupport.SourceMap as IBreakpoints, terminate: terminate, events: events, codeModel: codeModel, dataModel: dataModel, logger: logger))); #pragma warning restore CA2000 // Dispose objects before losing scope }
public CreatePersonCommandHandler( IEvents events, CreatePersonFriendCommandHandler createFriend) { _events = events; _createFriend = createFriend; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='type'> /// </param> /// <param name='year'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> Get2Async(this IEvents operations, string type, int year, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.Get2WithHttpMessagesAsync(type, year, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='year'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <USCPEApiDTOExploreHostingEvent> > GetAsync(this IEvents operations, int?year = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(year, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
// Token: 0x06001728 RID: 5928 RVA: 0x0008A6C0 File Offset: 0x000888C0 public static IItem GetItem(Item xsoItem) { string key = EntitySyncItem.GetKey(xsoItem.Session.MailboxGuid, xsoItem.Id.ObjectId); IEvents events = EntitySyncItem.GetEvents(xsoItem.Session, xsoItem.Id.ObjectId); return(events.Read(key, null)); }
//////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// private void Register() { FileSystem = new FileSystem( Platform.Platform.Get(), Application.persistentDataPath + "/"); Events = new MainThreadEvents(FileSystem); }
protected override void OnNotified(IEvents events) { if (events.TryGetFirst <BonusClickConsumed>(out _)) { activationCounter.Reset(); shouldActivate = true; } }
public void Init() { _mapValuables = new List <IValuable>(); _eventNotification = new Events(); _thiefTeamFactory = new ThiefTeamFactoryStub(new SingleMemberThiefTeam(new FacilityMap(new InMemoryWorld()))); _incidents = new Incidents(_mapValuables, _eventNotification, _thiefTeamFactory); _eventNotification.Subscribe <GameEndEvent>(OnGameEnd); }
public void SendMessage(IEvents myevent) { string mymsg = JsonConvert.SerializeObject(myevent); Message m = new Message(); m.Body = System.Text.Encoding.ASCII.GetBytes(mymsg); client.SendAsync(m).GetAwaiter().GetResult(); }
public Guard(IGuardBody guard, XYZ startLocation, IEvents eventNotification) { _guard = guard; _currentLocation = startLocation; _patrolRoute = new PatrolRoute(new Path(startLocation)); _patrolSegments.Add(new Path(startLocation)); eventNotification.Subscribe <GameStartEvent>(start => Go()); }
/// <summary>Creates a new instance of Coindar API .NET's client service.</summary> public CoindarClient() { var apiWebClient = new ApiWebClient(Helper.ApiUrlHttpsBase); Authenticator = new Authenticator(apiWebClient); Events = new Events(apiWebClient); }
public static async Task<bool> sendEventByExternalId(string externalId, IEvents events) { SMRequest createUserRequest = new SMRequest(); createUserRequest.autoClaim = true; createUserRequest.events = events; await AsyncClient.post(API.APIRoutes.sendEventWithExternalIdRoute(externalId), createUserRequest); return true; }
public EventModule(IEvents events, IPermissionService permissionService, IEventSignups eventSignups, IConfirmationChecks confirmationChecks, IConfirmationCheckPrinter confirmationCheckPrinter, IEventParticipantService eventParticipantService) { _events = events; _permissionService = permissionService; _eventSignups = eventSignups; _confirmationChecks = confirmationChecks; _confirmationCheckPrinter = confirmationCheckPrinter; _eventParticipantService = eventParticipantService; }
public TestHooks(ILogTracer log, IConfigOperations configOps, IEvents events, IServiceConfig config, ISecretsOperations secretOps, ILogAnalytics logAnalytics) { _log = log; _configOps = configOps; _events = events; _config = config; _secretOps = secretOps; _logAnalytics = logAnalytics; }
static void ExecuteUpdatePersonName( IEvents events, Guid personIdentifier, string newName) { var handler = new UpdatePersonNameCommandHandler(events); var command = new UpdatePersonNameCommand(personIdentifier, newName); handler.Execute(command); }
static CreatedPersonModel ExecuteCreatePerson( IEvents events, string name) { var handler = new CreatePersonCommandHandler(events, new CreatePersonFriendCommandHandler(events)); var command = new CreatePersonCommand(name); return(handler.Execute(command)); }
public PrompterStatus(IUserService userService, IEvents events) { _userService = userService; _events = events; }
public void CombineDelegates(IEvents value) { value.PlayerAdvertise += this.UserPlayerAdvertise; value.SendMap += this.UserSendMap; value.TakeAmmo += this.UserTakeAmmo; value.TakeGold += this.UserTakeGold; value.AddDamageToCoPlayer += this.UserAddDamageToCoPlayer; value.WalkTo += this.UserWalkTo; value.LookAt += this.UserLookAt; value.FireWeapon += this.UserFireWeapon; value.EnterEndLevelMode += this.UserEnterEndLevelMode; value.GuardWalkTo += this.UserGuardWalkTo; value.GuardLookAt += this.UserGuardLookAt; value.GuardAddDamage += this.UserGuardAddDamage; }
public void RemoveDelegates(IEvents value) { value.PlayerAdvertise -= this.UserPlayerAdvertise; value.MouseMove -= this.UserMouseMove; value.MouseOut -= this.UserMouseOut; value.VectorChanged -= this.UserVectorChanged; value.TeleportTo -= this.UserTeleportTo; value.EatApple -= this.UserEatApple; value.EatThisWormBegin -= this.UserEatThisWormBegin; value.EatThisWormEnd -= this.UserEatThisWormEnd; value.LevelHasEnded -= this.UserLevelHasEnded; value.SendMap -= this.UserSendMap; value.SendMapLater -= this.UserSendMapLater; value.SetFlag -= this.UserSetFlag; value.Reveal -= this.UserReveal; }
public void CombineDelegates(IEvents value) { value.PlayerAdvertise += this.UserPlayerAdvertise; value.MouseMove += this.UserMouseMove; value.MouseOut += this.UserMouseOut; value.VectorChanged += this.UserVectorChanged; value.TeleportTo += this.UserTeleportTo; value.EatApple += this.UserEatApple; value.EatThisWormBegin += this.UserEatThisWormBegin; value.EatThisWormEnd += this.UserEatThisWormEnd; value.LevelHasEnded += this.UserLevelHasEnded; value.SendMap += this.UserSendMap; value.SendMapLater += this.UserSendMapLater; value.SetFlag += this.UserSetFlag; value.Reveal += this.UserReveal; }
public void RemoveDelegates(IEvents value) { value.UserPlayerAdvertise -= this.UserPlayerAdvertise; value.UserMouseMove -= this.UserMouseMove; value.UserMouseOut -= this.UserMouseOut; value.UserSendMap -= this.UserSendMap; value.UserSendMapLater -= this.UserSendMapLater; value.UserSetFlag -= this.UserSetFlag; value.UserReveal -= this.UserReveal; }
public void RemoveDelegates(IEvents value) { value.PlayerAdvertise -= this.UserPlayerAdvertise; value.SendMap -= this.UserSendMap; }
public void RemoveDelegates(IEvents value) { value.UserTeleportTo -= this.UserTeleportTo; value.UserWalkTo -= this.UserWalkTo; value.UserTakeBox -= this.UserTakeBox; value.UserFiredWeapon -= this.UserFiredWeapon; value.UserEnterMachineGun -= this.UserEnterMachineGun; value.UserExitMachineGun -= this.UserExitMachineGun; value.UserStartMachineGun -= this.UserStartMachineGun; value.UserStopMachineGun -= this.UserStopMachineGun; value.UserAddDamage -= this.UserAddDamage; value.UserAddDamageFromDirection -= this.UserAddDamageFromDirection; value.UserShowBulletsFlying -= this.UserShowBulletsFlying; value.UserPlayerResurrect -= this.UserPlayerResurrect; value.UserUndeployExplosiveBarrel -= this.UserUndeployExplosiveBarrel; value.UserDeployExplosiveBarrel -= this.UserDeployExplosiveBarrel; }
public void CombineDelegates(IEvents value) { value.TeleportTo += this.UserTeleportTo; value.WalkTo += this.UserWalkTo; value.TakeBox += this.UserTakeBox; value.FiredWeapon += this.UserFiredWeapon; value.EnterMachineGun += this.UserEnterMachineGun; value.ExitMachineGun += this.UserExitMachineGun; value.StartMachineGun += this.UserStartMachineGun; value.StopMachineGun += this.UserStopMachineGun; value.AddDamage += this.UserAddDamage; value.AddDamageFromDirection += this.UserAddDamageFromDirection; value.ShowBulletsFlying += this.UserShowBulletsFlying; value.PlayerResurrect += this.UserPlayerResurrect; value.UndeployExplosiveBarrel += this.UserUndeployExplosiveBarrel; value.DeployExplosiveBarrel += this.UserDeployExplosiveBarrel; }
public void RemoveDelegates(IEvents value) { value.PlayerAdvertise -= this.UserPlayerAdvertise; value.SendMap -= this.UserSendMap; value.TakeAmmo -= this.UserTakeAmmo; value.TakeGold -= this.UserTakeGold; value.AddDamageToCoPlayer -= this.UserAddDamageToCoPlayer; value.WalkTo -= this.UserWalkTo; value.LookAt -= this.UserLookAt; value.FireWeapon -= this.UserFireWeapon; value.EnterEndLevelMode -= this.UserEnterEndLevelMode; value.GuardWalkTo -= this.UserGuardWalkTo; value.GuardLookAt -= this.UserGuardLookAt; value.GuardAddDamage -= this.UserGuardAddDamage; }
public void CombineDelegates(IEvents value) { value.PlayerAdvertise += this.UserPlayerAdvertise; value.MouseMove += this.UserMouseMove; value.MouseOut += this.UserMouseOut; value.VectorChanged += this.UserVectorChanged; value.FireBullet += this.UserFireBullet; value.AddDamage += this.UserAddDamage; value.RestoreStarship += this.UserRestoreStarship; value.TeleportTo += this.UserTeleportTo; value.EatApple += this.UserEatApple; value.EatThisWormBegin += this.UserEatThisWormBegin; value.EatThisWormEnd += this.UserEatThisWormEnd; value.LevelHasEnded += this.UserLevelHasEnded; value.SendMap += this.UserSendMap; value.SendMapLater += this.UserSendMapLater; value.SetFlag += this.UserSetFlag; value.Reveal += this.UserReveal; value.KillAllInvaders += this.UserKillAllInvaders; }
public void RemoveDelegates(IEvents value) { value.PlayerAdvertise -= this.UserPlayerAdvertise; value.MouseMove -= this.UserMouseMove; value.MouseOut -= this.UserMouseOut; value.VectorChanged -= this.UserVectorChanged; value.FireBullet -= this.UserFireBullet; value.AddDamage -= this.UserAddDamage; value.RestoreStarship -= this.UserRestoreStarship; value.TeleportTo -= this.UserTeleportTo; value.EatApple -= this.UserEatApple; value.EatThisWormBegin -= this.UserEatThisWormBegin; value.EatThisWormEnd -= this.UserEatThisWormEnd; value.LevelHasEnded -= this.UserLevelHasEnded; value.SendMap -= this.UserSendMap; value.SendMapLater -= this.UserSendMapLater; value.SetFlag -= this.UserSetFlag; value.Reveal -= this.UserReveal; value.KillAllInvaders -= this.UserKillAllInvaders; }
public void CombineDelegates(IEvents value) { value.UserPlayerAdvertise += this.UserPlayerAdvertise; value.UserMouseMove += this.UserMouseMove; value.UserMouseOut += this.UserMouseOut; value.UserSendMap += this.UserSendMap; value.UserSendMapLater += this.UserSendMapLater; value.UserSetFlag += this.UserSetFlag; value.UserReveal += this.UserReveal; }
public void CombineDelegates(IEvents value) { value.PlayerAdvertise += this.UserPlayerAdvertise; value.SendMap += this.UserSendMap; }
public UserService(IPrompterDbContextFactory dbContextFactory, IEvents events) { _dbContextFactory = dbContextFactory; _events = events; }
public OrderPlacedCommand(IOrderProcessor orderProcessor, IEvents events) { this.orderProcessor = orderProcessor; this.events = events; }