# Class CreateDispenserEvent
Namespace: [Aeon.Foraging](Aeon.Foraging.md)
Assembly: Aeon.Foraging.dll
```csharp
public class CreateDispenserEvent : Source
```
#### Inheritance
[object](https://learn.microsoft.com/dotnet/api/system.object) ←
Source ←
[CreateDispenserEvent](Aeon.Foraging.CreateDispenserEvent.md)
#### Inherited Members
Source.Generate\(\),
[object.ToString\(\)](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals\(object\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\)),
[object.Equals\(object, object\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\-system\-object\)),
[object.ReferenceEquals\(object, object\)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode\(\)](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType\(\)](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone\(\)](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)
## Properties
### EventType
```csharp
public DispenserEventType EventType { get; set; }
```
#### Property Value
[DispenserEventType](Aeon.Foraging.DispenserEventType.md)
### Value
```csharp
public int Value { get; set; }
```
#### Property Value
[int](https://learn.microsoft.com/dotnet/api/system.int32)
## Methods
### Generate\(\)
Generates an observable sequence of data elements.
```csharp
public override IObservable Generate()
```
#### Returns
[IObservable](https://learn.microsoft.com/dotnet/api/system.iobservable\-1)<[DispenserEventArgs](Aeon.Foraging.DispenserEventArgs.md)\>
An observable sequence of data elements of type .
### Generate\(IObservable\)
```csharp
public IObservable Generate(IObservable source)
```
#### Parameters
`source` [IObservable](https://learn.microsoft.com/dotnet/api/system.iobservable\-1)
#### Returns
[IObservable](https://learn.microsoft.com/dotnet/api/system.iobservable\-1)<[DispenserEventArgs](Aeon.Foraging.DispenserEventArgs.md)\>
#### Type Parameters
`TSource`