This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Sample.EmailMechanism | |
| { | |
| public class NotificationController | |
| { | |
| public NotificationController() { } | |
| public void Check() | |
| { | |
| NotificationRepository repository = new NotificationRepository(); | |
| IEnumerable<NotificationMessage> list = repository.SelectNotification(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IProcessor | |
| { | |
| void Process(); | |
| } | |
| public abstract class BaseProcessor | |
| : IProcessor | |
| { | |
| public delegate void ProcessorStartingEventHandler(params Object[] param); | |
| public delegate void ProcessorStartedEventHandler(params Object[] param); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IJob | |
| { | |
| object[] Start(Parameters paramList = null); | |
| } | |
| public abstract class BaseJob | |
| : IJob | |
| { | |
| public abstract object[] Start(Parameters paramList = null); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public delegate void RuleEventHandler(object sender, RuleEventArgs e); | |
| public class RuleEventArgs | |
| : EventArgs | |
| { | |
| public RuleEventArgs() | |
| : base() | |
| { } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Base Exception when our application | |
| /// </summary> | |
| public class MyApplicationException | |
| : ApplicationException | |
| { | |
| public MyApplicationException() | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Web.Mvc; | |
| namespace CoreMvcApplication | |
| { | |
| public class VideoChannelAreaRegistration | |
| : AreaRegistration | |
| { | |
| public override string AreaName | |
| { | |
| get |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ProductAddHandler | |
| : ICommandHandler<ProductAddCommand> | |
| { | |
| private readonly IProductRepository _productRepository; | |
| public ProductAddHandler(IProductRepository productRepository) | |
| { | |
| this._productRepository = productRepository; | |
| } | |
| public ICommandResult Execute(ProductAddCommand command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Target or Wrapper | |
| public interface IPostOperation | |
| { | |
| void AddPost(string head); | |
| } | |
| // util operation class | |
| public class PostOperation | |
| :IPostOperation | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CustomWatcher | |
| { | |
| private FileSystemWatcher _watcher; | |
| private bool IsWatching; | |
| private StringBuilder strMsg = new StringBuilder(); | |
| private bool IncludeSubFolder = false; // SubFolder Check | |
| private bool DirectoryCheck; // Directory // Folder | |
| // !DirectoryCheck // File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class Staff | |
| { | |
| protected string Title; | |
| public Staff(string title) | |
| { | |
| this.Title = title; | |
| } | |
| public abstract void Add(Staff staff); |