Пример #1
0
 public World(IOwinServer server, ISupport support, INotify notifyChanges)
 {
 }
Пример #2
0
 public Notification(ISupport support)
 {
 }
Пример #3
0
 public SupportController(IOptions <MailingSettings> mailingSettings, ISupport support)
 {
     _mailingSettings = mailingSettings;
     _support         = support;
 }
Пример #4
0
 public MapTabela(ISupport funcoes)
 {
     _funcoes = funcoes;
 }
Пример #5
0
 public HomeController(IStringLocalizer <HomeController> localizer, ISupport support, IBlog blog)
 {
     _localizer = localizer;
     _support   = support;
     _blog      = blog;
 }
Пример #6
0
 /// <summary>
 ///     Method containing all code needed during the when phase.
 /// </summary>
 /// <param name="supporter">
 ///     Class containing support code for a test run.
 /// </param>
 /// <returns>
 ///     Instance of <see cref="ISupport" />.
 /// </returns>
 public ISupport When(ISupport supporter)
 {
     return(InitializeSupportClass(supporter));
 }
Пример #7
0
 /// <summary>
 /// Method containing all code needed during the when phase.
 /// </summary>
 /// <param name="supporter">
 /// Class containing support code for a test run.
 /// </param>
 /// <returns>
 /// Instance of <see cref="ISupport"/>.
 /// </returns>
 public ISupport Given(ISupport supporter)
 {
     return(this.InitializeSupportClass(supporter));
 }
Пример #8
0
 public NotificationOverride(ISupport support)
 {
 }
Пример #9
0
 // Use this for initialization
 void Start()
 {
     support = GetComponent <ISupport>();
 }
 public MapProcedure(ISupport rorinas)
 {
     _rorinas = rorinas;
 }
Пример #11
0
 public static ISupport GetInstanceSupport()
 {
     return(_support ?? (_support = new SupportImpl()));
 }
Пример #12
0
        private void GetSupportedExts(string fileName, out string[] exts, out ISupport support)
        {
            exts = new string[0];
            support = null;

            FileInfo info = new FileInfo(fileName);
            string file = info.FullName;

            if (bufferedSupport.ContainsKey(file))
            {
                support = bufferedSupport[file];
                if (support != null)
                {
                    exts = support.GetSupportedFormat();
                    bufferedSupport.Add(file, support);
                    return;
                }
            }

            Assembly asm = Assembly.LoadFrom(file);
            if (asm == null) return ;
            foreach (Type t in asm.GetTypes())
            {
                if (t.IsClass && !t.IsAbstract)
                {
                    Type inter = t.GetInterface("ISupport");
                    if (inter == null) continue;
                    MethodInfo method = inter.GetMethod("GetSupportedFormat");
                    if (method == null) continue;
                    object o = Activator.CreateInstance(t);
                    if (o != null)
                    {
                        support = o as ISupport;
                        if (support != null)
                        {
                            exts = support.GetSupportedFormat();
                            bufferedSupport.Add(file, support);
                            return;
                        }
                    }
                }

            }

            return;
        }
Пример #13
0
 public SupportHelperAttribute(Type supportType)
 {
     this.support = Activator.CreateInstance(supportType) as ISupport;
 }
Пример #14
0
 public NotificationOverride(ISupport support)
 {
 }
Пример #15
0
 /// <summary>
 ///     Initializes the given support class.
 /// </summary>
 /// <param name="supporter">Class which contains code to support a test run.</param>
 /// <returns>Instance of <see cref="ISupport" /></returns>
 private ISupport InitializeSupportClass(ISupport supporter)
 {
     supporter.Support(this);
     return(supporter);
 }
Пример #16
0
 public Notification(ISupport support)
 {
 }
Пример #17
0
 /// <summary>
 ///     Initializes the given support class.
 /// </summary>
 /// <param name="supporter">Class which contains code to support a test run.</param>
 /// <param name="supportData">Data used during support actions.</param>
 /// <returns>Instance of <see cref="ISupport" /></returns>
 private ISupport <T> InitializeSupportClass <T>(ISupport <T> supporter, T supportData)
 {
     supporter.Support(this, supportData);
     return(supporter);
 }
Пример #18
0
 public World(IOwinServer server, ISupport support, INotify notifyChanges)
 {
 }
Пример #19
0
 public ISupport AssignToNextLevel(ISupport support)
 {
     _nextSupportLevel = support;
     return(_nextSupportLevel);
 }