Exemple #1
0
        protected virtual void InitInsights()
        {
            if (!_injection.IsRegistered <IInsightStorage>())
            {
                _injection.RegisterInterface <IInsightStorage, MemoryInsightStorage>(InstanceType.SingleInstance);
            }

            if (!_injection.IsRegistered <IDeviceInfo>())
            {
                _injection.RegisterInterface <IDeviceInfo, DeviceInfo>(InstanceType.SingleInstance);
            }

            if (!_injection.IsRegistered <IApplicationInsights>())
            {
                _injection.RegisterInterface <IApplicationInsights, ApplicationInsights>(InstanceType.SingleInstance);
            }

            if (!_injection.IsRegistered <IInsightsProcessor>())
            {
                _injection.RegisterInterface <IInsightsProcessor, Processor>(InstanceType.SingleInstance);
            }
        }
 public void Register(IInjectionProxy injection)
 {
     injection.RegisterInterface <IPlatformDatabase, Database>(InstanceType.SingleInstance);
 }