public EphemeralCommandGroup()
 {
     var ephemeralContext = new EphemeralContext(); 
     Commands.Add(new EphemeralBaseCommand(ephemeralContext));
     Commands.Add(new DisableEphemeralCommand(ephemeralContext));
     Commands.Add(new EphemeralDeleter(ephemeralContext));
     Commands.Add(new EnableEphemeralCommand(ephemeralContext));
 }
 internal EphemeralDeleter(EphemeralContext ephemeralContext)
 {
     _ephemeralContext = ephemeralContext;
 }
Esempio n. 3
0
        internal const int DefaultDeleteDelay = 5; // in seconds

        internal EnableEphemeralCommand(EphemeralContext ephemeralContext) : base(ephemeralContext)
        {
        }
 internal EphemeralBaseCommand(EphemeralContext ephemeralContext)
 {
     EphemeralContext = ephemeralContext;
 }